platform

package
v1.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OSWindows = "windows"
	OSLinux   = "linux"
	OSMac     = "mac"

	PkgDeb = "deb"
	PkgRPM = "rpm"

	RepoOrg        = "org"
	RepoEnterprise = "enterprise"

	ArchArm64   = "arm64"
	ArchS390x   = "s390x"
	ArchPpc64le = "ppc64le"
	ArchX86_64  = "x86_64"
)

Variables

This section is empty.

Functions

func Count

func Count() int

Types

type Platform

type Platform struct {
	Name      string
	Arch      string
	OS        string
	Pkg       string
	Repos     []string
	BuildTags []string
	BinaryExt string
}

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

func DetectLocal() (Platform, error)

DetectLocal detects the platform for non-evergreen use cases.

func GetByVariant

func GetByVariant(variant string) (Platform, bool)

func GetFromEnv

func GetFromEnv() (Platform, error)

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 (p Platform) ArtifactExtensions() []string

func (Platform) DebianArch

func (p Platform) DebianArch() string

func (Platform) RPMArch

func (p Platform) RPMArch() string

func (Platform) Variant

func (p Platform) Variant() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL