Documentation ¶
Index ¶
- Constants
- Variables
- func CompatibleRanges(resolver Resolver) ([]string, error)
- func IsLatest(version, versionRange string, resolver IsLatestResolver) (bool, error)
- func IsLatestGivenReleases(version, versionRange string, skipInvalidReleases bool, ...) (bool, error)
- type IsLatestResolver
- type Resolver
Constants ¶
View Source
const AnyVersion = ">=0.0.0"
AnyVersion is a range that matches any released version.
Variables ¶
View Source
var ( // ErrIsNotValid when version data is malformed. ErrIsNotValid = errors.New("is not valid") // ErrVersionIsNotValid when given version is not semantic. ErrVersionIsNotValid = fmt.Errorf("version %w", ErrIsNotValid) // ErrRangeIsNotValid when given range is not valid. ErrRangeIsNotValid = fmt.Errorf("range %w", ErrIsNotValid) // ErrVersionOutsideOfRange when given version is outside of range. ErrVersionOutsideOfRange = fmt.Errorf("version %w for given range", ErrIsNotValid) )
Functions ¶
func CompatibleRanges ¶
CompatibleRanges will resolve compatible ranges from a version resolver.
Types ¶
type IsLatestResolver ¶
IsLatestResolver is a func that returns true if given version is the latest one within given version range.
Click to show internal directories.
Click to hide internal directories.