Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubUpdater ¶
type GithubUpdater struct {
// contains filtered or unexported fields
}
GithubUpdater checks for and applies CLI updates from GitHub releases.
func NewGitHubUpdater ¶
func NewGitHubUpdater() (*GithubUpdater, error)
NewGitHubUpdater creates a GithubUpdater.
func (*GithubUpdater) DetectLatest ¶
func (g *GithubUpdater) DetectLatest(ctx context.Context) (*ReleaseInfo, bool, error)
DetectLatest finds the latest release available.
func (*GithubUpdater) DetectVersion ¶
func (g *GithubUpdater) DetectVersion(ctx context.Context, version string) (*ReleaseInfo, bool, error)
DetectVersion finds a specific release by version string.
type ReleaseInfo ¶
type ReleaseInfo struct {
Version string
}
ReleaseInfo contains version information about a release.
Click to show internal directories.
Click to hide internal directories.