Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 ¶ added in v1.2.0
func GetKernelVersion ¶
func GetKernelVersion() (*KernelVersionInfo, error)
func ParseRelease ¶
func ParseRelease(release string) (*KernelVersionInfo, error)
func (*KernelVersionInfo) String ¶ added in v1.2.0
func (k *KernelVersionInfo) String() string
Click to show internal directories.
Click to hide internal directories.