Documentation
¶
Index ¶
- func MakeReleasesMap(releases []*github.RepositoryRelease) map[string]*github.RepositoryRelease
- type Client
- func (c *Client) GetRelease(owner, repo, tag string) (*github.RepositoryRelease, error)
- func (c *Client) GetTagCommit(owner, repo, tag string) (*github.RepositoryCommit, error)
- func (c *Client) ListReleases(owner, repo string) ([]*github.RepositoryRelease, error)
- func (c *Client) ListTags(owner, repo string) ([]*github.RepositoryTag, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeReleasesMap ¶
func MakeReleasesMap(releases []*github.RepositoryRelease) map[string]*github.RepositoryRelease
MakeReleasesMap makes map of tag name and release
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a wrapper of GitHub API client
func (*Client) GetRelease ¶
func (c *Client) GetRelease(owner, repo, tag string) (*github.RepositoryRelease, error)
GetRelease returns release metadata of the given tag
func (*Client) GetTagCommit ¶
func (c *Client) GetTagCommit(owner, repo, tag string) (*github.RepositoryCommit, error)
GetTag returns commit metadata of the given tag
func (*Client) ListReleases ¶
func (c *Client) ListReleases(owner, repo string) ([]*github.RepositoryRelease, error)
ListReleases lists all releases of the given repository
Click to show internal directories.
Click to hide internal directories.