uname_unsupported.go 409 B

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