github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/pkg/system/image_os_deprecated.go (about) 1 package system 2 3 import ( 4 "errors" 5 "runtime" 6 "strings" 7 ) 8 9 // ErrNotSupportedOperatingSystem means the operating system is not supported. 10 // 11 // Deprecated: use [github.com/Prakhar-Agarwal-byte/moby/image.CheckOS] and check the error returned. 12 var ErrNotSupportedOperatingSystem = errors.New("operating system is not supported") 13 14 // IsOSSupported determines if an operating system is supported by the host. 15 // 16 // Deprecated: use [github.com/Prakhar-Agarwal-byte/moby/image.CheckOS] and check the error returned. 17 func IsOSSupported(os string) bool { 18 return strings.EqualFold(runtime.GOOS, os) 19 }