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, *github.Response, error) DownloadReleaseAsset(owner, repo string, id int64) (io.ReadCloser, string, error) }
type GitHubClient ¶
func NewGitHubClient ¶
func NewGitHubClient(token, gitHubBaseURL string) (*GitHubClient, error)
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, *github.Response, error)
Click to show internal directories.
Click to hide internal directories.