Documentation ¶
Index ¶
Constants ¶
View Source
const ( AMD64 = "amd64" I386 = "i386" ARM = "armhf" ARM64 = "arm64" PPC64EL = "ppc64el" S390X = "s390x" // Older versions of Juju used "ppc64" instead of ppc64el LEGACY_PPC64 = "ppc64" )
The following constants define the machine architectures supported by Juju.
Variables ¶
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}, S390X: {64}, }
Info records the information regarding each architecture recognised by Juju.
Functions ¶
func IsSupportedArch ¶
IsSupportedArch returns true if arch is one supported by Juju.
func NormaliseArch ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.