Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result interface { // Errors contains the results of tasks with errors. Errors() []TaskResult // Ok is true if there were no errors. Ok() bool }
Result is the result of the whole build.
type Scheduler ¶
type Scheduler struct {
// contains filtered or unexported fields
}
Scheduler takes a list of tasks and schedules their execution according to their dependencies.
type TaskResult ¶
type TaskResult struct { Task task.Task Err error Status TaskStatus }
TaskResult is the result of a single task.
func (TaskResult) String ¶
func (ta TaskResult) String() string
type TaskStatus ¶
type TaskStatus int
TaskStatus is the status of a task in a build.
const ( // NotRun indicates a task was not run. NotRun TaskStatus = iota // Ok indicates a task was run with no error. Ok // Error indicates a task was run, but resulted in an error. Error )
func (TaskStatus) String ¶
func (ts TaskStatus) String() string
Click to show internal directories.
Click to hide internal directories.