Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsHasNewVersion ¶
IsHasNewVersion asserts hasNewVersionError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsVersionNotFound ¶
IsVersionNotFound asserts versionNotFoundError.
Types ¶
type Config ¶
type Config struct { // GithubToken will be used when fetching versions // from private GitHub repositories. GithubToken string // CurrentVersion is the currently installed version // of the application. CurrentVersion string // RepositoryURL is the URL to the GitHub repository. RepositoryURL string // CacheDir is the path to the directory where the // cache should be stored. CacheDir string }
type Updater ¶
type Updater struct {
// contains filtered or unexported fields
}
func (*Updater) GetLatest ¶
GetLatest returns the latest version available in the source repository, and if we can upgrade to that version or not (it can be equal to the current version).
func (*Updater) InstallLatest ¶
InstallLatest installs the newest version that can be installed.
Click to show internal directories.
Click to hide internal directories.