Documentation
¶
Index ¶
- type Account
- type Branch
- type Client
- 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) GetDefaultReviewers(repoOrga string, repoSlug string) (*DefaultReviewers, error)
- func (c Client) GetDownloads(repoOrga string, repoSlug string) (*Downloads, 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) 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) 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) PrStatuses(repoOrga string, repoSlug string, id string) (*Statuses, error)
- func (c Client) PrThreadedComments(repoOrga string, repoSlug string, id string) ([]*Comment, error)
- func (c Client) PrView(repoOrga string, repoSlug string, id string) (*PullRequest, 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 DefaultReviewers
- type Download
- type Downloads
- type Link
- type ListPullRequests
- type Members
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (Client) GetCommits ¶
func (Client) GetCurrentUser ¶ added in v0.2.0
func (Client) GetDefaultReviewers ¶
func (c Client) GetDefaultReviewers(repoOrga string, repoSlug string) (*DefaultReviewers, error)
func (Client) GetDownloads ¶
func (Client) GetPrIDBySourceBranch ¶
func (Client) GetReadmeContent ¶ added in v0.2.0
func (Client) GetWorkspaceMembers ¶ added in v0.2.0
func (Client) PipelineGet ¶ added in v0.2.0
func (Client) PipelineList ¶ added in v0.2.0
func (Client) PipelineStepsList ¶ added in v0.2.0
func (Client) PipelinesLogs ¶ added in v0.2.0
func (Client) PrComments ¶ added in v0.2.0
func (Client) PrDefaultTitleAndBody ¶
func (Client) PrStatuses ¶
func (Client) PrThreadedComments ¶ added in v0.2.0
func (Client) RepositoryGet ¶
func (c Client) RepositoryGet(repoOrga string, repoSlug string) (*Repository, error)
type Comment ¶ added in v0.2.0
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 ¶ added in v0.2.0
type CommentInline ¶ added in v0.2.0
type CommentParent ¶ added in v0.2.0
type DefaultReviewers ¶
type DefaultReviewers struct {
Values []*Account `json:"values"`
}
type ListPullRequests ¶
type Participant ¶ added in v0.2.0
type Pipeline ¶ added in v0.2.0
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 ¶ added in v0.2.0
type PipelineState struct {
Name string
Type string
Result PipelineStateResult
Stage PipelineStateResult
}
type PipelineStateResult ¶ added in v0.2.0
type PipelineTrigger ¶ added in v0.2.0
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 ¶ added in v0.2.0
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 ¶ added in v0.2.0
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package run contains code from cli/cli As cli/cli uses an internal package for internal/run/run.go, we need to copy the code from them :( https://github.com/cli/cli/blob/34d549e7b61660c7c993181c0be046d6277cad03/internal/run/run.go
|
Package run contains code from cli/cli As cli/cli uses an internal package for internal/run/run.go, we need to copy the code from them :( https://github.com/cli/cli/blob/34d549e7b61660c7c993181c0be046d6277cad03/internal/run/run.go |
Click to show internal directories.
Click to hide internal directories.