Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Architecture ¶ added in v0.9.0
type Architecture string
func (Architecture) String ¶ added in v0.9.0
func (a Architecture) String() string
func (Architecture) ToNonDeb ¶ added in v0.9.0
func (a Architecture) ToNonDeb() string
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"` Architecture Architecture `json:"architecture"` }
KernelRelease contains all the version parts. NOTE: we cannot fetch Architecture from kernel string because it is not always provided. Instead, rely on the global option (it it set for builders in kernelReleaseFromBuildConfig())
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.
Click to show internal directories.
Click to hide internal directories.