kernelrelease

package
v0.0.0-...-d8e533f Latest Latest
Warning

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

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

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

type Architecture string

func (Architecture) String

func (a Architecture) String() string

func (Architecture) ToNonDeb

func (a Architecture) ToNonDeb() string

type Architectures

type Architectures map[Architecture]string

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

func (Architectures) String

func (aa Architectures) String() string

func (Architectures) Strings

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

func (k *KernelRelease) String() string

func (*KernelRelease) SupportsModule

func (k *KernelRelease) SupportsModule() bool

func (*KernelRelease) SupportsProbe

func (k *KernelRelease) SupportsProbe() bool

Jump to

Keyboard shortcuts

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