Documentation
¶
Index ¶
Constants ¶
View Source
const ( // REGEXVERSIONKIND represents versions as a simple string REGEXVERSIONKIND string = "regex" // SEMVERVERSIONKIND represents versions as a semantic versionning 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 ¶ added in v0.16.0
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
type Version ¶ added in v0.16.0
FoundVersions defines a version from a filter that holds both the original found version and the parsed version (depending on the kind of filter: semantic, text, etc.) Keeping the original found versions is useful when checking for metadata around the version, such as the changelog
Click to show internal directories.
Click to hide internal directories.