github

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	AuthorizeURL() string
	AccessTokenURL() string
	AccessToken(code string) (string, error)
	UserInfo(string) (string, string, string, error)
}

func NewAuth

func NewAuth(clientID, clientSecret string) Auth

type Code

type Code interface {
	CommitsOnBranch(string, int) ([]*github.RepositoryCommit, error)
	CommitsOnBranchAfter(string, string) ([]*github.RepositoryCommit, error)
	CompareRefs(string, string) ([]*github.RepositoryCommit, error)
	Revert(sha1, branch string) error
	ParseWebhookForBranch(*http.Request, *regexp.Regexp) (string, error)
}

func NewCode

func NewCode(codeToken, repoOwner, repo, webhookURL, webhookSecret string) Code

Jump to

Keyboard shortcuts

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