Documentation ¶
Index ¶
Constants ¶
View Source
const ( OSWindows OS = "windows" OSLinux = "linux" OSMac = "mac" )
View Source
const ( ArchArm64 Arch = "arm64" // While arm64 and aarch64 are the same architecture, some Linux distros // use arm64 (Debian and RHEL) and others use aarch64 (Amazon 2). ArchAarch64 Arch = "aarch64" ArchS390x = "s390x" ArchPpc64le = "ppc64le" ArchX86_64 = "x86_64" )
Variables ¶
This section is empty.
Functions ¶
func CountForReleaseJSON ¶
func CountForReleaseJSON() int
CountForReleaseJSON returns the number of platforms that we expect to put into the release JSON. This is all platforms _except_ those where the `SkipForJSONFeed` field is true.
Types ¶
type Platform ¶
type Platform struct { Name string // This is used to override the variant name. It should only be used for // special builds. In general, we want to use the OS name + arch for the // variant name. VariantName string Arch Arch OS OS Pkg Pkg Repos []Repo BuildTags []string BinaryExt string SkipForJSONFeed bool }
Platform represents a platform (a combination of OS, distro, version, and architecture) on which we may build/test the tools. There should be at least one evergreen buildvariant per platform, and there may be multiple.
func DetectLocal ¶
DetectLocal detects the platform for non-evergreen use cases.
func GetByVariant ¶
func GetFromEnv ¶
GetFromEnv returns the Platform for this host, based on the value of EVG_VARIANT. It returns an error if EVG_VARIANT is unset or set to an unknown value.
func (Platform) ArtifactExtensions ¶
func (Platform) DebianArch ¶
Click to show internal directories.
Click to hide internal directories.