Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnknownArchiveType = errors.New("unknown archive type") ErrNoMatchingArchitectures = errors.New("no matching architectures") ErrNoAssets = errors.New("no assets") ErrChecksumMismatch = errors.New("checksum mismatch") ErrUnsupportedChecksumFormat = errors.New("unsupported checksum format") ErrTimeoutExceeded = errors.New("timeout exceeded") )
View Source
var (
ErrReleaseNotFound = errors.New("release not found")
)
Functions ¶
func NewGitHubUpdateChecker ¶
func NewGitHubUpdateChecker(fqRepo string) updatechecker.UpdateChecker
Types ¶
type GitHubUpdateChecker ¶
type GitHubUpdateChecker struct {
// contains filtered or unexported fields
}
func (GitHubUpdateChecker) DownloadVersion ¶
func (c GitHubUpdateChecker) DownloadVersion(version string, requireChecksumMatch bool) (string, error)
DownloadVersion will download and extract the specific version, returning a path to the extracted file in the archive it's the responsibility of the caller to clean up the extracted file
func (GitHubUpdateChecker) GetLatestVersion ¶
func (c GitHubUpdateChecker) GetLatestVersion(timeout time.Duration) (*updatechecker.VersionInfo, error)
GetLatestVersion will return the latest version information from the git repository
Click to show internal directories.
Click to hide internal directories.