Documentation
¶
Index ¶
- func DownloadReleaseAsset(client *github.Client, tag string, targetOs string, progress bool) (string, error)
- func GetLatestRelease(client *github.Client) (*github.RepositoryRelease, error)
- func GetRelease(client *github.Client, release string) (*github.RepositoryRelease, error)
- func GetReleases(client *github.Client, n int, releaseType string) ([]*github.RepositoryRelease, error)
- func NewClient(token string) *github.Client
- type WriteCounter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadReleaseAsset ¶
func DownloadReleaseAsset(client *github.Client, tag string, targetOs string, progress bool) (string, error)
DownloadReleaseAsset downloads the release asset for a given platform to a temp file and returns the path to the written file. targetOs should be "windows", "darwin", "linux"
func GetLatestRelease ¶
func GetLatestRelease(client *github.Client) (*github.RepositoryRelease, error)
func GetRelease ¶
func GetReleases ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.