arch

package
v0.0.0-...-be26699 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2015 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AMD64   = "amd64"
	I386    = "i386"
	ARM     = "armhf"
	ARM64   = "arm64"
	PPC64EL = "ppc64el"

	// Older versions of Juju used "ppc64" instead of ppc64el
	LEGACY_PPC64 = "ppc64"
)

The following constants define the machine architectures supported by Juju.

Variables

View Source
var AllSupportedArches = []string{
	AMD64,
	I386,
	ARM,
	ARM64,
	PPC64EL,
}

AllSupportedArches records the machine architectures recognised by Juju.

View Source
var HostArch = hostArch

Override for testing.

View Source
var Info = map[string]ArchInfo{
	AMD64:   {64},
	I386:    {32},
	ARM:     {32},
	ARM64:   {64},
	PPC64EL: {64},
}

Info records the information regarding each architecture recognised by Juju.

Functions

func IsSupportedArch

func IsSupportedArch(arch string) bool

IsSupportedArch returns true if arch is one supported by Juju.

func NormaliseArch

func NormaliseArch(rawArch string) string

NormaliseArch returns the Juju architecture corresponding to a machine's reported architecture. The Juju architecture is used to filter simple streams lookup of tools and images.

Types

type ArchInfo

type ArchInfo struct {
	// WordSize is the architecture's word size, in bits.
	WordSize int
}

ArchInfo is a struct containing information about a supported architecture.

Jump to

Keyboard shortcuts

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