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