github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/parsers/kernel/uname_unsupported.go (about) 1 // +build !linux 2 3 package kernel // import "github.com/demonoid81/moby/pkg/parsers/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 }