Documentation ¶
Index ¶
- func Compare(a, b string) int
- func Latest(vers []string) (string, error)
- func MatchVersionStrings(vers []string, constraints ...*semver.Constraints) (semver.Collection, error)
- func MatchVersions(versions semver.Collection, constraints ...*semver.Constraints) semver.Collection
- func SortVersions(vers []string) error
- type VersionCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MatchVersionStrings ¶
func MatchVersionStrings(vers []string, constraints ...*semver.Constraints) (semver.Collection, error)
MatchVersionStrings returns an ordered list of versions filtered by the given constraints. If no constraints a given the complete list is returned. If one given version is no semver version it is ignored for the matching and an additional error describing the parsing errors is returned.
func MatchVersions ¶
func MatchVersions(versions semver.Collection, constraints ...*semver.Constraints) semver.Collection
func SortVersions ¶
Types ¶
type VersionCache ¶
type VersionCache map[string]*semver.Version
func (VersionCache) Compare ¶
func (c VersionCache) Compare(a, b string) int
func (VersionCache) Get ¶
func (c VersionCache) Get(v string) (*semver.Version, error)
Click to show internal directories.
Click to hide internal directories.