Versions in this module Expand all Collapse all v0 v0.4.0 Oct 26, 2015 Changes in this version + type Account struct + Links Links + Login string + Name string + Type string + type AccountResp struct + Next string + Page int + Pages int + Size int + Values []*Account + type Bitbucket struct + Client string + Open bool + Orgs []string + Secret string + func Load(env envconfig.Env) *Bitbucket + func (bb *Bitbucket) Activate(u *model.User, r *model.Repo, k *model.Key, link string) error + func (bb *Bitbucket) Auth(token, secret string) (string, error) + func (bb *Bitbucket) Deactivate(u *model.User, r *model.Repo, link string) error + func (bb *Bitbucket) Hook(r *http.Request) (*model.Repo, *model.Build, error) + func (bb *Bitbucket) Login(res http.ResponseWriter, req *http.Request) (*model.User, bool, error) + func (bb *Bitbucket) Netrc(u *model.User, r *model.Repo) (*model.Netrc, error) + func (bb *Bitbucket) Perm(u *model.User, owner, name string) (*model.Perm, error) + func (bb *Bitbucket) Refresh(user *model.User) (bool, error) + func (bb *Bitbucket) Repo(u *model.User, owner, name string) (*model.Repo, error) + func (bb *Bitbucket) Repos(u *model.User) ([]*model.RepoLite, error) + func (bb *Bitbucket) Script(u *model.User, r *model.Repo, b *model.Build) ([]byte, []byte, error) + func (bb *Bitbucket) Status(u *model.User, r *model.Repo, b *model.Build, link string) error + type Client struct + func NewClient(client *http.Client) *Client + func NewClientToken(client, secret string, token *oauth2.Token) *Client + func (c *Client) CreateHook(owner, name string, hook *Hook) error + func (c *Client) DeleteHook(owner, name, id string) error + func (c *Client) FindCurrent() (*Account, error) + func (c *Client) FindHook(owner, name, id string) (*Hook, error) + func (c *Client) FindRepo(owner, name string) (*Repo, error) + func (c *Client) FindSource(owner, name, revision, path string) (*Source, error) + func (c *Client) ListEmail() (*EmailResp, error) + func (c *Client) ListHooks(owner, name string, opts *ListOpts) (*HookResp, error) + func (c *Client) ListRepos(account string, opts *ListOpts) (*RepoResp, error) + func (c *Client) ListReposAll(account string) ([]*Repo, error) + func (c *Client) ListTeams(opts *ListTeamOpts) (*AccountResp, error) + type Email struct + Email string + IsConfirmed bool + IsPrimary bool + type EmailResp struct + Next string + Page int + Pages int + Size int + Values []*Email + type Error struct + Body struct{ ... } + Status int + func (e Error) Error() string + type Hook struct + Active bool + Desc string + Events []string + Url string + Uuid string + type HookResp struct + Next string + Page int + Pages int + Size int + Values []*Hook + type Link struct + Href string + Name string + type LinkClone struct + type Links struct + Avatar Link + Clone []Link + Html Link + type ListOpts struct + Page int + PageLen int + func (o *ListOpts) Encode() string + type ListTeamOpts struct + Page int + PageLen int + Role string + func (o *ListTeamOpts) Encode() string + type PullRequestHook struct + Actor Account + PullRequest struct{ ... } + Repo Repo + type PushHook struct + Actor Account + Push struct{ ... } + Repo Repo + type Repo struct + Desc string + FullName string + IsPrivate bool + Language string + Links Links + Name string + Owner Account + Scm string + type RepoResp struct + Next string + Page int + Pages int + Size int + Values []*Repo + type Source struct + Data string + Node string + Path string + Size int64