github

package
v0.0.0-...-ca671ec Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ListTeams(string, string, *github.ListOptions) ([]github.Team, *github.Response, error)
	ListCommits(owner, repo string, opts *github.CommitsListOptions) ([]github.RepositoryCommit, *github.Response, error)
	GetCommit(owner, repo, sha1 string) (*github.RepositoryCommit, *github.Response, error)
	IsTeamMember(int, string) (bool, *github.Response, error)
	IsCollaborator(string, string, string) (bool, *github.Response, error)
}

Client is an interface for testability. It provides access to a subset of github APIs.

func NewClient

func NewClient(token string) Client

NewClient returns a new client of Github APIs. "token" must be a valid Github API access token with several scopes. TODO(yugui) Add a comprehensive list of the scopes.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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