Documentation ¶
Index ¶
- func DownloadLatestReleaseAsset(client *http.Client, repo string, goos string) (io.ReadCloser, error)
- func DownloadReleaseAsset(client *http.Client, repo string, goos string, tag string) (io.ReadCloser, string, int, error)
- func GetLatestRelease(client *http.Client, repo string) (*github.RepositoryRelease, error)
- func GetLatestReleaseAsset(client *http.Client, repo string, goos string) (*github.ReleaseAsset, error)
- func GetRelease(client *http.Client, repo string, tag string) (*github.RepositoryRelease, error)
- func GetReleaseAsset(client *http.Client, repo string, goos string, tag string) (*github.ReleaseAsset, error)
- func VersionGreaterThan(v, w string) bool
- type ReleaseInfo
- type StateEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadLatestReleaseAsset ¶ added in v0.16.0
func DownloadReleaseAsset ¶ added in v0.16.0
func GetLatestRelease ¶ added in v0.16.0
func GetLatestReleaseAsset ¶ added in v0.16.0
func GetRelease ¶ added in v0.16.0
func GetReleaseAsset ¶ added in v0.16.0
func VersionGreaterThan ¶ added in v0.16.0
Types ¶
type ReleaseInfo ¶
ReleaseInfo stores information about a release
func CheckForUpdate ¶
func CheckForUpdate(client *http.Client, stateFilePath, repo string, currentVersion string) (*ReleaseInfo, error)
CheckForUpdate checks whether a new release is available on GitHub
type StateEntry ¶
type StateEntry struct { CheckedForUpdateAt time.Time `yaml:"checked_for_update_at"` LatestRelease ReleaseInfo `yaml:"latest_release"` }
Click to show internal directories.
Click to hide internal directories.