kernelrelease

package
v0.20.4 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: Apache-2.0 Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const (
	ArchitectureAmd64 = "amd64"
	ArchitectureArm64 = "arm64"
)

Variables

View Source
var SupportedArchs = Architectures{
	ArchitectureAmd64: "x86_64",
	ArchitectureArm64: "aarch64",
}

SupportedArchs enforces the duality of architecture->non-deb one when adding a new one

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 Architectures added in v0.9.6

type Architectures map[Architecture]string

Architectures is a Map Architecture -> non-deb-ArchitectureString

func (Architectures) String added in v0.9.6

func (aa Architectures) String() string

func (Architectures) Strings added in v0.9.6

func (aa Architectures) Strings() []string

type KernelRelease

type KernelRelease struct {
	Fullversion string
	semver.Version
	Extraversion     string
	FullExtraversion string
	Architecture     Architecture
	KernelVersion    string
}

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) String added in v0.16.0

func (k *KernelRelease) String() string

func (*KernelRelease) SupportsModule added in v0.10.2

func (k *KernelRelease) SupportsModule() bool

func (*KernelRelease) SupportsProbe added in v0.10.2

func (k *KernelRelease) SupportsProbe() bool

Jump to

Keyboard shortcuts

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