kernelrelease

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2022 License: Apache-2.0 Imports: 2 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KernelRelease

type KernelRelease struct {
	Fullversion      string `json:"full_version"`
	Version          string `json:"version"`
	PatchLevel       string `json:"patch_level"`
	Sublevel         string `json:"sublevel"`
	Extraversion     string `json:"extra_version"`
	FullExtraversion string `json:"full_extra_version"`
}

KernelRelease contains all the version parts.

func FromString

func FromString(kernelVersionStr string) KernelRelease

FromString extracts a KernelRelease object from string.

func (*KernelRelease) IsGKE added in v0.3.0

func (kr *KernelRelease) IsGKE() bool

IsGKE tells whether the current kernel release is for GKE by looking at its name.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL