Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SupportedArchs = Architectures{
"amd64": "x86_64",
"arm64": "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 `json:"full_version"`
Version int `json:"version"`
PatchLevel int `json:"patch_level"`
Sublevel int `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.
Click to show internal directories.
Click to hide internal directories.