Documentation ¶
Index ¶
Constants ¶
const ( AMD64 = "amd64" ARM64 = "arm64" PPC64EL = "ppc64el" S390X = "s390x" RISCV64 = "riscv64" )
The following constants define the machine architectures supported by Juju.
const ( // DefaultArchitecture represents the default architecture we expect to use // if none is present. DefaultArchitecture = AMD64 )
Variables ¶
AllSupportedArches records the machine architectures recognised by Juju.
var HostArch = hostArch
Override for testing.
var UnsupportedArches = []string{
"i386", "armhf", "ppc",
}
UnsupportedArches records the machine architectures not supported by Juju. Note: don't make const to prevent referencing it.
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 ¶
type Arches ¶
type Arches struct {
// contains filtered or unexported fields
}
Arches defines a list of arches to compare against.
func (Arches) StringList ¶
StringList returns an ordered list of strings. ArchAll will always be the front of the slice to show importance of the enum value.