Documentation ¶
Index ¶
- Variables
- type Filter
- type GUIArchive
- type List
- func (src List) AllSeries() []string
- func (src List) Arches() []string
- func (src List) Exclude(excluded List) List
- func (l List) Len() int
- func (l List) Less(i, j int) bool
- func (src List) Match(f Filter) (List, error)
- func (src List) Newest() (version.Number, List)
- func (src List) NewestCompatible(base version.Number) (newest version.Number, found bool)
- func (src List) OneSeries() string
- func (src List) String() string
- func (l List) Swap(i, j int)
- func (src List) URLs() map[version.Binary][]string
- type Tools
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoMatches = errors.New("no matching tools available")
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter struct { // Number, if non-zero, causes the filter to match only tools with // that exact version number. Number version.Number // Series, if not empty, causes the filter to match only tools with // that series. Series string // Arch, if not empty, causes the filter to match only tools with // that architecture. Arch string }
Filter holds criteria for choosing tools.
type GUIArchive ¶
type GUIArchive struct { Version version.Number `json:"version"` URL string `json:"url"` SHA256 string `json:"sha256,omitempty"` Size int64 `json:"size"` }
GUI represents the location and version of a GUI release archive.
type List ¶
type List []*Tools
List holds tools available in an environment. The order of tools within a List is not significant.
func (List) Match ¶
Match returns a List, derived from src, containing only those tools that match the supplied Filter. If no tools match, it returns ErrNoMatches.
func (List) NewestCompatible ¶
NewestCompatible returns the most recent version compatible with base, i.e. with the same major and minor numbers and greater or equal patch and build numbers.
type Tools ¶
type Tools struct { Version version.Binary `json:"version"` URL string `json:"url"` SHA256 string `json:"sha256,omitempty"` Size int64 `json:"size"` }
Tools represents the location and version of a tools tarball.
Click to show internal directories.
Click to hide internal directories.