github.com/kaisenlinux/docker.io@v0.0.0-20230510090727-ea55db55fac7/engine/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. 11 // It is defined here to make it portable as it is available on linux but not 12 // on windows. 13 type Utsname struct { 14 Release [65]byte 15 } 16 17 func uname() (*Utsname, error) { 18 return nil, errors.New("Kernel version detection is available only on linux") 19 }