|
@@ -1,9 +1,14 @@
|
|
-package system // import "github.com/docker/docker/pkg/system"
|
|
|
|
|
|
+package system
|
|
|
|
+
|
|
import (
|
|
import (
|
|
|
|
+ "errors"
|
|
"runtime"
|
|
"runtime"
|
|
"strings"
|
|
"strings"
|
|
)
|
|
)
|
|
|
|
|
|
|
|
+// ErrNotSupportedOperatingSystem means the operating system is not supported.
|
|
|
|
+var ErrNotSupportedOperatingSystem = errors.New("operating system is not supported")
|
|
|
|
+
|
|
// IsOSSupported determines if an operating system is supported by the host.
|
|
// IsOSSupported determines if an operating system is supported by the host.
|
|
func IsOSSupported(os string) bool {
|
|
func IsOSSupported(os string) bool {
|
|
return strings.EqualFold(runtime.GOOS, os)
|
|
return strings.EqualFold(runtime.GOOS, os)
|