Versions in this module Expand all Collapse all v0 v0.4.0 Oct 26, 2015 Changes in this version + const DefaultAPI + const DefaultScope + const DefaultURL + const DescError + const DescFailure + const DescPending + const DescSuccess + const StatusError + const StatusFailure + const StatusPending + const StatusSuccess + func CreateHook(client *github.Client, owner, name, url string) (*github.Hook, error) + func CreateKey(client *github.Client, owner, name, title, key string) (*github.Key, error) + func CreateUpdateHook(client *github.Client, owner, name, url string) (*github.Hook, error) + func CreateUpdateKey(client *github.Client, owner, name, title, key string) (*github.Key, error) + func DeleteHook(client *github.Client, owner, name, url string) error + func DeleteKey(client *github.Client, owner, name, title string) error + func GetAllRepos(client *github.Client) ([]github.Repository, error) + func GetFile(client *github.Client, owner, name, path, ref string) ([]byte, error) + func GetHook(client *github.Client, owner, name, url string) (*github.Hook, error) + func GetKey(client *github.Client, owner, name, title string) (*github.Key, error) + func GetKeyTitle(rawurl string) (string, error) + func GetOrgRepos(client *github.Client, org string) ([]github.Repository, error) + func GetOrgs(client *github.Client) ([]github.Organization, error) + func GetPayload(req *http.Request) []byte + func GetRandom() string + func GetRepo(client *github.Client, owner, repo string) (*github.Repository, error) + func GetUserEmail(client *github.Client) (*github.User, error) + func GetUserRepos(client *github.Client) ([]github.Repository, error) + func NewClient(uri, token string, skipVerify bool) *github.Client + func UserBelongsToOrg(client *github.Client, permittedOrgs []string) (bool, error) + type Github struct + API string + Client string + GitSSH bool + Open bool + Orgs []string + PrivateMode bool + Secret string + SkipVerify bool + URL string + func Load(env envconfig.Env) *Github + func (g *Github) Activate(u *model.User, r *model.Repo, k *model.Key, link string) error + func (g *Github) Auth(token, secret string) (string, error) + func (g *Github) Deactivate(u *model.User, r *model.Repo, link string) error + func (g *Github) Hook(r *http.Request) (*model.Repo, *model.Build, error) + func (g *Github) Login(res http.ResponseWriter, req *http.Request) (*model.User, bool, error) + func (g *Github) Netrc(u *model.User, r *model.Repo) (*model.Netrc, error) + func (g *Github) Perm(u *model.User, owner, name string) (*model.Perm, error) + func (g *Github) Repo(u *model.User, owner, name string) (*model.Repo, error) + func (g *Github) Repos(u *model.User) ([]*model.RepoLite, error) + func (g *Github) Script(u *model.User, r *model.Repo, b *model.Build) ([]byte, []byte, error) + func (g *Github) Status(u *model.User, r *model.Repo, b *model.Build, link string) error