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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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