Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DpkgArchitecture ¶
func DpkgArchitecture() string
DpkgArchitecture returns the debian equivalent architecture for the currently running architecture.
If the architecture does not map any debian architecture, the GOARCH is returned.
func DpkgKernelArchitecture ¶
func DpkgKernelArchitecture() string
DpkgKernelArchitecture returns the debian equivalent architecture for the current running kernel. This is usually the same as the DpkgArchitecture - however there maybe cases that you run e.g. a snapd:i386 on an amd64 kernel.
func IsSupportedArchitecture ¶
IsSupportedArchitecture returns true if the system architecture is in the list of architectures.
func SetArchitecture ¶
func SetArchitecture(newArch ArchitectureType)
SetArchitecture allows overriding the auto detected Architecture
Types ¶
type ArchitectureType ¶
type ArchitectureType string
ArchitectureType is the type for a supported snappy architecture
Click to show internal directories.
Click to hide internal directories.