Versions in this module Expand all Collapse all v0 v0.3.0 Sep 17, 2015 Changes in this version + const DefaultAPI + const DefaultScope + const DefaultURL + 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, key 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 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 Register() + func UserBelongsToOrg(client *github.Client, permittedOrgs []string) (bool, error) + type GitHub struct + API string + Client string + Open bool + Orgs []string + Private bool + Secret string + SkipVerify bool + URL string + func New(url, api, client, secret string, private, skipVerify bool, orgs []string, ...) *GitHub + func NewDefault(client, secret string, orgs []string, open bool) *GitHub + func (r *GitHub) Activate(user *model.User, repo *model.Repo, link string) error + func (r *GitHub) Authorize(res http.ResponseWriter, req *http.Request) (*model.Login, error) + func (r *GitHub) Deactivate(user *model.User, repo *model.Repo, link string) error + func (r *GitHub) GetHost() string + func (r *GitHub) GetKind() string + func (r *GitHub) GetRepos(user *model.User) ([]*model.Repo, error) + func (r *GitHub) GetScript(user *model.User, repo *model.Repo, hook *model.Hook) ([]byte, error) + func (r *GitHub) GetToken(user *model.User) (*model.Token, error) + func (r *GitHub) IsEnterprise() bool + func (r *GitHub) OpenRegistration() bool + func (r *GitHub) ParseHook(req *http.Request) (*model.Hook, error) + func (r *GitHub) ParsePullRequestHook(req *http.Request) (*model.Hook, error)