volume_propagation_unsupported.go 736 B

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