package kernel

import "github.com/docker/cli/components/engine/pkg/parsers/kernel"

Index

Types

type Utsname

type Utsname struct {
	Release [65]byte
}

Utsname represents the system name structure. It is defined here to make it portable as it is available on linux but not on windows.

type VersionInfo

type VersionInfo struct {
	// contains filtered or unexported fields
}

VersionInfo holds information about the kernel.

func GetKernelVersion

func GetKernelVersion() (*VersionInfo, error)

GetKernelVersion gets the current kernel version.

func (*VersionInfo) String

func (k *VersionInfo) String() string

Source Files

kernel_windows.go uname_unsupported.go

Version
v17.12.1-ce-rc1+incompatible
Published
Feb 13, 2018
Platform
windows/amd64
Imports
4 packages
Last checked
12 seconds ago

Tools for package owners.