Versions in this module Expand all Collapse all v0 v0.8.4 Oct 11, 2022 Changes in this version + func Activate(c context.Context, u *model.User, r *model.Repo, 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) (out []byte, err error) + func FileBackoff(remote Remote, u *model.User, r *model.Repo, b *model.Build, f string) (out []byte, err 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, 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.Repo, error) + func Status(c context.Context, u *model.User, r *model.Repo, b *model.Build, link string) error + func Teams(c context.Context, u *model.User) ([]*model.Team, error) + func ToContext(c Setter, r Remote) + type AuthError struct + Description string + Err string + URI string + func (ae *AuthError) Error() string + type Refresher interface + Refresh func(*model.User) (bool, error) + type Remote interface + Activate func(u *model.User, r *model.Repo, link string) error + Auth func(token, secret string) (string, error) + Deactivate func(u *model.User, r *model.Repo, link string) error + File func(u *model.User, r *model.Repo, b *model.Build, f string) ([]byte, error) + FileRef func(u *model.User, r *model.Repo, ref, f string) ([]byte, error) + Hook func(r *http.Request) (*model.Repo, *model.Build, error) + Login func(w http.ResponseWriter, r *http.Request) (*model.User, 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.Repo, error) + Status func(u *model.User, r *model.Repo, b *model.Build, link string) error + Teams func(u *model.User) ([]*model.Team, error) + func FromContext(c context.Context) Remote + type Setter interface + Set func(string, interface{})