arch

package
v0.0.0-...-9e584df Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: GPL-3.0 Imports: 3 Imported by: 0

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

func IsSupportedArchitecture(architectures []string) bool

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

Jump to

Keyboard shortcuts

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