Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ListReleases(owner, repo string, opt *github.ListOptions) ([]*github.RepositoryRelease, error) DownloadReleaseAsset(owner, repo string, id int64) (io.ReadCloser, string, error) }
type GitHubClient ¶
func NewGitHubClient ¶
func NewGitHubClient(token string) *GitHubClient
func (*GitHubClient) DownloadReleaseAsset ¶
func (c *GitHubClient) DownloadReleaseAsset(owner, repo string, id int64) (io.ReadCloser, string, error)
func (*GitHubClient) ListReleases ¶
func (c *GitHubClient) ListReleases(owner, repo string, opt *github.ListOptions) ([]*github.RepositoryRelease, error)
Click to show internal directories.
Click to hide internal directories.