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