github.com/OpenFlowLabs/moby@v17.12.1-ce-rc2+incompatible/pkg/parsers/kernel/uname_unsupported.go (about)

     1  // +build !linux
     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  }