github.com/rish1988/moby@v25.0.2+incompatible/pkg/parsers/kernel/uname_unsupported.go (about) 1 //go:build !linux 2 3 package kernel // import "github.com/docker/docker/pkg/parsers/kernel" 4 5 import ( 6 "errors" 7 ) 8 9 // utsName represents the system name structure. It is defined here to make it 10 // portable as it is available on Linux but not on Windows. 11 type utsName struct { 12 Release [65]byte 13 } 14 15 func uname() (*utsName, error) { 16 return nil, errors.New("kernel version detection is only available on linux") 17 }