Documentation
¶
Overview ¶
Package resolver contains a git tag aware version resolver that supports channels to determine the latest version.
Index ¶
Constants ¶
View Source
const StableChannel = "stable"
StableChannel is the default channel used when a version doesn't contain a channel.
Variables ¶
View Source
var GetVersions = getVersions
GetVersions returns all known channels and the versions that are available for each channel.
Note: token is _optional_, if you do not wish to authenticate with your VCS provider you can pass an empty string.
Functions ¶
Types ¶
type Criteria ¶
type Criteria struct {
// URL is the URL to the repository to check for updates.
URL string
// Channel is the channel to use for determining the latest version.
// Leave empty to use the StableChannel.
Channel string
}
Criteria is the criteria used to determine the latest version
type Version ¶
type Version struct {
// Tag is the git tag that represents the version.
Tag string `yaml:"version"`
// Commit is the git commit that this tag refers to.
Commit string `yaml:"commit"`
// Channel is the channel that this version is associated with.
Channel string `yaml:"channel"`
// contains filtered or unexported fields
}
Version is a resolved version from a git repository
Click to show internal directories.
Click to hide internal directories.