package kernel
import "github.com/docker/docker/pkg/parsers/kernel"
Index ¶
- func CompareKernelVersion(a, b *KernelVersionInfo) int
- type KernelVersionInfo
- func GetKernelVersion() (*KernelVersionInfo, error)
- func ParseRelease(release string) (*KernelVersionInfo, error)
- func (k *KernelVersionInfo) String() string
- type Utsname
Functions ¶
func CompareKernelVersion ¶
func CompareKernelVersion(a, b *KernelVersionInfo) int
Compare two KernelVersionInfo struct. Returns -1 if a < b, 0 if a == b, 1 it a > b
Types ¶
type KernelVersionInfo ¶
func GetKernelVersion ¶
func GetKernelVersion() (*KernelVersionInfo, error)
func ParseRelease ¶
func ParseRelease(release string) (*KernelVersionInfo, error)
func (*KernelVersionInfo) String ¶
func (k *KernelVersionInfo) String() string
type Utsname ¶
type Utsname struct { Release [65]byte }
Source Files ¶
kernel.go uname_unsupported.go
- Version
- v1.8.0
- Published
- Aug 11, 2015
- Platform
- js/wasm
- Imports
- 3 packages
- Last checked
- 43 minutes ago –
Tools for package owners.