github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/system/lcow_unsupported.go (about) 1 // +build !windows windows,no_lcow 2 3 package system // import "github.com/demonoid81/moby/pkg/system" 4 import ( 5 "runtime" 6 "strings" 7 8 specs "github.com/opencontainers/image-spec/specs-go/v1" 9 ) 10 11 // InitLCOW does nothing since LCOW is a windows only feature 12 func InitLCOW(_ bool) {} 13 14 // LCOWSupported returns true if Linux containers on Windows are supported. 15 func LCOWSupported() bool { 16 return false 17 } 18 19 // ValidatePlatform determines if a platform structure is valid. This function 20 // is used for LCOW, and is a no-op on non-windows platforms. 21 func ValidatePlatform(_ specs.Platform) error { 22 return nil 23 } 24 25 // IsOSSupported determines if an operating system is supported by the host. 26 func IsOSSupported(os string) bool { 27 return strings.EqualFold(runtime.GOOS, os) 28 }