Versions in this module Expand all Collapse all v0 v0.4.7 Dec 23, 2019 v0.4.6 Dec 23, 2019 Changes in this version type Repository + UpdatedOn time.Time v0.4.5 Dec 23, 2019 v0.4.4 Dec 23, 2019 v0.4.3 Dec 23, 2019 v0.4.2 Dec 23, 2019 Changes in this version + type PageRes struct + Page int32 + PageLen int32 + Size int32 type PullRequestsOptions + Query string + Sort string + States []string type RepositoriesOptions + Page int32 + type RepositoriesRes struct + Items []Repository + Page int32 + Pagelen int32 + Size int32 type Repository + UpdatedAt time.Time + func (r *Repository) GetFileBlob(ro *RepositoryBlobOptions) (*RepositoryBlob, error) + func (r *Repository) ListBranches(rbo *RepositoryBranchOptions) (*RepositoryBranches, error) + func (r *Repository) ListFiles(ro *RepositoryFilesOptions) ([]RepositoryFile, error) + func (r *Repository) ListRefs(rbo *RepositoryBranchOptions) (*RepositoryBranches, error) + type RepositoryBlob struct + Content []byte + func (rb RepositoryBlob) String() string + type RepositoryBlobOptions struct + Owner string + Path string + Ref string + RepoSlug string + type RepositoryBranch struct + Default_Merge_Strategy string + Heads []map[string]interface{} + Links map[string]interface{} + Merge_Strategies []string + Name string + Target map[string]interface{} + Type string + type RepositoryBranchOptions struct + Owner string + PageNum int + Pagelen int + Query string + RepoSlug string + Sort string + type RepositoryBranches struct + Branches []RepositoryBranch + Next string + Page int + Pagelen int + Size int + type RepositoryFile struct + Attributes []string + Commit map[string]interface{} + Links map[string]interface{} + Mimetype string + Path string + Size int + Type string + func (rf RepositoryFile) String() string + type RepositoryFilesOptions struct + Owner string + Ref string + RepoSlug string v0.4.1 Jan 22, 2019 Changes in this version + const DEFAULT_PAGE_LENGTH + func DecodeError(e map[string]interface{}) error + func GetApiBaseURL() string + func SetApiBaseURL(urlStr string) + type BitbucketError struct + Fields map[string][]string + Message string + type BranchRestrictions struct + func (b *BranchRestrictions) Create(bo *BranchRestrictionsOptions) (interface{}, error) + func (b *BranchRestrictions) Delete(bo *BranchRestrictionsOptions) (interface{}, error) + func (b *BranchRestrictions) Get(bo *BranchRestrictionsOptions) (interface{}, error) + func (b *BranchRestrictions) Gets(bo *BranchRestrictionsOptions) (interface{}, error) + func (b *BranchRestrictions) Update(bo *BranchRestrictionsOptions) (interface{}, error) + type BranchRestrictionsOptions struct + FullSlug string + Groups map[string]string + ID string + Kind string + Name string + Owner string + Pattern string + RepoSlug string + Users []string + Value interface{} + type Client struct + Auth *auth + HttpClient *http.Client + Pagelen uint64 + Repositories *Repositories + Teams teams + User user + Users users + func NewBasicAuth(u, p string) *Client + func NewOAuth(i, s string) *Client + func NewOAuthClientCredentials(i, s string) *Client + func NewOAuthWithCode(i, s, c string) (*Client, string) + func NewOAuthbearerToken(t string) *Client + func (c *Client) Get(t string) (interface{}, error) + type CommitStatusOptions struct + Description string + Key string + Name string + State string + Url string + type Commits struct + func (cm *Commits) CreateCommitStatus(cmo *CommitsOptions, cso *CommitStatusOptions) (interface{}, error) + func (cm *Commits) GetCommit(cmo *CommitsOptions) (interface{}, error) + func (cm *Commits) GetCommitComment(cmo *CommitsOptions) (interface{}, error) + func (cm *Commits) GetCommitComments(cmo *CommitsOptions) (interface{}, error) + func (cm *Commits) GetCommitStatus(cmo *CommitsOptions, commitStatusKey string) (interface{}, error) + func (cm *Commits) GetCommitStatuses(cmo *CommitsOptions) (interface{}, error) + func (cm *Commits) GetCommits(cmo *CommitsOptions) (interface{}, error) + func (cm *Commits) GiveApprove(cmo *CommitsOptions) (interface{}, error) + func (cm *Commits) RemoveApprove(cmo *CommitsOptions) (interface{}, error) + type CommitsOptions struct + Branchortag string + CommentID string + Exclude string + Include string + Owner string + RepoSlug string + Revision string + type Diff struct + func (d *Diff) GetDiff(do *DiffOptions) (interface{}, error) + func (d *Diff) GetPatch(do *DiffOptions) (interface{}, error) + type DiffOptions struct + Owner string + RepoSlug string + Spec string + type Downloads struct + func (dl *Downloads) Create(do *DownloadsOptions) (interface{}, error) + func (dl *Downloads) List(do *DownloadsOptions) (interface{}, error) + type DownloadsOptions struct + FileName string + FilePath string + Owner string + RepoSlug string + type Pipeline struct + Enabled bool + Repository Repository + Type string + type PipelineKeyPair struct + PrivateKey string + PublicKey string + Type string + Uuid string + type PipelineVariable struct + Key string + Secured bool + Type string + Uuid string + Value string + type Project struct + Key string + Name string + type PullRequests struct + func (p *PullRequests) Activities(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Activity(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Commits(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Create(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Decline(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Diff(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Get(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) GetComment(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) GetComments(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Gets(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Merge(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Patch(po *PullRequestsOptions) (interface{}, error) + func (p *PullRequests) Update(po *PullRequestsOptions) (interface{}, error) + type PullRequestsOptions struct + CloseSourceBranch bool + CommentID string + Description string + DestinationBranch string + DestinationCommit string + ID string + Message string + Owner string + RepoSlug string + Reviewers []string + SourceBranch string + SourceRepository string + Title string + type Repositories struct + BranchRestrictions *BranchRestrictions + Commits *Commits + Diff *Diff + Downloads *Downloads + PullRequests *PullRequests + Repository *Repository + Webhooks *Webhooks + func (r *Repositories) ListForAccount(ro *RepositoriesOptions) (interface{}, error) + func (r *Repositories) ListForTeam(ro *RepositoriesOptions) (interface{}, error) + func (r *Repositories) ListPublic() (interface{}, error) + type RepositoriesOptions struct + Owner string + Role string + type Repository struct + Description string + ForkPolicy string + Full_name string + Links map[string]interface{} + Owner map[string]interface{} + Project Project + Slug string + Type string + func (r *Repository) AddPipelineKeyPair(rpkpo *RepositoryPipelineKeyPairOptions) (*PipelineKeyPair, error) + func (r *Repository) AddPipelineVariable(rpvo *RepositoryPipelineVariableOptions) (*PipelineVariable, error) + func (r *Repository) Create(ro *RepositoryOptions) (*Repository, error) + func (r *Repository) Delete(ro *RepositoryOptions) (interface{}, error) + func (r *Repository) Get(ro *RepositoryOptions) (*Repository, error) + func (r *Repository) ListForks(ro *RepositoryOptions) (interface{}, error) + func (r *Repository) ListWatchers(ro *RepositoryOptions) (interface{}, error) + func (r *Repository) UpdatePipelineConfig(rpo *RepositoryPipelineOptions) (*Pipeline, error) + type RepositoryOptions struct + Description string + ForkPolicy string + HasIssues string + HasWiki string + IsPrivate string + Language string + Owner string + Project string + RepoSlug string + Scm string + type RepositoryPipelineKeyPairOptions struct + Owner string + PrivateKey string + PublicKey string + RepoSlug string + type RepositoryPipelineOptions struct + Enabled bool + Owner string + RepoSlug string + type RepositoryPipelineVariableOptions struct + Key string + Owner string + RepoSlug string + Secured bool + Uuid string + Value string + type Teams struct + func (t *Teams) Followers(teamname string) (interface{}, error) + func (t *Teams) Following(teamname string) (interface{}, error) + func (t *Teams) List(role string) (interface{}, error) + func (t *Teams) Members(teamname string) (interface{}, error) + func (t *Teams) Profile(teamname string) (interface{}, error) + func (t *Teams) Projects(teamname string) (interface{}, error) + func (t *Teams) Repositories(teamname string) (interface{}, error) + type User struct + func (u *User) Emails() (interface{}, error) + func (u *User) Profile() (interface{}, error) + type Users struct + func (u *Users) Followers(t string) (interface{}, error) + func (u *Users) Following(t string) (interface{}, error) + func (u *Users) Get(t string) (interface{}, error) + func (u *Users) Repositories(t string) (interface{}, error) + type Webhooks struct + func (r *Webhooks) Create(ro *WebhooksOptions) (interface{}, error) + func (r *Webhooks) Delete(ro *WebhooksOptions) (interface{}, error) + func (r *Webhooks) Get(ro *WebhooksOptions) (interface{}, error) + func (r *Webhooks) Gets(ro *WebhooksOptions) (interface{}, error) + func (r *Webhooks) Update(ro *WebhooksOptions) (interface{}, error) + type WebhooksOptions struct + Active bool + Description string + Events []string + Owner string + RepoSlug string + Url string + Uuid string