Documentation
¶
Index ¶
Constants ¶
View Source
const ( // REGEXVERSIONKIND represents versions as a simple string REGEXVERSIONKIND string = "regex" // SEMVERVERSIONKIND represents versions as a semantic versioning type SEMVERVERSIONKIND string = "semver" // LATESTVERSIONKIND specifies that we are looking for the latest version of an array LATESTVERSIONKIND string = "latest" )
Variables ¶
View Source
var ( // ErrNoVersionFound return a error when no version couldn't be found ErrNoVersionFound error = errors.New("No version found") // ErrNoVersionsFound return a error when the versions list is empty ErrNoVersionsFound error = errors.New("Versions list empty") )
View Source
var ( // SupportedKind holds a list of supported version kind SupportedKind []string = []string{ REGEXVERSIONKIND, SEMVERVERSIONKIND, LATESTVERSIONKIND, } )
Functions ¶
This section is empty.
Types ¶
type Filter ¶
Filter defines parameters to apply different kind of version matching based on a list of versions
type Semver ¶
type Semver struct { Constraint string FoundVersion Version // contains filtered or unexported fields }
Semver is an interface in front the masterminds/semver used across the updatecli project
Click to show internal directories.
Click to hide internal directories.