Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentView ¶
type AgentView struct {
ID string `json:"id" yaml:"id"`
GraphQLID string `json:"graphql_id" yaml:"graphql_id"`
URL string `json:"url" yaml:"url"`
WebURL string `json:"web_url" yaml:"web_url"`
Name string `json:"name" yaml:"name"`
ConnectionState string `json:"connection_state" yaml:"connection_state"`
Hostname string `json:"hostname" yaml:"hostname"`
IPAddress string `json:"ip_address" yaml:"ip_address"`
UserAgent string `json:"user_agent" yaml:"user_agent"`
Creator *CreatorView `json:"creator,omitempty" yaml:"creator,omitempty"`
CreatedAt time.Time `json:"created_at" yaml:"created_at"`
}
AgentView represents agent information
type AnnotationView ¶
type AnnotationView struct {
ID string `json:"id" yaml:"id"`
Context string `json:"context" yaml:"context"`
Style string `json:"style" yaml:"style"`
BodyHTML string `json:"body_html" yaml:"body_html"`
}
AnnotationView represents annotation information
type ArtifactView ¶
type ArtifactView struct {
ID string `json:"id" yaml:"id"`
JobID string `json:"job_id" yaml:"job_id"`
URL string `json:"url" yaml:"url"`
DownloadURL string `json:"download_url" yaml:"download_url"`
State string `json:"state" yaml:"state"`
Path string `json:"path" yaml:"path"`
Dirname string `json:"dirname" yaml:"dirname"`
Filename string `json:"filename" yaml:"filename"`
MimeType string `json:"mime_type" yaml:"mime_type"`
FileSize int64 `json:"file_size" yaml:"file_size"`
GlobPath string `json:"glob_path" yaml:"glob_path"`
OriginalPath string `json:"original_path" yaml:"original_path"`
SHA1 string `json:"sha1sum" yaml:"sha1sum"`
}
ArtifactView represents artifact information
type AuthorView ¶
type AuthorView struct {
Username string `json:"username" yaml:"username"`
Name string `json:"name" yaml:"name"`
Email string `json:"email" yaml:"email"`
}
AuthorView represents build author information
type BuildView ¶
type BuildView struct {
ID string `json:"id" yaml:"id"`
GraphQLID string `json:"graphql_id" yaml:"graphql_id"`
URL string `json:"url" yaml:"url"`
WebURL string `json:"web_url" yaml:"web_url"`
Number int `json:"number" yaml:"number"`
State string `json:"state" yaml:"state"`
Blocked bool `json:"blocked" yaml:"blocked"`
Message string `json:"message" yaml:"message"`
Commit string `json:"commit" yaml:"commit"`
Branch string `json:"branch" yaml:"branch"`
Env map[string]interface{} `json:"env,omitempty" yaml:"env,omitempty"`
Source string `json:"source" yaml:"source"`
Creator *CreatorView `json:"creator,omitempty" yaml:"creator,omitempty"`
Author *AuthorView `json:"author,omitempty" yaml:"author,omitempty"`
Jobs []JobView `json:"jobs,omitempty" yaml:"jobs,omitempty"`
CreatedAt time.Time `json:"created_at" yaml:"created_at"`
ScheduledAt *time.Time `json:"scheduled_at,omitempty" yaml:"scheduled_at,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty" yaml:"started_at,omitempty"`
FinishedAt *time.Time `json:"finished_at,omitempty" yaml:"finished_at,omitempty"`
MetaData map[string]interface{} `json:"meta_data,omitempty" yaml:"meta_data,omitempty"`
PullRequest map[string]interface{} `json:"pull_request,omitempty" yaml:"pull_request,omitempty"`
RebuiltFrom *RebuiltFromView `json:"rebuilt_from,omitempty" yaml:"rebuilt_from,omitempty"`
Pipeline *PipelineView `json:"pipeline,omitempty" yaml:"pipeline,omitempty"`
Artifacts []ArtifactView `json:"artifacts,omitempty" yaml:"artifacts,omitempty"`
Annotations []AnnotationView `json:"annotations,omitempty" yaml:"annotations,omitempty"`
}
BuildView provides a formatted view of build data
func NewBuildView ¶
func NewBuildView(build *buildkite.Build, artifacts []buildkite.Artifact, annotations []buildkite.Annotation) *BuildView
NewBuildView creates a BuildView from buildkite types
func (BuildView) TextOutput ¶
TextOutput implements the output.Formatter interface
type CreatorView ¶
type CreatorView struct {
ID string `json:"id" yaml:"id"`
GraphQLID string `json:"graphql_id" yaml:"graphql_id"`
Name string `json:"name" yaml:"name"`
Email string `json:"email" yaml:"email"`
AvatarURL string `json:"avatar_url" yaml:"avatar_url"`
CreatedAt time.Time `json:"created_at" yaml:"created_at"`
}
CreatorView represents build creator information
type JobView ¶
type JobView struct {
ID string `json:"id" yaml:"id"`
GraphQLID string `json:"graphql_id" yaml:"graphql_id"`
Type string `json:"type" yaml:"type"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Label string `json:"label,omitempty" yaml:"label,omitempty"`
StepKey string `json:"step_key,omitempty" yaml:"step_key,omitempty"`
Step *StepView `json:"step,omitempty" yaml:"step,omitempty"`
Command string `json:"command,omitempty" yaml:"command,omitempty"`
State string `json:"state" yaml:"state"`
WebURL string `json:"web_url" yaml:"web_url"`
LogURL string `json:"log_url,omitempty" yaml:"log_url,omitempty"`
RawLogURL string `json:"raw_log_url,omitempty" yaml:"raw_log_url,omitempty"`
SoftFailed bool `json:"soft_failed" yaml:"soft_failed"`
ArtifactPaths string `json:"artifact_paths,omitempty" yaml:"artifact_paths,omitempty"`
Agent *AgentView `json:"agent,omitempty" yaml:"agent,omitempty"`
CreatedAt time.Time `json:"created_at" yaml:"created_at"`
ScheduledAt *time.Time `json:"scheduled_at,omitempty" yaml:"scheduled_at,omitempty"`
RunnableAt *time.Time `json:"runnable_at,omitempty" yaml:"runnable_at,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty" yaml:"started_at,omitempty"`
FinishedAt *time.Time `json:"finished_at,omitempty" yaml:"finished_at,omitempty"`
ExitStatus *int `json:"exit_status,omitempty" yaml:"exit_status,omitempty"`
Retried bool `json:"retried" yaml:"retried"`
RetriedInJobID *string `json:"retried_in_job_id" yaml:"retried_in_job_id"`
RetriesCount int `json:"retries_count" yaml:"retries_count"`
RetrySource *RetrySourceView `json:"retry_source,omitempty" yaml:"retry_source,omitempty"`
RetryType *string `json:"retry_type" yaml:"retry_type"`
ParallelGroupIndex *int `json:"parallel_group_index" yaml:"parallel_group_index"`
ParallelGroupTotal *int `json:"parallel_group_total" yaml:"parallel_group_total"`
Matrix interface{} `json:"matrix" yaml:"matrix"`
ClusterID *string `json:"cluster_id" yaml:"cluster_id"`
ClusterURL *string `json:"cluster_url" yaml:"cluster_url"`
ClusterQueueID *string `json:"cluster_queue_id" yaml:"cluster_queue_id"`
ClusterQueueURL *string `json:"cluster_queue_url" yaml:"cluster_queue_url"`
AgentQueryRules []string `json:"agent_query_rules,omitempty" yaml:"agent_query_rules,omitempty"`
}
JobView represents job information
type PipelineView ¶
type PipelineView struct {
ID string `json:"id" yaml:"id"`
GraphQLID string `json:"graphql_id" yaml:"graphql_id"`
URL string `json:"url" yaml:"url"`
Name string `json:"name" yaml:"name"`
Slug string `json:"slug" yaml:"slug"`
Repository string `json:"repository" yaml:"repository"`
Provider map[string]interface{} `json:"provider,omitempty" yaml:"provider,omitempty"`
SkipQueuedBranchBuilds bool `json:"skip_queued_branch_builds" yaml:"skip_queued_branch_builds"`
SkipQueuedBranchBuildsFilter *string `json:"skip_queued_branch_builds_filter" yaml:"skip_queued_branch_builds_filter"`
CancelRunningBranchBuilds bool `json:"cancel_running_branch_builds" yaml:"cancel_running_branch_builds"`
CancelRunningBranchBuildsFilter *string `json:"cancel_running_branch_builds_filter" yaml:"cancel_running_branch_builds_filter"`
BuildsURL string `json:"builds_url" yaml:"builds_url"`
BadgeURL string `json:"badge_url" yaml:"badge_url"`
CreatedAt time.Time `json:"created_at" yaml:"created_at"`
ScheduledBuildsCount int `json:"scheduled_builds_count" yaml:"scheduled_builds_count"`
RunningBuildsCount int `json:"running_builds_count" yaml:"running_builds_count"`
ScheduledJobsCount int `json:"scheduled_jobs_count" yaml:"scheduled_jobs_count"`
RunningJobsCount int `json:"running_jobs_count" yaml:"running_jobs_count"`
WaitingJobsCount int `json:"waiting_jobs_count" yaml:"waiting_jobs_count"`
}
PipelineView represents pipeline information
type RebuiltFromView ¶
type RebuiltFromView struct {
ID string `json:"id" yaml:"id"`
Number int `json:"number" yaml:"number"`
URL string `json:"url" yaml:"url"`
}
RebuiltFromView represents rebuilt from information
type RetrySourceView ¶
type RetrySourceView struct {
JobID string `json:"job_id" yaml:"job_id"`
RetryType string `json:"retry_type" yaml:"retry_type"`
}
RetrySourceView represents retry source information
Click to show internal directories.
Click to hide internal directories.