Documentation
¶
Index ¶
Constants ¶
View Source
const ( // APILatest is a format string for the Latest releases API APILatest = "https://api.github.com/repos/%s/releases/latest" // APIReleases is a format string for the Releases API APIReleases = "https://api.github.com/repos/%s/releases" // APITags is a format string for the Tags API APITags = "https://api.github.com/repos/%s/git/refs/tags" // SourceFormat is the format string for Github release tarballs SourceFormat = "https://github.com/%s/archive/%s.tar.gz" )
Variables ¶
View Source
var SourceRegex = regexp.MustCompile("https?://github.com/([^/]*/[^/]*)/.*/[^/]*.tar.gz")
SourceRegex is the regex for Github sources
View Source
var VersionRegex = regexp.MustCompile("(?:\\d+\\.)*\\d+\\w*")
VersionRegex is used to parse Github version numbers
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider is the upstream provider interface for github
type Release ¶
type Release struct {
CreatedAt string `json:"created_at"`
Name string `json:"name"`
PreRelease bool `json:"prerelease"`
Tag string `json:"tag_name"`
}
Release is a JSON representation fo a Github release
Click to show internal directories.
Click to hide internal directories.