osarch

package
v6.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2024 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

View Source
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
	ARCH_32BIT_ARMV6_LITTLE_ENDIAN   = 13
	ARCH_32BIT_ARMV8_LITTLE_ENDIAN   = 14
	ARCH_64BIT_LOONGARCH             = 15
)
View Source
const ArchitectureDefault = "x86_64"

Variables

This section is empty.

Functions

func ArchitectureGetLocal

func ArchitectureGetLocal() (string, error)

ArchitectureGetLocal returns the local hardware architecture.

func ArchitectureGetLocalID

func ArchitectureGetLocalID() (int, error)

ArchitectureGetLocalID returns the local hardware architecture ID.

func ArchitectureId

func ArchitectureId(arch string) (int, error)

func ArchitectureName

func ArchitectureName(arch int) (string, error)

func ArchitecturePersonalities

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

func ArchitecturePersonality

func ArchitecturePersonality(arch int) (string, error)

func GetLSBRelease

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

GetLSBRelease returns a map with Linux distribution information.

func SupportedArchitectures

func SupportedArchitectures() []string

SupportedArchitectures returns the list of all supported architectures.

Types

This section is empty.

Jump to

Keyboard shortcuts

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