github

package
v0.0.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL