Documentation ¶
Index ¶
- type Asset
- type Assets
- type GithubClient
- func (c *GithubClient) GetAllReleases(ctx context.Context, owner, repo string) (Releases, error)
- func (c *GithubClient) GetAllVersions(ctx context.Context, prefix, owner, repo string) ([]string, error)
- func (c *GithubClient) GetGoVersions(ctx context.Context) ([]string, error)
- func (c *GithubClient) GetLatestDownloadUrl(ctx context.Context, owner, repo, os, arch string) (string, error)
- func (c *GithubClient) GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error)
- func (c *GithubClient) GetMatchingDownloadUrl(ctx context.Context, owner, repo, os, arch, constraint string) (string, error)
- type Release
- type Releases
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GithubClient ¶
func NewClient ¶
func NewClient(token string) *GithubClient
func (*GithubClient) GetAllReleases ¶
func (*GithubClient) GetAllVersions ¶
func (*GithubClient) GetGoVersions ¶
func (c *GithubClient) GetGoVersions(ctx context.Context) ([]string, error)
func (*GithubClient) GetLatestDownloadUrl ¶
func (*GithubClient) GetLatestRelease ¶
func (*GithubClient) GetMatchingDownloadUrl ¶
type Releases ¶
type Releases []*Release
func (Releases) FindSatisfying ¶
func (r Releases) FindSatisfying(constraint *semver.Constraints) *Release
func (Releases) WithoutDraftsOrPrereleases ¶
Click to show internal directories.
Click to hide internal directories.