Documentation ¶
Index ¶
- Constants
- func DecodeError(e map[string]interface{}) error
- type BitbucketError
- type BranchModel
- type BranchRestrictions
- 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
- type BranchType
- type BranchingModel
- type Client
- type CommitStatusOptions
- type Commits
- 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
- type Diff
- type DiffOptions
- type Downloads
- type DownloadsOptions
- type PageRes
- type Pipeline
- type PipelineBuildNumber
- type PipelineKeyPair
- type PipelineVariable
- type Project
- type PullRequest
- type PullRequests
- 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) (*PullRequest, error)
- func (p *PullRequests) GetComment(po *PullRequestsOptions) (interface{}, error)
- func (p *PullRequests) GetComments(po *PullRequestsOptions) (interface{}, error)
- func (p *PullRequests) Gets(po *PullRequestsOptions) (*PullRequestsResp, 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
- type PullRequestsResp
- type Repositories
- type RepositoriesOptions
- type RepositoriesRes
- type Repository
- func (r *Repository) AddPipelineKeyPair(rpkpo *RepositoryPipelineKeyPairOptions) (*PipelineKeyPair, error)
- func (r *Repository) AddPipelineVariable(rpvo *RepositoryPipelineVariableOptions) (*PipelineVariable, error)
- func (r *Repository) BranchingModel(rbmo *RepositoryBranchingModelOptions) (*BranchingModel, error)
- func (r *Repository) Create(ro *RepositoryOptions) (*Repository, error)
- func (r *Repository) Delete(ro *RepositoryOptions) (interface{}, error)
- func (r *Repository) Fork(fo *RepositoryForkOptions) (*Repository, error)
- func (r *Repository) Get(ro *RepositoryOptions) (*Repository, error)
- func (r *Repository) GetBranch(rbo *RepositoryBranchOptions) (*RepositoryBranch, error)
- 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) ListForks(ro *RepositoryOptions) (interface{}, error)
- func (r *Repository) ListTags(rbo *RepositoryTagOptions) (*RepositoryTags, error)
- func (r *Repository) ListWatchers(ro *RepositoryOptions) (interface{}, error)
- func (r *Repository) UpdatePipelineBuildNumber(rpbno *RepositoryPipelineBuildNumberOptions) (*PipelineBuildNumber, error)
- func (r *Repository) UpdatePipelineConfig(rpo *RepositoryPipelineOptions) (*Pipeline, error)
- type RepositoryBlob
- type RepositoryBlobOptions
- type RepositoryBranch
- type RepositoryBranchOptions
- type RepositoryBranches
- type RepositoryBranchingModelOptions
- type RepositoryFile
- type RepositoryFilesOptions
- type RepositoryForkOptions
- type RepositoryOptions
- type RepositoryPipelineBuildNumberOptions
- type RepositoryPipelineKeyPairOptions
- type RepositoryPipelineOptions
- type RepositoryPipelineVariableOptions
- type RepositoryTag
- type RepositoryTagOptions
- type RepositoryTags
- type Teams
- 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
- type Users
- type Webhooks
- 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
Constants ¶
View Source
const DEFAULT_MAX_DEPTH = 1
View Source
const DEFAULT_PAGE_LENGTH = 10
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶
Types ¶
type BitbucketError ¶
type BranchModel ¶ added in v0.6.5
type BranchModel struct { Name string Branch RepositoryBranch Use_Mainbranch bool }
type BranchRestrictions ¶
type BranchRestrictions struct {
// contains filtered or unexported fields
}
func (*BranchRestrictions) Create ¶
func (b *BranchRestrictions) Create(bo *BranchRestrictionsOptions) (interface{}, error)
func (*BranchRestrictions) Delete ¶
func (b *BranchRestrictions) Delete(bo *BranchRestrictionsOptions) (interface{}, error)
func (*BranchRestrictions) Get ¶
func (b *BranchRestrictions) Get(bo *BranchRestrictionsOptions) (interface{}, error)
func (*BranchRestrictions) Gets ¶
func (b *BranchRestrictions) Gets(bo *BranchRestrictionsOptions) (interface{}, error)
func (*BranchRestrictions) Update ¶
func (b *BranchRestrictions) Update(bo *BranchRestrictionsOptions) (interface{}, error)
type BranchRestrictionsOptions ¶
type BranchRestrictionsOptions struct { Owner string `json:"owner"` RepoSlug string `json:"repo_slug"` ID string `json:"id"` Groups map[string]string `json:"groups"` Pattern string `json:"pattern"` Users []string `json:"users"` Kind string `json:"kind"` FullSlug string `json:"full_slug"` Name string `json:"name"` Value interface{} `json:"value"` }
type BranchType ¶ added in v0.6.5
type BranchingModel ¶ added in v0.6.5
type BranchingModel struct { Type string Branch_Types []BranchType Development BranchModel Production BranchModel }
type Client ¶
type Client struct { Auth *auth Users users User user Teams teams Repositories *Repositories Pagelen uint64 MaxDepth uint64 HttpClient *http.Client // contains filtered or unexported fields }
func NewBasicAuth ¶
func NewOAuthClientCredentials ¶ added in v0.4.1
Uses the Client Credentials Grant oauth2 flow to authenticate to Bitbucket
func NewOAuthWithCode ¶ added in v0.4.1
NewOAuthWithCode finishes the OAuth handshake with a given code and returns a *Client
func NewOAuthbearerToken ¶ added in v0.4.1
func (*Client) GetApiBaseURL ¶ added in v0.6.5
func (*Client) SetApiBaseURL ¶ added in v0.6.5
type CommitStatusOptions ¶ added in v0.4.1
type Commits ¶
type Commits struct {
// contains filtered or unexported fields
}
func (*Commits) CreateCommitStatus ¶ added in v0.4.1
func (cm *Commits) CreateCommitStatus(cmo *CommitsOptions, cso *CommitStatusOptions) (interface{}, error)
func (*Commits) GetCommit ¶
func (cm *Commits) GetCommit(cmo *CommitsOptions) (interface{}, error)
func (*Commits) GetCommitComment ¶
func (cm *Commits) GetCommitComment(cmo *CommitsOptions) (interface{}, error)
func (*Commits) GetCommitComments ¶
func (cm *Commits) GetCommitComments(cmo *CommitsOptions) (interface{}, error)
func (*Commits) GetCommitStatus ¶
func (cm *Commits) GetCommitStatus(cmo *CommitsOptions, commitStatusKey string) (interface{}, error)
func (*Commits) GetCommitStatuses ¶
func (cm *Commits) GetCommitStatuses(cmo *CommitsOptions) (interface{}, error)
func (*Commits) GetCommits ¶
func (cm *Commits) GetCommits(cmo *CommitsOptions) (interface{}, error)
func (*Commits) GiveApprove ¶
func (cm *Commits) GiveApprove(cmo *CommitsOptions) (interface{}, error)
func (*Commits) RemoveApprove ¶
func (cm *Commits) RemoveApprove(cmo *CommitsOptions) (interface{}, error)
type CommitsOptions ¶
type Diff ¶
type Diff struct {
// contains filtered or unexported fields
}
func (*Diff) GetDiff ¶
func (d *Diff) GetDiff(do *DiffOptions) (interface{}, error)
func (*Diff) GetPatch ¶
func (d *Diff) GetPatch(do *DiffOptions) (interface{}, error)
type DiffOptions ¶
type Downloads ¶ added in v0.4.1
type Downloads struct {
// contains filtered or unexported fields
}
func (*Downloads) Create ¶ added in v0.4.1
func (dl *Downloads) Create(do *DownloadsOptions) (interface{}, error)
func (*Downloads) List ¶ added in v0.4.1
func (dl *Downloads) List(do *DownloadsOptions) (interface{}, error)
type DownloadsOptions ¶ added in v0.4.1
type Pipeline ¶ added in v0.3.1
type Pipeline struct { Type string Enabled bool Repository Repository }
type PipelineBuildNumber ¶ added in v0.6.5
type PipelineKeyPair ¶ added in v0.3.1
type PipelineVariable ¶ added in v0.3.1
type PullRequest ¶ added in v0.6.5
type PullRequest struct { Author struct { AccountID string `mapstructure:"account_id"` DisplayName string `mapstructure:"display_name"` Links struct { Avatar struct { Href string `mapstructure:"href"` } `mapstructure:"avatar"` HTML struct { Href string `mapstructure:"href"` } `mapstructure:"html"` Self struct { Href string `mapstructure:"href"` } `mapstructure:"self"` } `mapstructure:"links"` Nickname string `mapstructure:"nickname"` Type string `mapstructure:"type"` UUID string `mapstructure:"uuid"` } `mapstructure:"author"` CloseSourceBranch bool `mapstructure:"close_source_branch"` ClosedBy interface{} `mapstructure:"closed_by"` CommentCount int32 `mapstructure:"comment_count"` CreatedOn string `mapstructure:"created_on"` Description string `mapstructure:"description"` Destination struct { Branch struct { Name string `mapstructure:"name"` } `mapstructure:"branch"` Commit struct { Hash string `mapstructure:"hash"` Links struct { HTML struct { Href string `mapstructure:"href"` } `mapstructure:"html"` Self struct { Href string `mapstructure:"href"` } `mapstructure:"self"` } `mapstructure:"links"` Type string `mapstructure:"type"` } `mapstructure:"commit"` Repository struct { FullName string `mapstructure:"full_name"` Links struct { Avatar struct { Href string `mapstructure:"href"` } `mapstructure:"avatar"` HTML struct { Href string `mapstructure:"href"` } `mapstructure:"html"` Self struct { Href string `mapstructure:"href"` } `mapstructure:"self"` } `mapstructure:"links"` Name string `mapstructure:"name"` Type string `mapstructure:"type"` UUID string `mapstructure:"uuid"` } `mapstructure:"repository"` } `mapstructure:"destination"` ID int32 `mapstructure:"id"` Links struct { Activity struct { Href string `mapstructure:"href"` } `mapstructure:"activity"` Approve struct { Href string `mapstructure:"href"` } `mapstructure:"approve"` Comments struct { Href string `mapstructure:"href"` } `mapstructure:"comments"` Commits struct { Href string `mapstructure:"href"` } `mapstructure:"commits"` Decline struct { Href string `mapstructure:"href"` } `mapstructure:"decline"` Diff struct { Href string `mapstructure:"href"` } `mapstructure:"diff"` Diffstat struct { Href string `mapstructure:"href"` } `mapstructure:"diffstat"` HTML struct { Href string `mapstructure:"href"` } `mapstructure:"html"` Merge struct { Href string `mapstructure:"href"` } `mapstructure:"merge"` Self struct { Href string `mapstructure:"href"` } `mapstructure:"self"` Statuses struct { Href string `mapstructure:"href"` } `mapstructure:"statuses"` } `mapstructure:"links"` MergeCommit interface{} `mapstructure:"merge_commit"` Participants []struct { Approved bool `mapstructure:"approved"` ParticipatedOn string `mapstructure:"participated_on"` Role string `mapstructure:"role"` Type string `mapstructure:"type"` User struct { AccountID string `mapstructure:"account_id"` DisplayName string `mapstructure:"display_name"` Links struct { Avatar struct { Href string `mapstructure:"href"` } `mapstructure:"avatar"` HTML struct { Href string `mapstructure:"href"` } `mapstructure:"html"` Self struct { Href string `mapstructure:"href"` } `mapstructure:"self"` } `mapstructure:"links"` Nickname string `mapstructure:"nickname"` Type string `mapstructure:"type"` UUID string `mapstructure:"uuid"` } `mapstructure:"user"` } `mapstructure:"participants"` Reason string `mapstructure:"reason"` Rendered struct { Description struct { HTML string `mapstructure:"html"` Markup string `mapstructure:"markup"` Raw string `mapstructure:"raw"` Type string `mapstructure:"type"` } `mapstructure:"description"` Title struct { HTML string `mapstructure:"html"` Markup string `mapstructure:"markup"` Raw string `mapstructure:"raw"` Type string `mapstructure:"type"` } `mapstructure:"title"` } `mapstructure:"rendered"` Reviewers []struct { AccountID string `mapstructure:"account_id"` DisplayName string `mapstructure:"display_name"` Links struct { Avatar struct { Href string `mapstructure:"href"` } `mapstructure:"avatar"` HTML struct { Href string `mapstructure:"href"` } `mapstructure:"html"` Self struct { Href string `mapstructure:"href"` } `mapstructure:"self"` } `mapstructure:"links"` Nickname string `mapstructure:"nickname"` Type string `mapstructure:"type"` UUID string `mapstructure:"uuid"` } `mapstructure:"reviewers"` Source struct { Branch struct { Name string `mapstructure:"name"` } `mapstructure:"branch"` Commit struct { Hash string `mapstructure:"hash"` Links struct { HTML struct { Href string `mapstructure:"href"` } `mapstructure:"html"` Self struct { Href string `mapstructure:"href"` } `mapstructure:"self"` } `mapstructure:"links"` Type string `mapstructure:"type"` } `mapstructure:"commit"` Repository struct { FullName string `mapstructure:"full_name"` Links struct { Avatar struct { Href string `mapstructure:"href"` } `mapstructure:"avatar"` HTML struct { Href string `mapstructure:"href"` } `mapstructure:"html"` Self struct { Href string `mapstructure:"href"` } `mapstructure:"self"` } `mapstructure:"links"` Name string `mapstructure:"name"` Type string `mapstructure:"type"` UUID string `mapstructure:"uuid"` } `mapstructure:"repository"` } `mapstructure:"source"` State string `mapstructure:"state"` Summary struct { HTML string `mapstructure:"html"` Markup string `mapstructure:"markup"` Raw string `mapstructure:"raw"` Type string `mapstructure:"type"` } `mapstructure:"summary"` TaskCount int32 `mapstructure:"task_count"` Title string `mapstructure:"title"` Type string `mapstructure:"type"` UpdatedOn string `mapstructure:"updated_on"` }
type PullRequests ¶
type PullRequests struct {
// contains filtered or unexported fields
}
func (*PullRequests) Activities ¶
func (p *PullRequests) Activities(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Activity ¶
func (p *PullRequests) Activity(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Commits ¶
func (p *PullRequests) Commits(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Create ¶
func (p *PullRequests) Create(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Decline ¶
func (p *PullRequests) Decline(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Diff ¶
func (p *PullRequests) Diff(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Get ¶
func (p *PullRequests) Get(po *PullRequestsOptions) (*PullRequest, error)
func (*PullRequests) GetComment ¶
func (p *PullRequests) GetComment(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) GetComments ¶
func (p *PullRequests) GetComments(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Gets ¶
func (p *PullRequests) Gets(po *PullRequestsOptions) (*PullRequestsResp, error)
func (*PullRequests) Merge ¶
func (p *PullRequests) Merge(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Patch ¶
func (p *PullRequests) Patch(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Update ¶
func (p *PullRequests) Update(po *PullRequestsOptions) (interface{}, error)
type PullRequestsOptions ¶
type PullRequestsOptions struct { ID string `json:"id"` CommentID string `json:"comment_id"` Owner string `json:"owner"` RepoSlug string `json:"repo_slug"` Title string `json:"title"` Description string `json:"description"` CloseSourceBranch bool `json:"close_source_branch"` SourceBranch string `json:"source_branch"` SourceRepository string `json:"source_repository"` DestinationBranch string `json:"destination_branch"` DestinationCommit string `json:"destination_repository"` Message string `json:"message"` Reviewers []string `json:"reviewers"` States []string `json:"states"` Query string `json:"query"` Sort string `json:"sort"` }
type PullRequestsResp ¶ added in v0.6.5
type PullRequestsResp struct { Page int32 `mapstructure:"page"` Pagelen int32 `mapstructure:"pagelen"` Size int32 `mapstructure:"size"` Values []PullRequest `mapstructure:"values"` }
type Repositories ¶
type Repositories struct { PullRequests *PullRequests Repository *Repository Commits *Commits Diff *Diff BranchRestrictions *BranchRestrictions Webhooks *Webhooks Downloads *Downloads // contains filtered or unexported fields }
func (*Repositories) ListForAccount ¶
func (r *Repositories) ListForAccount(ro *RepositoriesOptions) (*RepositoriesRes, error)
func (*Repositories) ListForTeam ¶
func (r *Repositories) ListForTeam(ro *RepositoriesOptions) (*RepositoriesRes, error)
func (*Repositories) ListPublic ¶
func (r *Repositories) ListPublic() (interface{}, error)
type RepositoriesOptions ¶
type RepositoriesRes ¶ added in v0.6.5
type RepositoriesRes struct { Page int32 Pagelen int32 MaxDepth int32 Size int32 Items []Repository }
type Repository ¶
type Repository struct { Project Project Slug string Full_name string Description string ForkPolicy string Type string Owner map[string]interface{} Links map[string]interface{} // contains filtered or unexported fields }
func (*Repository) AddPipelineKeyPair ¶ added in v0.3.1
func (r *Repository) AddPipelineKeyPair(rpkpo *RepositoryPipelineKeyPairOptions) (*PipelineKeyPair, error)
func (*Repository) AddPipelineVariable ¶ added in v0.3.1
func (r *Repository) AddPipelineVariable(rpvo *RepositoryPipelineVariableOptions) (*PipelineVariable, error)
func (*Repository) BranchingModel ¶ added in v0.6.5
func (r *Repository) BranchingModel(rbmo *RepositoryBranchingModelOptions) (*BranchingModel, error)
func (*Repository) Create ¶
func (r *Repository) Create(ro *RepositoryOptions) (*Repository, error)
func (*Repository) Delete ¶
func (r *Repository) Delete(ro *RepositoryOptions) (interface{}, error)
func (*Repository) Fork ¶ added in v0.6.5
func (r *Repository) Fork(fo *RepositoryForkOptions) (*Repository, error)
func (*Repository) Get ¶
func (r *Repository) Get(ro *RepositoryOptions) (*Repository, error)
func (*Repository) GetBranch ¶ added in v0.6.5
func (r *Repository) GetBranch(rbo *RepositoryBranchOptions) (*RepositoryBranch, error)
func (*Repository) GetFileBlob ¶ added in v0.6.5
func (r *Repository) GetFileBlob(ro *RepositoryBlobOptions) (*RepositoryBlob, error)
func (*Repository) ListBranches ¶ added in v0.6.5
func (r *Repository) ListBranches(rbo *RepositoryBranchOptions) (*RepositoryBranches, error)
func (*Repository) ListFiles ¶ added in v0.6.5
func (r *Repository) ListFiles(ro *RepositoryFilesOptions) ([]RepositoryFile, error)
func (*Repository) ListForks ¶
func (r *Repository) ListForks(ro *RepositoryOptions) (interface{}, error)
func (*Repository) ListTags ¶ added in v0.6.5
func (r *Repository) ListTags(rbo *RepositoryTagOptions) (*RepositoryTags, error)
func (*Repository) ListWatchers ¶
func (r *Repository) ListWatchers(ro *RepositoryOptions) (interface{}, error)
func (*Repository) UpdatePipelineBuildNumber ¶ added in v0.6.5
func (r *Repository) UpdatePipelineBuildNumber(rpbno *RepositoryPipelineBuildNumberOptions) (*PipelineBuildNumber, error)
func (*Repository) UpdatePipelineConfig ¶ added in v0.3.1
func (r *Repository) UpdatePipelineConfig(rpo *RepositoryPipelineOptions) (*Pipeline, error)
type RepositoryBlob ¶ added in v0.6.5
type RepositoryBlob struct {
Content []byte
}
func (RepositoryBlob) String ¶ added in v0.6.5
func (rb RepositoryBlob) String() string
type RepositoryBlobOptions ¶ added in v0.6.5
type RepositoryBranch ¶ added in v0.6.5
type RepositoryBranchOptions ¶ added in v0.6.5
type RepositoryBranches ¶ added in v0.6.5
type RepositoryBranchingModelOptions ¶ added in v0.6.5
type RepositoryFile ¶ added in v0.6.5
type RepositoryFile struct { Mimetype string Links map[string]interface{} Path string Commit map[string]interface{} Attributes []string Type string Size int }
func (RepositoryFile) String ¶ added in v0.6.5
func (rf RepositoryFile) String() string
type RepositoryFilesOptions ¶ added in v0.6.5
type RepositoryForkOptions ¶ added in v0.6.5
type RepositoryForkOptions struct { FromOwner string `json:"from_owner"` FromSlug string `json:"from_slug"` Owner string `json:"owner"` // TODO: does the API supports specifying slug on forks? // see: https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/forks#post Name string `json:"name"` IsPrivate string `json:"is_private"` Description string `json:"description"` ForkPolicy string `json:"fork_policy"` Language string `json:"language"` HasIssues string `json:"has_issues"` HasWiki string `json:"has_wiki"` Project string `json:"project"` }
type RepositoryOptions ¶
type RepositoryOptions struct { Owner string `json:"owner"` RepoSlug string `json:"repo_slug"` Scm string `json:"scm"` // Name string `json:"name"` IsPrivate string `json:"is_private"` Description string `json:"description"` ForkPolicy string `json:"fork_policy"` Language string `json:"language"` HasIssues string `json:"has_issues"` HasWiki string `json:"has_wiki"` Project string `json:"project"` }
type RepositoryPipelineBuildNumberOptions ¶ added in v0.6.5
type RepositoryPipelineKeyPairOptions ¶ added in v0.3.1
type RepositoryPipelineOptions ¶ added in v0.3.1
type RepositoryPipelineVariableOptions ¶ added in v0.3.1
type RepositoryTag ¶ added in v0.6.5
type RepositoryTagOptions ¶ added in v0.6.5
type RepositoryTags ¶ added in v0.6.5
type Teams ¶
type Teams struct {
// contains filtered or unexported fields
}
func (*Teams) Repositories ¶
type User ¶
type User struct { Uuid string Username string Nickname string Website string AccountStatus string `mapstructure:"account_status"` DisplayName string `mapstructure:"display_name"` CreatedOn string `mapstructure:"created_on"` Has2faEnabled bool `mapstructure:"has_2fa_enabled"` Links map[string]interface{} // contains filtered or unexported fields }
User is the sub struct of Client Reference: https://developer.atlassian.com/bitbucket/api/2/reference/resource/user
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func (*Users) Repositories ¶
type Webhooks ¶
type Webhooks struct {
// contains filtered or unexported fields
}
func (*Webhooks) Create ¶
func (r *Webhooks) Create(ro *WebhooksOptions) (interface{}, error)
func (*Webhooks) Delete ¶
func (r *Webhooks) Delete(ro *WebhooksOptions) (interface{}, error)
func (*Webhooks) Get ¶
func (r *Webhooks) Get(ro *WebhooksOptions) (interface{}, error)
func (*Webhooks) Gets ¶
func (r *Webhooks) Gets(ro *WebhooksOptions) (interface{}, error)
func (*Webhooks) Update ¶
func (r *Webhooks) Update(ro *WebhooksOptions) (interface{}, error)
type WebhooksOptions ¶
type WebhooksOptions struct { Owner string `json:"owner"` RepoSlug string `json:"repo_slug"` Uuid string `json:"uuid"` Description string `json:"description"` Url string `json:"url"` Active bool `json:"active"` Events []string `json:"events"` // EX) {'repo:push','issue:created',..} REF) https://goo.gl/VTj93b }
Click to show internal directories.
Click to hide internal directories.