Documentation
¶
Index ¶
- type Source
- func (s Source) DownloadReleaseAssets(assets []*github.ReleaseAsset, dir string) error
- func (s Source) FetchLatestRelease() (*github.RepositoryRelease, error)
- func (s Source) FetchLatestTag() (string, error)
- func (s Source) FetchRelease(releaseID int64) (*github.RepositoryRelease, error)
- func (s Source) ListReleases(opts *github.ListOptions) ([]*github.RepositoryRelease, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Source ¶
type Source struct {
// Owner specifies the organization or user this tool belongs to
Owner string
// Repo specifies the repository of the tool
Repo string
// contains filtered or unexported fields
}
func (Source) DownloadReleaseAssets ¶
func (s Source) DownloadReleaseAssets(assets []*github.ReleaseAsset, dir string) error
DownloadReleaseAssets downloads the provided GitHub release assets and stores them in the given directory. The resulting files will match the assets' names
func (Source) FetchLatestRelease ¶
func (s Source) FetchLatestRelease() (*github.RepositoryRelease, error)
FetchLatestRelease returns the latest release of the tool from GitHub
func (Source) FetchLatestTag ¶
FetchTags returns the latest tag FetchLatestTag returns the latest tag
func (Source) FetchRelease ¶
func (s Source) FetchRelease(releaseID int64) (*github.RepositoryRelease, error)
FetchRelease returns the specified release of the tool from GitHub
func (Source) ListReleases ¶
func (s Source) ListReleases(opts *github.ListOptions) ([]*github.RepositoryRelease, error)
ListReleases returns all releases of the tool from GitHub
Click to show internal directories.
Click to hide internal directories.