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
Click to show internal directories.
Click to hide internal directories.