github.com/olljanat/moby@v1.13.1/volume/volume_propagation_unsupported.go (about)

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