Versions in this module Expand all Collapse all v0 v0.8.11 Jun 28, 2019 v0.8.10 Dec 6, 2018 Changes in this version + func New(opts Opts) (remote.Remote, error) + type Coding struct + Client string + Machine string + Password string + Scopes []string + Secret string + SkipVerify bool + URL string + Username string + func (c *Coding) Activate(u *model.User, r *model.Repo, link string) error + func (c *Coding) Auth(token, secret string) (string, error) + func (c *Coding) Deactivate(u *model.User, r *model.Repo, link string) error + func (c *Coding) File(u *model.User, r *model.Repo, b *model.Build, f string) ([]byte, error) + func (c *Coding) FileRef(u *model.User, r *model.Repo, ref, f string) ([]byte, error) + func (c *Coding) Hook(r *http.Request) (*model.Repo, *model.Build, error) + func (c *Coding) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) + func (c *Coding) Netrc(u *model.User, r *model.Repo) (*model.Netrc, error) + func (c *Coding) Perm(u *model.User, owner, repo string) (*model.Perm, error) + func (c *Coding) Refresh(u *model.User) (bool, error) + func (c *Coding) Repo(u *model.User, owner, repo string) (*model.Repo, error) + func (c *Coding) Repos(u *model.User) ([]*model.Repo, error) + func (c *Coding) Status(u *model.User, r *model.Repo, b *model.Build, link string) error + func (c *Coding) TeamPerm(u *model.User, org string) (*model.Perm, error) + func (c *Coding) Teams(u *model.User) ([]*model.Team, error) + type Commit struct + Committer *Committer + SHA string + ShortMessage string + type Committer struct + Email string + Name string + type MergeRequest struct + Action string + Body string + CommitSHA string + Number float64 + SourceBranch string + Status string + TargetBranch string + Title string + User *User + WebURL string + type MergeRequestHook struct + Event string + MergeRequest *MergeRequest + Repository *Repository + type Opts struct + Client string + Machine string + Password string + Scopes []string + Secret string + SkipVerify bool + URL string + Username string + type PullRequest MergeRequest + type PullRequestHook struct + Event string + PullRequest *PullRequest + Repository *Repository + type PushHook struct + After string + Before string + Commits []*Commit + Event string + Ref string + Repository *Repository + User *User + type Repository struct + HttpsURL string + Name string + Owner *User + SshURL string + WebURL string + type User struct + Avatar string + GlobalKey string