Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BuildTargetState ¶
type Opts ¶
type Opts struct {
// contains filtered or unexported fields
}
Opts holds the current run operations configuration
type RunResult ¶
type RunResult struct { // Timestamp of this event Time time.Time // Duration of this event Duration time.Duration // Target which has just changed Label string // Its current status Status RunResultStatus // Error, only populated for failure statuses Err error }
RunResult represents a single event in the build process, i.e. a target starting or finishing building, or reaching some milestone within those steps.
type RunResultStatus ¶
type RunResultStatus int
RunResultStatus represents the status of a target when we log a build result.
const ( TargetBuilding RunResultStatus = iota TargetBuildStopped TargetBuilt TargetCached TargetBuildFailed )
The collection of expected build result statuses.
type RunState ¶
type RunState struct { Success int Failure int // Is the output streaming? Cached int Attempted int // contains filtered or unexported fields }
func NewRunState ¶
NewRunState creates a RunState instance for tracking events during the course of a run.
Click to show internal directories.
Click to hide internal directories.