2014-08-02 07:46:15 +00:00
|
|
|
// +build !linux
|
2014-07-29 00:23:38 +00:00
|
|
|
|
|
|
|
package kernel
|
|
|
|
|
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
2015-07-25 08:35:07 +00:00
|
|
|
// Utsname represents the system name structure.
|
|
|
|
// It is defined here to make it portable as it is available on linux but not
|
|
|
|
// on windows.
|
2014-07-29 00:23:38 +00:00
|
|
|
type Utsname struct {
|
|
|
|
Release [65]byte
|
|
|
|
}
|
|
|
|
|
|
|
|
func uname() (*Utsname, error) {
|
|
|
|
return nil, errors.New("Kernel version detection is available only on linux")
|
|
|
|
}
|