Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitHubRelease ¶
type GitHubRelease struct {
TagName string `json:"tag_name"`
Name string `json:"name"`
HTMLURL string `json:"html_url"`
Prerelease bool `json:"prerelease"`
Draft bool `json:"draft"`
}
GitHubRelease represents a GitHub release response
type UpdateInfo ¶
type UpdateInfo struct {
Available bool
CurrentVer string
LatestVer string
ReleaseURL string
ReleaseName string
}
UpdateInfo contains information about available updates
func CheckForUpdates ¶
func CheckForUpdates(ctx context.Context, currentVersion string) (*UpdateInfo, error)
CheckForUpdates checks GitHub for the latest release of sshc
Click to show internal directories.
Click to hide internal directories.