mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
a1150245cc
Movified from686be57d0a
, and re-ran gofmt again to address for files not present in 20.10 and vice-versa. Signed-off-by: Sebastiaan van Stijn <github@gone.nl> (cherry picked from commit686be57d0a
) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
29 lines
809 B
Go
29 lines
809 B
Go
//go:build !windows || (windows && no_lcow)
|
|
// +build !windows windows,no_lcow
|
|
|
|
package system // import "github.com/docker/docker/pkg/system"
|
|
import (
|
|
"runtime"
|
|
"strings"
|
|
|
|
specs "github.com/opencontainers/image-spec/specs-go/v1"
|
|
)
|
|
|
|
// InitLCOW does nothing since LCOW is a windows only feature
|
|
func InitLCOW(_ bool) {}
|
|
|
|
// LCOWSupported returns true if Linux containers on Windows are supported.
|
|
func LCOWSupported() bool {
|
|
return false
|
|
}
|
|
|
|
// ValidatePlatform determines if a platform structure is valid. This function
|
|
// is used for LCOW, and is a no-op on non-windows platforms.
|
|
func ValidatePlatform(_ specs.Platform) error {
|
|
return nil
|
|
}
|
|
|
|
// IsOSSupported determines if an operating system is supported by the host.
|
|
func IsOSSupported(os string) bool {
|
|
return strings.EqualFold(runtime.GOOS, os)
|
|
}
|