volume_propagation_unsupported.go 626 B

12345678910111213141516171819202122
  1. // +build !linux
  2. package volume
  3. // DefaultPropagationMode is used only in linux. In other cases it returns
  4. // empty string.
  5. const DefaultPropagationMode string = ""
  6. // propagation modes not supported on this platform.
  7. var propagationModes = map[string]bool{}
  8. // GetPropagation is not supported. Return empty string.
  9. func GetPropagation(mode string) string {
  10. return DefaultPropagationMode
  11. }
  12. // HasPropagation checks if there is a valid propagation mode present in
  13. // passed string. Returns true if a valid propagation mode specifier is
  14. // present, false otherwise.
  15. func HasPropagation(mode string) bool {
  16. return false
  17. }