Documentation ¶
Index ¶
- Constants
- func DecodeError(e map[string]interface{}) error
- func GetApiBaseURL() string
- func GetInternalApiBaseURL() string
- func GetV1ApiBaseURL() string
- func SetApiBaseURL(urlStr string)
- type Author
- type BitbucketError
- 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 Client
- type Comment
- type Commits
- 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 HTML
- type Links
- type Project
- 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) CreateComment(po *PullRequestsOptions) (*Comment, error)
- func (p *PullRequests) CreateTask(po *PullRequestsOptions) (*Task, error)
- func (p *PullRequests) Decline(po *PullRequestsOptions) (interface{}, error)
- func (p *PullRequests) DeleteComment(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) GetTasks(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)
- func (p *PullRequests) UpdateComment(po *PullRequestsOptions) (interface{}, error)
- func (p *PullRequests) UpdateTask(po *PullRequestsOptions) (*Task, error)
- type PullRequestsOptions
- type Repositories
- type RepositoriesOptions
- type Repository
- 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)
- type RepositoryOptions
- type Self
- type Task
- type TaskComment
- type TaskContent
- 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) 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_PAGE_LENGHT = 10
Variables ¶
This section is empty.
Functions ¶
func DecodeError ¶
func GetApiBaseURL ¶
func GetApiBaseURL() string
func GetInternalApiBaseURL ¶
func GetInternalApiBaseURL() string
func GetV1ApiBaseURL ¶
func GetV1ApiBaseURL() string
func SetApiBaseURL ¶
func SetApiBaseURL(urlStr string)
Types ¶
type BitbucketError ¶
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"` 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"` Value interface{} `json:"value"` }
type Client ¶
type Client struct { Auth *auth Users users User user Teams teams Repositories *Repositories Pagelen uint64 }
func NewBasicAuth ¶
type Comment ¶
type Comment struct { DisplayName string `json:"display_name,omitempty"` ParentID int `json:"parent_id,omitempty"` Content string `json:"content,omitempty"` ContentRendered string `json:"content_rendered,omitempty"` UserAvatarURL string `json:"user_avatar_url,omitempty"` UtcCreatedOn string `json:"utc_created_on,omitempty"` Username string `json:"username,omitempty"` Deleted bool `json:"deleted,omitempty"` CommentID int `json:"comment_id,omitempty"` Comparespec string `json:"comparespec,omitempty"` LineTo string `json:"line_to,omitempty"` IsSpam bool `json:"is_spam,omitempty"` PullRequestID int `json:"pull_request_id,omitempty"` UtcLastUpdated string `json:"utc_last_updated,omitempty"` IsEntityAuthor bool `json:"is_entity_author,omitempty"` ConvertMarkup bool `json:"convert_markup,omitempty"` LineFrom string `json:"line_from,omitempty"` DestRev string `json:"dest_rev,omitempty"` Anchor string `json:"anchor,omitempty"` IsRepoOwner bool `json:"is_repo_owner,omitempty"` }
type Commits ¶
type Commits struct {
// contains filtered or unexported fields
}
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 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) CreateComment ¶
func (p *PullRequests) CreateComment(po *PullRequestsOptions) (*Comment, error)
func (*PullRequests) CreateTask ¶
func (p *PullRequests) CreateTask(po *PullRequestsOptions) (*Task, error)
func (*PullRequests) Decline ¶
func (p *PullRequests) Decline(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) DeleteComment ¶
func (p *PullRequests) DeleteComment(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Diff ¶
func (p *PullRequests) Diff(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Get ¶
func (p *PullRequests) Get(po *PullRequestsOptions) (interface{}, 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) GetTasks ¶
func (p *PullRequests) GetTasks(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) Gets ¶
func (p *PullRequests) Gets(po *PullRequestsOptions) (interface{}, 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)
func (*PullRequests) UpdateComment ¶
func (p *PullRequests) UpdateComment(po *PullRequestsOptions) (interface{}, error)
func (*PullRequests) UpdateTask ¶
func (p *PullRequests) UpdateTask(po *PullRequestsOptions) (*Task, error)
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"` Query url.Values CommentContent string TaskID string TaskContent string TaskResolved *bool }
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{}, error)
func (*Repositories) ListForTeam ¶
func (r *Repositories) ListForTeam(ro *RepositoriesOptions) (interface{}, error)
func (*Repositories) ListPublic ¶
func (r *Repositories) ListPublic() (interface{}, error)
type RepositoriesOptions ¶
type Repository ¶
type Repository struct { Project Project Slug string Full_name string Description string Fork_policy string Type string Owner map[string]interface{} Links map[string]interface{} // contains filtered or unexported fields }
func (*Repository) Create ¶
func (r *Repository) Create(ro *RepositoryOptions) (*Repository, error)
func (*Repository) Delete ¶
func (r *Repository) Delete(ro *RepositoryOptions) (interface{}, error)
func (*Repository) Get ¶
func (r *Repository) Get(ro *RepositoryOptions) (*Repository, error)
func (*Repository) ListForks ¶
func (r *Repository) ListForks(ro *RepositoryOptions) (interface{}, error)
func (*Repository) ListWatchers ¶
func (r *Repository) ListWatchers(ro *RepositoryOptions) (interface{}, error)
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"` Project string `json:"project"` }
type Task ¶
type Task struct { Comment TaskComment `json:"comment,omitempty"` Links Links `json:"links,omitempty"` Creator Author `json:"creator,omitempty"` CreatedOn time.Time `json:"created_on,omitempty"` Content TaskContent `json:"content,omitempty"` State string `json:"state,omitempty"` UpdatedOn time.Time `json:"updated_on,omitempty"` ID int `json:"id,omitempty"` }
type TaskComment ¶
type TaskContent ¶
type Teams ¶
type Teams struct {
// contains filtered or unexported fields
}
func (*Teams) Repositories ¶
type User ¶
type User struct {
// contains filtered or unexported fields
}
User is the sub struct of Client
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"` 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 }
Click to show internal directories.
Click to hide internal directories.