Documentation ¶
Index ¶
- Constants
- func DownloadArtifact(artifact *CircleArtifact, directory string, org string) error
- func Enable(ctx context.Context, host string, org string, repoName string) error
- func Rebuild(ctx context.Context, tb *TreeBuild) error
- type Action
- type CircleArtifact
- type CircleBuild
- type CircleConfig
- type CircleDuration
- type CircleOutput
- type CircleOutputs
- type CircleTreeResponse
- type FollowResponse
- type PreviousBuild
- type Step
- type TreeBuild
- type URL
Constants ¶
View Source
const VERSION = "0.27"
Variables ¶
This section is empty.
Functions ¶
func DownloadArtifact ¶
func DownloadArtifact(artifact *CircleArtifact, directory string, org string) error
Types ¶
type Action ¶
type Action struct { Name string `json:"name"` OutputURL URL `json:"output_url"` Runtime CircleDuration `json:"run_time_millis"` Status string `json:"status"` }
type CircleArtifact ¶
type CircleArtifact struct { Path string `json:"path"` PrettyPath string `json:"pretty_path"` NodeIndex uint8 `json:"node_index"` Url string `json:"url"` }
func GetArtifactsForBuild ¶
func GetArtifactsForBuild(org string, project string, buildNum int) ([]*CircleArtifact, error)
type CircleBuild ¶
type CircleBuild struct { BuildNum uint32 `json:"build_num"` Parallel uint8 `json:"parallel"` PreviousSuccessfulBuild PreviousBuild `json:"previous_successful_build"` QueuedAt types.NullTime `json:"queued_at"` RepoName string `json:"reponame"` // "go" Steps []Step `json:"steps"` VCSType string `json:"vcs_type"` // "github", "bitbucket" UsageQueuedAt types.NullTime `json:"usage_queued_at"` Username string `json:"username"` // "golang" }
func CancelBuild ¶
func CancelBuild(org string, project string, buildNum int) (*CircleBuild, error)
func (*CircleBuild) FailureTexts ¶
func (cb *CircleBuild) FailureTexts(ctx context.Context) ([]string, error)
func (*CircleBuild) Failures ¶
func (cb *CircleBuild) Failures() [][2]int
Failures returns an array of (buildStep, containerID) integers identifying the IDs of container/build step pairs that failed.
func (*CircleBuild) Statistics ¶
func (cb *CircleBuild) Statistics() string
Statistics prints out statistics for the given build. If stdout is a TTY, failed builds will be surrounded by red ANSI escape sequences.
type CircleConfig ¶
type CircleConfig struct {
Organizations map[string]organization
}
type CircleDuration ¶
func (*CircleDuration) UnmarshalJSON ¶
func (cd *CircleDuration) UnmarshalJSON(b []byte) error
type CircleOutput ¶
type CircleOutputs ¶
type CircleOutputs []*CircleOutput
type CircleTreeResponse ¶
type CircleTreeResponse []TreeBuild
func GetTreeContext ¶
func GetTreeContext(ctx context.Context, org, project, branch string) (*CircleTreeResponse, error)
type FollowResponse ¶
type FollowResponse struct {
Following bool `json:"following"`
}
type PreviousBuild ¶
type TreeBuild ¶
type TreeBuild struct { BuildNum int `json:"build_num"` BuildURL string `json:"build_url"` CompareURL string `json:"compare"` // Tree builds have a `previous_successful_build` field but as far as I can // tell it is always null. Instead this field is set Previous PreviousBuild `json:"previous"` QueuedAt types.NullTime `json:"queued_at"` RepoName string `json:"reponame"` Status string `json:"status"` StartTime types.NullTime `json:"start_time"` StopTime types.NullTime `json:"stop_time"` UsageQueuedAt types.NullTime `json:"usage_queued_at"` Username string `json:"username"` VCSRevision string `json:"vcs_revision"` VCSType string `json:"vcs_type"` }
func (TreeBuild) NotRunning ¶
Click to show internal directories.
Click to hide internal directories.