Documentation ¶
Index ¶
- Constants
- func Register()
- type Bitbucket
- func (r *Bitbucket) Activate(user *model.User, repo *model.Repo, link string) error
- func (r *Bitbucket) Authorize(res http.ResponseWriter, req *http.Request) (*model.Login, error)
- func (r *Bitbucket) GetHost() string
- func (r *Bitbucket) GetKind() string
- func (r *Bitbucket) GetRepos(user *model.User) ([]*model.Repo, error)
- func (r *Bitbucket) GetScript(user *model.User, repo *model.Repo, hook *model.Hook) ([]byte, error)
- func (r *Bitbucket) ParseHook(req *http.Request) (*model.Hook, error)
Constants ¶
View Source
const ( DefaultAPI = "https://api.bitbucket.org/1.0" DefaultURL = "https://bitbucket.org" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bitbucket ¶
func NewDefault ¶
func (*Bitbucket) Activate ¶
Activate activates a repository by adding a Post-commit hook and a Public Deploy key, if applicable.
func (*Bitbucket) GetKind ¶
GetKind returns the internal identifier of this remote Bitbucket instane.
func (*Bitbucket) GetRepos ¶
GetRepos fetches all repositories that the specified user has access to in the remote system.
Click to show internal directories.
Click to hide internal directories.