Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Pipeline ¶
type Pipeline struct {
UUID string `json:"uuid"`
BuildNumber int `json:"build_number"`
Creator *User `json:"creator,omitempty"`
Repository *Repo `json:"repository,omitempty"`
Target *Target `json:"target,omitempty"`
Trigger *struct {
Name string `json:"name"`
Type string `json:"type"`
} `json:"trigger,omitempty"`
State *State `json:"state,omitempty"`
CreatedOn string `json:"created_on"`
CompletedOn string `json:"completed_on,omitempty"`
DurationIn int `json:"duration_in_seconds,omitempty"`
Links Links `json:"links"`
}
Pipeline represents a Bitbucket pipeline
func (*Pipeline) CommitHash ¶
CommitHash returns the short commit hash
func (*Pipeline) StatusString ¶
StatusString returns a human-readable status
type PipelineList ¶
type PipelineList struct {
Size int `json:"size"`
Page int `json:"page"`
PageLen int `json:"pagelen"`
Next string `json:"next"`
Previous string `json:"previous"`
Values []Pipeline `json:"values"`
}
PipelineList represents a paginated list of pipelines
type Step ¶
type Step struct {
UUID string `json:"uuid"`
Name string `json:"name"`
State *State `json:"state,omitempty"`
StartedOn string `json:"started_on,omitempty"`
CompletedOn string `json:"completed_on,omitempty"`
DurationIn int `json:"duration_in_seconds,omitempty"`
Image *struct {
Name string `json:"name"`
} `json:"image,omitempty"`
ScriptCommands []struct {
Name string `json:"name"`
Command string `json:"command"`
} `json:"script_commands,omitempty"`
Links Links `json:"links"`
}
Step represents a pipeline step
type StepList ¶
type StepList struct {
Size int `json:"size"`
Page int `json:"page"`
PageLen int `json:"pagelen"`
Next string `json:"next"`
Previous string `json:"previous"`
Values []Step `json:"values"`
}
StepList represents a paginated list of steps
type Target ¶
type Target struct {
Type string `json:"type"`
RefType string `json:"ref_type,omitempty"`
RefName string `json:"ref_name,omitempty"`
Selector *struct {
Type string `json:"type"`
Pattern string `json:"pattern"`
} `json:"selector,omitempty"`
Commit *struct {
Hash string `json:"hash"`
Message string `json:"message,omitempty"`
} `json:"commit,omitempty"`
PullRequest *struct {
ID int `json:"id"`
Title string `json:"title,omitempty"`
} `json:"pullrequest,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.