lxd: github.com/lxc/lxd/shared/osarch Index | Files

package osarch

import "github.com/lxc/lxd/shared/osarch"

Index

Package Files

architectures.go architectures_linux.go release.go

Constants

const (
    ARCH_UNKNOWN                     = 0
    ARCH_32BIT_INTEL_X86             = 1
    ARCH_64BIT_INTEL_X86             = 2
    ARCH_32BIT_ARMV7_LITTLE_ENDIAN   = 3
    ARCH_64BIT_ARMV8_LITTLE_ENDIAN   = 4
    ARCH_32BIT_POWERPC_BIG_ENDIAN    = 5
    ARCH_64BIT_POWERPC_BIG_ENDIAN    = 6
    ARCH_64BIT_POWERPC_LITTLE_ENDIAN = 7
    ARCH_64BIT_S390_BIG_ENDIAN       = 8
    ARCH_32BIT_MIPS                  = 9
    ARCH_64BIT_MIPS                  = 10
    ARCH_32BIT_RISCV_LITTLE_ENDIAN   = 11
    ARCH_64BIT_RISCV_LITTLE_ENDIAN   = 12
)
const ArchitectureDefault = "x86_64"

func ArchitectureGetLocal Uses

func ArchitectureGetLocal() (string, error)

ArchitectureGetLocal returns the local hardware architecture

func ArchitectureGetLocalID Uses

func ArchitectureGetLocalID() (int, error)

ArchitectureGetLocalID returns the local hardware architecture ID

func ArchitectureId Uses

func ArchitectureId(arch string) (int, error)

func ArchitectureName Uses

func ArchitectureName(arch int) (string, error)

func ArchitecturePersonalities Uses

func ArchitecturePersonalities(arch int) ([]int, error)

func ArchitecturePersonality Uses

func ArchitecturePersonality(arch int) (string, error)

func GetLSBRelease Uses

func GetLSBRelease() (map[string]string, error)

GetLSBRelease returns a map with Linux distribution information

Package osarch imports 5 packages (graph) and is imported by 75 packages. Updated 2020-03-09. Refresh now. Tools for package owners.