arch

package
v0.0.0-...-b0bff92 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultArchitecture represents the default architecture we expect to use
	// if none is present.
	DefaultArchitecture = arch.AMD64
)

Variables

This section is empty.

Functions

func ConstraintArch

func ConstraintArch(cons constraints.Value, defaultCons *constraints.Value) string

ConstraintArch returns the arch for the constraint if there is one, else it returns the default arch.

Types

type Arch

type Arch = string

Arch represents a platform architecture.

type Arches

type Arches struct {
	// contains filtered or unexported fields
}

Arches defines a list of arches to compare against.

func AllArches

func AllArches() Arches

AllArches creates a series of arches to compare against.

func (Arches) Contains

func (a Arches) Contains(arch Arch) bool

Contains checks to see if a given arch is found with in the list.

func (Arches) String

func (a Arches) String() string

func (Arches) StringList

func (a Arches) StringList() []string

StringList returns an ordered list of strings. ArchAll will always be the front of the slice to show importance of the enum value.

Jump to

Keyboard shortcuts

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