Versions in this module Expand all Collapse all v0 v0.5.0 Mar 13, 2017 Changes in this version + func CreateConsumer(URL string, ConsumerKey string, PrivateKey *rsa.PrivateKey) *oauth.Consumer + func New(opts Opts) (remote.Remote, error) + type Config struct + Consumer *oauth.Consumer + Password string + SkipVerify bool + URL string + Username string + func (*Config) Auth(token, secret string) (string, error) + func (*Config) TeamPerm(u *model.User, org string) (*model.Perm, error) + func (*Config) Teams(u *model.User) ([]*model.Team, error) + func (c *Config) Activate(u *model.User, r *model.Repo, link string) error + func (c *Config) Deactivate(u *model.User, r *model.Repo, link string) error + func (c *Config) File(u *model.User, r *model.Repo, b *model.Build, f string) ([]byte, error) + func (c *Config) Hook(r *http.Request) (*model.Repo, *model.Build, error) + func (c *Config) Login(res http.ResponseWriter, req *http.Request) (*model.User, error) + func (c *Config) Netrc(user *model.User, r *model.Repo) (*model.Netrc, error) + func (c *Config) Perm(u *model.User, owner, repo string) (*model.Perm, error) + func (c *Config) Repo(u *model.User, owner, name string) (*model.Repo, error) + func (c *Config) Repos(u *model.User) ([]*model.RepoLite, error) + func (c *Config) Status(u *model.User, r *model.Repo, b *model.Build, link string) error + type Opts struct + ConsumerKey string + ConsumerRSA string + ConsumerRSAString string + Password string + SkipVerify bool + URL string + Username string v0.5.0-rc1 Mar 1, 2017 v0.4.2 Apr 28, 2016 Changes in this version + func NewClient(ConsumerRSA string, ConsumerKey string, URL string) *oauth.Consumer + func NewClientWithToken(Consumer *oauth.Consumer, AccessToken string) *http.Client + type BSRepo struct + Forkable bool + ID int + Links struct{ ... } + Name string + Project struct{ ... } + Public bool + ScmID string + Slug string + State string + StatusMessage string + type BitbucketServer struct + Consumer oauth.Consumer + ConsumerKey string + ConsumerRSA string + GitPassword string + GitUserName string + Open bool + URL string + func Load(config string) *BitbucketServer + func (bs *BitbucketServer) Activate(u *model.User, r *model.Repo, k *model.Key, link string) error + func (bs *BitbucketServer) Auth(token, secret string) (string, error) + func (bs *BitbucketServer) CreateHook(client *http.Client, project, slug, hook_key, link string) (*Hook, error) + func (bs *BitbucketServer) Deactivate(u *model.User, r *model.Repo, link string) error + func (bs *BitbucketServer) DeleteHook(client *http.Client, project, slug, hook_key, link string) error + func (bs *BitbucketServer) File(u *model.User, r *model.Repo, b *model.Build, f string) ([]byte, error) + func (bs *BitbucketServer) Hook(r *http.Request) (*model.Repo, *model.Build, error) + func (bs *BitbucketServer) Login(res http.ResponseWriter, req *http.Request) (*model.User, bool, error) + func (bs *BitbucketServer) Netrc(user *model.User, r *model.Repo) (*model.Netrc, error) + func (bs *BitbucketServer) Perm(u *model.User, owner, repo string) (*model.Perm, error) + func (bs *BitbucketServer) Repo(u *model.User, owner, name string) (*model.Repo, error) + func (bs *BitbucketServer) Repos(u *model.User) ([]*model.RepoLite, error) + func (bs *BitbucketServer) Status(u *model.User, r *model.Repo, b *model.Build, link string) error + func (bs *BitbucketServer) String() string + type Hook struct + Details *HookDetail + Enabled bool + type HookDetail struct + ConfigFormKey string + Description string + Key string + Name string + Type string + Version string + type Repos struct + IsLastPage bool + Limit int + Size int + Start int + Values []struct{ ... } + type User struct + Active bool + DisplayName string + EmailAddress string + ID int + Links struct{ ... } + Name string + Slug string + Type string