github

package
v0.1.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	API_URL = "https://api.github.com"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHub

type GitHub struct {
	types.Vendor
}

func GetClient

func GetClient(token string) *GitHub

func (*GitHub) CreateHook

func (g *GitHub) CreateHook(id, owner, repo, host string) (*string, error)

func (*GitHub) GetUser

func (g *GitHub) GetUser() (*types.User, error)

func (*GitHub) ListBranches

func (g *GitHub) ListBranches(owner, repo string) (*types.VCSBranches, error)

func (*GitHub) ListRepositories

func (g *GitHub) ListRepositories(username string, org bool) (*types.VCSRepositories, error)

func (*GitHub) PushPayload

func (g *GitHub) PushPayload(data []byte) (*types.VCSBranch, error)

func (*GitHub) RemoveHook

func (g *GitHub) RemoveHook(id, owner, repo string) error

func (*GitHub) VendorInfo

func (g *GitHub) VendorInfo() *types.Vendor

Jump to

Keyboard shortcuts

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