gitee.com/bomy/docker.git@v1.13.1/pkg/parsers/kernel/uname_unsupported.go (about) 1 // +build !linux,!solaris 2 3 package kernel 4 5 import ( 6 "errors" 7 ) 8 9 // Utsname represents the system name structure. 10 // It is defined here to make it portable as it is available on linux but not 11 // 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 available only on linux") 18 }