platform

package
v0.0.0-...-de2083b Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

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

	PkgDeb = "deb"
	PkgRPM = "rpm"

	RepoOrg        = "org"
	RepoEnterprise = "enterprise"
)

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
}

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 GetByVariant

func GetByVariant(variant string) (Platform, bool)

func GetFromEnv

func GetFromEnv() (Platform, error)

Get 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) Variant

func (p Platform) Variant() string

Jump to

Keyboard shortcuts

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