Documentation ¶
Index ¶
Constants ¶
View Source
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.
View Source
var HostArch = hostArch
Override for testing.
View Source
var UnsupportedArches = []string{
"i386", "arm", "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.
Click to show internal directories.
Click to hide internal directories.