package bitbucket
import "github.com/ktrysmt/go-bitbucket"
Index ¶
- func GetApiBaseURL() string
- func SetApiBaseURL(url string)
- type BranchRestrictions
- func (b *BranchRestrictions) Create(bo *BranchRestrictionsOptions) interface{}
- func (b *BranchRestrictions) Delete(bo *BranchRestrictionsOptions) interface{}
- func (b *BranchRestrictions) Get(bo *BranchRestrictionsOptions) interface{}
- func (b *BranchRestrictions) Gets(bo *BranchRestrictionsOptions) interface{}
- func (b *BranchRestrictions) Update(bo *BranchRestrictionsOptions) interface{}
- type BranchRestrictionsOptions
- type Client
- func NewBasicAuth(u, p string) *Client
- func NewOAuth(i, s string) *Client
- func (c *Client) Get(t string) interface{}
- type Commits
- func (cm *Commits) GetCommit(cmo *CommitsOptions) interface{}
- func (cm *Commits) GetCommitComment(cmo *CommitsOptions) interface{}
- func (cm *Commits) GetCommitComments(cmo *CommitsOptions) interface{}
- func (cm *Commits) GetCommitStatus(cmo *CommitsOptions, commitStatusKey string) interface{}
- func (cm *Commits) GetCommits(cmo *CommitsOptions) interface{}
- func (cm *Commits) GiveApprove(cmo *CommitsOptions) interface{}
- func (cm *Commits) RemoveApprove(cmo *CommitsOptions) interface{}
- type CommitsOptions
- type Diff
- func (d *Diff) GetDiff(do *DiffOptions) interface{}
- func (d *Diff) GetPatch(do *DiffOptions) interface{}
- type DiffOptions
- type PullRequests
- func (p *PullRequests) Activities(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Activity(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Commits(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Create(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Decline(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Diff(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Get(po *PullRequestsOptions) interface{}
- func (p *PullRequests) GetComment(po *PullRequestsOptions) interface{}
- func (p *PullRequests) GetComments(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Gets(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Merge(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Patch(po *PullRequestsOptions) interface{}
- func (p *PullRequests) Update(po *PullRequestsOptions) interface{}
- type PullRequestsOptions
- type Repositories
- func (r *Repositories) ListForAccount(ro *RepositoriesOptions) interface{}
- func (r *Repositories) ListForTeam(ro *RepositoriesOptions) interface{}
- func (r *Repositories) ListPublic() interface{}
- type RepositoriesOptions
- type Repository
- func (r *Repository) Create(ro *RepositoryOptions) interface{}
- func (r *Repository) Delete(ro *RepositoryOptions) interface{}
- func (r *Repository) Get(ro *RepositoryOptions) interface{}
- func (r *Repository) ListForks(ro *RepositoryOptions) interface{}
- func (r *Repository) ListWatchers(ro *RepositoryOptions) interface{}
- type RepositoryOptions
- type Teams
- func (t *Teams) Followers(teamname string) interface{}
- func (t *Teams) Following(teamname string) interface{}
- func (t *Teams) List(role string) interface{}
- func (t *Teams) Members(teamname string) interface{}
- func (t *Teams) Profile(teamname string) interface{}
- func (t *Teams) Repositories(teamname string) interface{}
- type User
- type Users
- func (u *Users) Followers(t string) interface{}
- func (u *Users) Following(t string) interface{}
- func (u *Users) Get(t string) interface{}
- func (u *Users) Repositories(t string) interface{}
- type Webhooks
- func (r *Webhooks) Create(ro *WebhooksOptions) interface{}
- func (r *Webhooks) Delete(ro *WebhooksOptions) interface{}
- func (r *Webhooks) Get(ro *WebhooksOptions) interface{}
- func (r *Webhooks) Gets(ro *WebhooksOptions) interface{}
- func (r *Webhooks) Update(ro *WebhooksOptions) interface{}
- type WebhooksOptions
Functions ¶
func GetApiBaseURL ¶
func GetApiBaseURL() string
func SetApiBaseURL ¶
func SetApiBaseURL(url string)
Types ¶
type BranchRestrictions ¶
type BranchRestrictions struct {
// contains filtered or unexported fields
}
func (*BranchRestrictions) Create ¶
func (b *BranchRestrictions) Create(bo *BranchRestrictionsOptions) interface{}
func (*BranchRestrictions) Delete ¶
func (b *BranchRestrictions) Delete(bo *BranchRestrictionsOptions) interface{}
func (*BranchRestrictions) Get ¶
func (b *BranchRestrictions) Get(bo *BranchRestrictionsOptions) interface{}
func (*BranchRestrictions) Gets ¶
func (b *BranchRestrictions) Gets(bo *BranchRestrictionsOptions) interface{}
func (*BranchRestrictions) Update ¶
func (b *BranchRestrictions) Update(bo *BranchRestrictionsOptions) interface{}
type BranchRestrictionsOptions ¶
type BranchRestrictionsOptions struct { Owner string `json:"owner"` Repo_slug 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"` Full_slug string `json:"full_slug"` Name string `json:"name"` }
type Client ¶
type Client struct { Auth *auth Users users User user Teams teams Repositories *Repositories }
func NewBasicAuth ¶
func NewOAuth ¶
func (*Client) Get ¶
type Commits ¶
type Commits struct {
// contains filtered or unexported fields
}
func (*Commits) GetCommit ¶
func (cm *Commits) GetCommit(cmo *CommitsOptions) interface{}
func (*Commits) GetCommitComment ¶
func (cm *Commits) GetCommitComment(cmo *CommitsOptions) interface{}
func (*Commits) GetCommitComments ¶
func (cm *Commits) GetCommitComments(cmo *CommitsOptions) interface{}
func (*Commits) GetCommitStatus ¶
func (cm *Commits) GetCommitStatus(cmo *CommitsOptions, commitStatusKey string) interface{}
func (*Commits) GetCommits ¶
func (cm *Commits) GetCommits(cmo *CommitsOptions) interface{}
func (*Commits) GiveApprove ¶
func (cm *Commits) GiveApprove(cmo *CommitsOptions) interface{}
func (*Commits) RemoveApprove ¶
func (cm *Commits) RemoveApprove(cmo *CommitsOptions) interface{}
type CommitsOptions ¶
type CommitsOptions struct { Owner string `json:"owner"` Repo_slug string `json:"repo_slug"` Revision string `json:"revision"` Branchortag string `json:"branchortag"` Include string `json:"include"` Exclude string `json:"exclude"` Comment_id string `json:"comment_id"` }
type Diff ¶
type Diff struct {
// contains filtered or unexported fields
}
func (*Diff) GetDiff ¶
func (d *Diff) GetDiff(do *DiffOptions) interface{}
func (*Diff) GetPatch ¶
func (d *Diff) GetPatch(do *DiffOptions) interface{}
type DiffOptions ¶
type DiffOptions struct { Owner string `json:"owner"` Repo_slug string `json:"repo_slug"` Spec string `json:"spec"` }
type PullRequests ¶
type PullRequests struct {
// contains filtered or unexported fields
}
func (*PullRequests) Activities ¶
func (p *PullRequests) Activities(po *PullRequestsOptions) interface{}
func (*PullRequests) Activity ¶
func (p *PullRequests) Activity(po *PullRequestsOptions) interface{}
func (*PullRequests) Commits ¶
func (p *PullRequests) Commits(po *PullRequestsOptions) interface{}
func (*PullRequests) Create ¶
func (p *PullRequests) Create(po *PullRequestsOptions) interface{}
func (*PullRequests) Decline ¶
func (p *PullRequests) Decline(po *PullRequestsOptions) interface{}
func (*PullRequests) Diff ¶
func (p *PullRequests) Diff(po *PullRequestsOptions) interface{}
func (*PullRequests) Get ¶
func (p *PullRequests) Get(po *PullRequestsOptions) interface{}
func (*PullRequests) GetComment ¶
func (p *PullRequests) GetComment(po *PullRequestsOptions) interface{}
func (*PullRequests) GetComments ¶
func (p *PullRequests) GetComments(po *PullRequestsOptions) interface{}
func (*PullRequests) Gets ¶
func (p *PullRequests) Gets(po *PullRequestsOptions) interface{}
func (*PullRequests) Merge ¶
func (p *PullRequests) Merge(po *PullRequestsOptions) interface{}
func (*PullRequests) Patch ¶
func (p *PullRequests) Patch(po *PullRequestsOptions) interface{}
func (*PullRequests) Update ¶
func (p *PullRequests) Update(po *PullRequestsOptions) interface{}
type PullRequestsOptions ¶
type PullRequestsOptions struct { Id string `json:"id"` Comment_id string `json:"comment_id"` Owner string `json:"owner"` Repo_slug string `json:"repo_slug"` Title string `json:"title"` Description string `json:"description"` Close_source_branch bool `json:"close_source_branch"` Source_branch string `json:"source_branch"` Source_repository string `json:"source_repository"` Destination_branch string `json:"destination_branch"` Destination_commit string `json:"destination_repository"` Message string `json:"message"` Reviewers []string `json:"reviewers"` }
type Repositories ¶
type Repositories struct { PullRequests *PullRequests Repository *Repository Commits *Commits Diff *Diff BranchRestrictions *BranchRestrictions Webhooks *Webhooks // contains filtered or unexported fields }
func (*Repositories) ListForAccount ¶
func (r *Repositories) ListForAccount(ro *RepositoriesOptions) interface{}
func (*Repositories) ListForTeam ¶
func (r *Repositories) ListForTeam(ro *RepositoriesOptions) interface{}
func (*Repositories) ListPublic ¶
func (r *Repositories) ListPublic() interface{}
type RepositoriesOptions ¶
type RepositoriesOptions struct { Owner string `json:"owner"` Team string `json:"team"` Role string `json:"role"` // role=[owner|admin|contributor|member] }
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (*Repository) Create ¶
func (r *Repository) Create(ro *RepositoryOptions) interface{}
func (*Repository) Delete ¶
func (r *Repository) Delete(ro *RepositoryOptions) interface{}
func (*Repository) Get ¶
func (r *Repository) Get(ro *RepositoryOptions) interface{}
func (*Repository) ListForks ¶
func (r *Repository) ListForks(ro *RepositoryOptions) interface{}
func (*Repository) ListWatchers ¶
func (r *Repository) ListWatchers(ro *RepositoryOptions) interface{}
type RepositoryOptions ¶
type RepositoryOptions struct { Owner string `json:"owner"` Repo_slug string `json:"repo_slug"` Scm string `json:"scm"` // Name string `json:"name"` Is_private string `json:"is_private"` Description string `json:"description"` Fork_policy string `json:"fork_policy"` Language string `json:"language"` Has_issues string `json:"has_issues"` Has_wiki string `json:"has_wiki"` }
type Teams ¶
type Teams struct {
// contains filtered or unexported fields
}
func (*Teams) Followers ¶
func (*Teams) Following ¶
func (*Teams) List ¶
func (*Teams) Members ¶
func (*Teams) Profile ¶
func (*Teams) Repositories ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User is the sub struct of Client
func (*User) Emails ¶
func (u *User) Emails() interface{}
Emails is getting user's emails
func (*User) Profile ¶
func (u *User) Profile() interface{}
Profile is getting the user data
type Users ¶
type Users struct {
// contains filtered or unexported fields
}
func (*Users) Followers ¶
func (*Users) Following ¶
func (*Users) Get ¶
func (*Users) Repositories ¶
type Webhooks ¶
type Webhooks struct {
// contains filtered or unexported fields
}
func (*Webhooks) Create ¶
func (r *Webhooks) Create(ro *WebhooksOptions) interface{}
func (*Webhooks) Delete ¶
func (r *Webhooks) Delete(ro *WebhooksOptions) interface{}
func (*Webhooks) Get ¶
func (r *Webhooks) Get(ro *WebhooksOptions) interface{}
func (*Webhooks) Gets ¶
func (r *Webhooks) Gets(ro *WebhooksOptions) interface{}
func (*Webhooks) Update ¶
func (r *Webhooks) Update(ro *WebhooksOptions) interface{}
type WebhooksOptions ¶
type WebhooksOptions struct { Owner string `json:"owner"` Repo_slug 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 }
Source Files ¶
bitbucket.go branchrestrictions.go client.go commits.go diff.go pullrequests.go repositories.go repository.go teams.go user.go users.go webhooks.go
- Version
- v0.2.1
- Published
- Jan 26, 2017
- Platform
- darwin/amd64
- Imports
- 8 packages
- Last checked
- now –
Tools for package owners.