Documentation
¶
Index ¶
Constants ¶
This section is empty.
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.
func GetLocalBinaryExt ¶
func GetLocalBinaryExt() string
Types ¶
type Arch ¶
type Arch string
const ( ArchArm64 Arch = "arm64" // While arm64 and aarch64 are the same architecture, some Linux distros use arm64 and others use aarch64: // - aarch64: RHEL/Amazon/SUSE // - arm64: Debian/Ubuntu. ArchAarch64 Arch = "aarch64" ArchS390x Arch = "s390x" ArchPpc64le Arch = "ppc64le" ArchX86_64 Arch = "x86_64" )
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
SkipForJSONFeed bool
ServerVariantNames mapset.Set[string]
ServerPlatform string
// If set, this a linux release will only be pushed to server repos within this range (inclusive).
MinLinuxServerVersion *version.Version
MaxLinuxServerVersion *version.Version
}
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 ¶
func (Platform) TargetMatches ¶
Click to show internal directories.
Click to hide internal directories.