github.com/Prakhar-Agarwal-byte/moby@v0.0.0-20231027092010-a14e3e8ab87e/pkg/parsers/kernel/uname_unsupported.go (about)

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