github

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(httpClient *http.Client) *Client

NewClient creates new Client object

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

func (*Client) ListTags

func (c *Client) ListTags(owner, repo string) ([]*github.RepositoryTag, error)

ListTags lists all tags of the given repository

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL