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 Ref ¶ added in v1.0.4
type Ref struct {
Object struct {
URL string `json:"url"`
} `json:"object"`
}
Ref is a representation of a Github Git Reference
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
type Tag ¶
type Tag struct {
Tag string `json:"tag"`
Tagger struct {
Date string `json:"date"`
} `json:"tagger"`
}
Tag is a JSON representation of a Github tag
Click to show internal directories.
Click to hide internal directories.