Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func QualifiersToCommand ¶
func QualifiersToCommand(qArr []*remoteasset.Qualifier) (func(string) *remoteexecution.Command, error)
QualifiersToCommand takes a slice of remote asset API qualifiers and returns a function which takes a URI and returns a REv2 Command to fetch the given URI
Types ¶
type Set ¶
type Set map[string]struct{}
Set implements a HashSet of qualifier names
func QualifiersToSet ¶
func QualifiersToSet(qualifiers []*remoteasset.Qualifier) Set
QualifiersToSet converts an array of qualifiers into a Set of names
type Sorter ¶
type Sorter []*remoteasset.Qualifier
Sorter implements Sort for an array of Qualifiers to get a consistent hash
func (Sorter) ToArray ¶
func (q Sorter) ToArray() []*remoteasset.Qualifier
ToArray converts a Sorter back to its underlying array of qualifiers
Click to show internal directories.
Click to hide internal directories.