Versions in this module Expand all Collapse all v0 v0.4.2 Apr 28, 2016 Changes in this version + func Activate(c context.Context, u *model.User, r *model.Repo, k *model.Key, link string) error + func Auth(c context.Context, token, secret string) (string, error) + func Deactivate(c context.Context, u *model.User, r *model.Repo, link string) error + func File(c context.Context, u *model.User, r *model.Repo, b *model.Build, f string) ([]byte, error) + func Hook(c context.Context, r *http.Request) (*model.Repo, *model.Build, error) + func Login(c context.Context, w http.ResponseWriter, r *http.Request) (*model.User, bool, error) + func Netrc(c context.Context, u *model.User, r *model.Repo) (*model.Netrc, error) + func Perm(c context.Context, u *model.User, owner, repo string) (*model.Perm, error) + func Refresh(c context.Context, u *model.User) (bool, error) + func Repo(c context.Context, u *model.User, owner, repo string) (*model.Repo, error) + func Repos(c context.Context, u *model.User) ([]*model.RepoLite, error) + func Status(c context.Context, u *model.User, r *model.Repo, b *model.Build, link string) error type Remote + File func(u *model.User, r *model.Repo, b *model.Build, f string) ([]byte, error) v0.4.0 Oct 26, 2015 Changes in this version + func ToContext(c Setter, r Remote) + type Refresher interface + Refresh func(*model.User) (bool, error) + type Remote interface + Activate func(u *model.User, r *model.Repo, k *model.Key, link string) error + Auth func(token, secret string) (string, error) + Deactivate func(u *model.User, r *model.Repo, link string) error + Hook func(r *http.Request) (*model.Repo, *model.Build, error) + Login func(w http.ResponseWriter, r *http.Request) (*model.User, bool, error) + Netrc func(u *model.User, r *model.Repo) (*model.Netrc, error) + Perm func(u *model.User, owner, repo string) (*model.Perm, error) + Repo func(u *model.User, owner, repo string) (*model.Repo, error) + Repos func(u *model.User) ([]*model.RepoLite, error) + Script func(u *model.User, r *model.Repo, b *model.Build) ([]byte, []byte, error) + Status func(u *model.User, r *model.Repo, b *model.Build, link string) error + func FromContext(c context.Context) Remote + func Load(env envconfig.Env) Remote + type Setter interface + Set func(string, interface{})