Documentation
¶
Index ¶
- type Account
- type Branch
- type Change
- type Client
- func (c Client) DiffGet(repoOrga string, repoSlug string, spec string) (string, error)
- func (c Client) GetBranch(repoOrga string, repoSlug string, branchName string) (*bitbucket.RepositoryBranch, error)
- func (c Client) GetCommit(repoOrga string, repoSlug string, rev string) (*Commit, error)
- func (c Client) GetCommits(repoOrga string, repoSlug string, branchOrTag string, include string, ...) (*Commits, error)
- func (c Client) GetCurrentUser() (*bitbucket.User, error)
- func (c Client) GetDownloads(repoOrga string, repoSlug string) (*Downloads, error)
- func (c Client) GetEffectiveDefaultReviewers(repoOrga string, repoSlug string) (*EffectiveDefaultReviewers, error)
- func (c Client) GetPrIDBySourceBranch(repoOrga string, repoSlug string, sourceBranch string) (*ListPullRequests, error)
- func (c Client) GetReadmeContent(repoOrga string, repoSlug string, branch string) (string, error)
- func (c Client) GetWorkspaceMembers(workspace string) (*Members, error)
- func (c Client) GetWorkspaces() (*Workspaces, error)
- func (c Client) IssuesComment(repoOrga string, repoSlug string, id string, message string) (*IssueComment, error)
- func (c Client) IssuesCreate(repoOrga string, repoSlug string, options struct{ ... }) (*Issue, error)
- func (c Client) IssuesDelete(repoOrga string, repoSlug string, id string) (interface{}, error)
- func (c Client) IssuesEdit(repoOrga string, repoSlug string, id string, options struct{ ... }) (*Issue, error)
- func (c Client) IssuesList(repoOrga string, repoSlug string, states []string, types []string, ...) (*ListIssues, error)
- func (c Client) IssuesView(repoOrga string, repoSlug string, id string) (*Issue, error)
- func (c Client) IssuesViewChanges(repoOrga string, repoSlug string, id string) (*IssueChanges, error)
- func (c Client) IssuesViewComments(repoOrga string, repoSlug string, id string) (*IssueComments, error)
- func (c Client) PipelineGet(repoOrga string, repoSlug string, idOrUuid string) (*Pipeline, error)
- func (c Client) PipelineList(repoOrga string, repoSlug string) (*[]Pipeline, error)
- func (c Client) PipelineStepsList(repoOrga string, repoSlug, idOrUuid string) (*[]Step, error)
- func (c Client) PipelinesLogs(repoOrga string, repoSlug, idOrUuid string, StepUuid string) (string, error)
- func (c Client) PrApprove(repoOrga string, repoSlug string, id string) (*Participant, error)
- func (c Client) PrComments(repoOrga string, repoSlug string, id string) (*Comments, error)
- func (c Client) PrCommits(repoOrga string, repoSlug string, id string) (*Commits, error)
- func (c Client) PrCreate(repoOrga string, repoSlug string, sourceBranch string, ...) (*PullRequest, error)
- func (c Client) PrDefaultTitleAndBody(repoOrga string, repoSlug string, sourceBranch string, ...) (string, string, error)
- func (c Client) PrList(repoOrga string, repoSlug string, states []string) (*ListPullRequests, error)
- func (c Client) PrMerge(repoOrga string, repoSlug string, id string) (*PullRequest, error)
- func (c Client) PrMergeWithCloseBranch(repoOrga string, repoSlug string, id string, closeBranch bool) (*PullRequest, error)
- func (c Client) PrRequestChanges(repoOrga string, repoSlug string, id string) (*Participant, error)
- func (c Client) PrStatuses(repoOrga string, repoSlug string, id string) (*Statuses, error)
- func (c Client) PrThreadedComments(repoOrga string, repoSlug string, id string) ([]*Comment, error)
- func (c Client) PrUnApprove(repoOrga string, repoSlug string, id string) error
- func (c Client) PrUnRequestChanges(repoOrga string, repoSlug string, id string) error
- func (c Client) PrView(repoOrga string, repoSlug string, id string) (*PullRequest, error)
- func (c Client) RepositoriesForWorkspace(repoOrga string) ([]Repository, error)
- func (c Client) RepositoryGet(repoOrga string, repoSlug string) (*Repository, error)
- func (c Client) UploadDownload(repoOrga string, repoSlug string, fpath string) (*Download, error)
- type Comment
- type CommentContent
- type CommentInline
- type CommentParent
- type Comments
- type Commit
- type Commits
- type Component
- type Download
- type Downloads
- type EffectiveDefaultReviewer
- type EffectiveDefaultReviewers
- type Issue
- type IssueChange
- type IssueChanges
- type IssueComment
- type IssueComments
- type Link
- type ListIssues
- type ListPullRequests
- type Members
- type Milestone
- type Participant
- type Pipeline
- type PipelineState
- type PipelineStateResult
- type PipelineTrigger
- type Project
- type PullRequest
- type Repository
- type Resource
- type Status
- type Statuses
- type Step
- type StepCommand
- type StepImage
- type Version
- type Workspace
- type WorkspaceMembership
- type Workspaces
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (Client) GetCommits ¶
func (Client) GetDownloads ¶
func (Client) GetEffectiveDefaultReviewers ¶ added in v0.6.0
func (c Client) GetEffectiveDefaultReviewers(repoOrga string, repoSlug string) (*EffectiveDefaultReviewers, error)
func (Client) GetPrIDBySourceBranch ¶
func (Client) GetReadmeContent ¶
func (Client) GetWorkspaceMembers ¶
func (Client) GetWorkspaces ¶
func (c Client) GetWorkspaces() (*Workspaces, error)
func (Client) IssuesComment ¶ added in v0.4.0
func (Client) IssuesCreate ¶ added in v0.4.0
func (Client) IssuesDelete ¶ added in v0.4.0
func (Client) IssuesEdit ¶ added in v0.4.0
func (Client) IssuesList ¶ added in v0.4.0
func (Client) IssuesView ¶ added in v0.4.0
func (Client) IssuesViewChanges ¶ added in v0.4.0
func (Client) IssuesViewComments ¶ added in v0.4.0
func (Client) PipelineGet ¶
func (Client) PipelineList ¶
func (Client) PipelineStepsList ¶
func (Client) PipelinesLogs ¶
func (Client) PrComments ¶
func (Client) PrDefaultTitleAndBody ¶
func (Client) PrMergeWithCloseBranch ¶
func (Client) PrRequestChanges ¶
func (Client) PrStatuses ¶
func (Client) PrThreadedComments ¶
func (Client) PrUnApprove ¶
func (Client) PrUnRequestChanges ¶
func (Client) RepositoriesForWorkspace ¶
func (c Client) RepositoriesForWorkspace(repoOrga string) ([]Repository, error)
func (Client) RepositoryGet ¶
func (c Client) RepositoryGet(repoOrga string, repoSlug string) (*Repository, error)
type Comment ¶
type Comment struct {
Links map[string]interface{} `mapstructure:"links"`
Parent CommentParent `mapstructure:"parent"`
Deleted bool `mapstructure:"deleted"`
PullRequest PullRequest `mapstructure:"pullrequest"`
Content CommentContent `mapstructure:"content"`
CreatedOn string `mapstructure:"created_on"`
UpdatedOn string `mapstructure:"updated_on"`
User Account `mapstructure:"user"`
Inline CommentInline `mapstructure:"inline"`
ID int `mapstructure:"id"`
Type string `mapstructure:"type"`
Children []*Comment
}
type CommentContent ¶
type CommentInline ¶
type CommentParent ¶
type EffectiveDefaultReviewer ¶ added in v0.6.0
type EffectiveDefaultReviewers ¶ added in v0.6.0
type EffectiveDefaultReviewers struct {
Values []*EffectiveDefaultReviewer `mapstructure:"EffectiveDefaultReviewers"`
}
type Issue ¶ added in v0.4.0
type Issue struct {
ID int `mapstructure:"id"`
Priority string `mapstructure:"priority"`
Kind string `mapstructure:"kind"`
Type string `mapstructure:"type"`
Repository Repository `mapstructure:"repository"`
Links map[string]Link `mapstructure:"links"`
Reporter Account `mapstructure:"reporter"`
Title string `mapstructure:"title"`
Component Component `mapstructure:"component"`
Votes int64 `mapstructure:"votes"`
Watches int64 `mapstructure:"watches"`
Content CommentContent `mapstructure:"content"`
Assignee Account `mapstructure:"assignee"`
State string `mapstructure:"state"`
Version Version `mapstructure:"version"`
CreatedOn string `mapstructure:"created_on"`
EditedOn string `mapstructure:"edited_on"`
UpdatedOn string `mapstructure:"edited_on"`
Milestone Milestone `mapstructure:"milestone"`
}
type IssueChange ¶ added in v0.4.0
type IssueChange struct {
ID int `mapstructure:"id"`
Type string `mapstructure:"type"`
Links map[string]Link `mapstructure:"links"`
Issue Issue `mapstructure:"issue"`
CreatedOn string `mapstructure:"created_on"`
User Account `mapstructure:"user"`
Changes map[string]Change `mapstructure:"changes"`
Message CommentContent `mapstructure:"message"`
}
type IssueChanges ¶ added in v0.4.0
type IssueChanges struct {
Values []IssueChange `mapstructure:"values"`
Size int `mapstructure:"size"`
}
type IssueComment ¶ added in v0.4.0
type IssueComment struct {
ID int `mapstructure:"id"`
Type string `mapstructure:"type"`
Links map[string]Link `mapstructure:"links"`
Issue Issue `mapstructure:"issue"`
Content CommentContent `mapstructure:"content"`
CreatedOn string `mapstructure:"created_on"`
User Account `mapstructure:"user"`
UpdatedOn string `mapstructure:"edited_on"`
}
type IssueComments ¶ added in v0.4.0
type IssueComments struct {
Values []IssueComment `mapstructure:"values"`
Size int `mapstructure:"size"`
}
type ListIssues ¶ added in v0.4.0
type ListPullRequests ¶
type Members ¶
type Members struct {
Values []WorkspaceMembership `mapstructure:"values"`
}
type Participant ¶
type Pipeline ¶
type Pipeline struct {
Type string
UUID string `mapstructure:"uuid"`
PipelineState PipelineState `mapstructure:"state"`
BuildNumber int `mapstructure:"build_number"`
Creator Account
CreatedOn string `mapstructure:"created_on"`
CompletedOn string `mapstructure:"completed_on"`
Target interface{}
Trigger PipelineTrigger
RunNumber int `mapstructure:"run_number"`
DurationInSeconds int `mapstructure:"duration_in_seconds"`
BuildSecondsUsed int `mapstructure:"build_seconds_used"`
FirstSuccessful bool `mapstructure:"first_successful"`
Expired bool
}
type PipelineState ¶
type PipelineState struct {
Name string
Type string
Result PipelineStateResult
Stage PipelineStateResult
}
type PipelineStateResult ¶
type PipelineTrigger ¶
type PullRequest ¶
type PullRequest struct {
ID int `mapstructure:"id"`
Title string `mapstructure:"title"`
State string `mapstructure:"state"`
Source Resource `mapstructure:"source"`
Destination Resource `mapstructure:"destination"`
Type string `mapstructure:"type"`
TaskCount int `mapstructure:"task_count"`
Description string `mapstructure:"description"`
Author Account `mapstructure:"author"`
CloseSourceBranch bool `mapstructure:"close_source_branch"`
CommentCount int `mapstructure:"comment_count"`
CreatedOn string `mapstructure:"created_on"`
MergeCommit Commit `mapstructure:"merge_commit"`
Reviewers []Account `mapstructure:"reviewers"`
Participants []Participant `mapstructure:"participants"`
Links map[string]Link `mapstructure:"links"`
}
type Repository ¶
type Repository struct {
Links map[string]interface{} `mapstructure:"Links"`
UUID string `mapstructure:"Uuid"`
FullName string `mapstructure:"Full_name"`
IsPrivate bool `mapstructure:"Is_private"`
Owner *Account `mapstructure:"Owner"`
Name string `mapstructure:"Name"`
Description string `mapstructure:"Description"`
Size int `mapstructure:"Size"`
Language string `mapstructure:"Language"`
HasIssues bool `mapstructure:"Has_issues"`
ForkPolicy string `mapstructure:"ForkPolicy"`
MainBranch *Branch `mapstructure:"Mainbranch"`
Project Project `mapstructure:"Project"`
}
type Resource ¶
type Resource struct {
Branch Branch `mapstructure:"branch"`
Commit Commit `mapstructure:"commit"`
Repository Repository `mapstructure:"repository"`
}
type Status ¶
type Status struct {
Type string `mapstructure:"type"`
Links map[string]interface{} `mapstructure:"links"`
UUID string `mapstructure:"uuid"`
Key string `mapstructure:"key"`
Refname string `mapstructure:"refname"`
URL string `mapstructure:"url"`
State string `mapstructure:"state"`
Name string `mapstructure:"name"`
Description string `mapstructure:"description"`
CreatedOn string `mapstructure:"created_on"`
UpdatedOn string `mapstructure:"updated_on"`
}
type Step ¶
type Step struct {
Name string `mapstructure:"name"`
Pipeline Pipeline `mapstructure:"pipeline"`
State PipelineState `mapstructure:"state"`
RunNumber int `mapstructure:"run_number"`
CompletedOn string `mapstructure:"completed_on"`
MaxTime int `mapstructure:"maxTime"`
Image StepImage `mapstructure:"image"`
UUID string `mapstructure:"uuid"`
CreatedOn string `mapstructure:"created_on"`
BuildSecondsUsed int `mapstructure:"build_seconds_used"`
DurationInSeconds int `mapstructure:"duration_in_seconds"`
TeardownCommands []StepCommand `mapstructure:"teardown_commands"`
ScriptCommands []StepCommand `mapstructure:"script_commands"`
SetupCommands []StepCommand `mapstructure:"setup_commands"`
Type string `mapstructure:"type"`
}
type StepCommand ¶
type Workspace ¶
type Workspace struct {
CreatedOn string `mapstructure:"created_on"`
Links map[string]interface{} `mapstructure:"links"`
Name string `mapstructure:"name"`
Slug string `mapstructure:"slug"`
IsPrivate bool `mapstructure:"is_private"`
Type string `mapstructure:"type"`
UUID string `mapstructure:"uuid"`
}
type WorkspaceMembership ¶ added in v0.3.1
type Workspaces ¶
type Workspaces struct {
Workspaces []Workspace `mapstructure:"workspaces"`
}
Click to show internal directories.
Click to hide internal directories.