Documentation ¶
Index ¶
- type Build
- type Command
- type Task
- func (task *Task) FailedAtLeastOnce() bool
- func (task *Task) GetCommand(name string) *Command
- func (task *Task) ProtoCommands() []*api.Command
- func (task *Task) SetStatus(status taskstatus.Status)
- func (task *Task) Status() taskstatus.Status
- func (task *Task) String() string
- func (task *Task) UniqueName() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Build ¶
type Build struct { // A directory on host where .cirrus.yml that drives this execution is located ProjectDir string Cache *cache.Cache // contains filtered or unexported fields }
func (*Build) GetNextTask ¶
func (*Build) GetTaskFromIdentification ¶
type Command ¶ added in v0.3.0
type Command struct { // Original Protocol Buffers structure for reference ProtoCommand *api.Command // A mutex to guarantee safe accesses from both the main loop and gRPC server handlers Mutex sync.RWMutex // contains filtered or unexported fields }
func (*Command) SetStatus ¶ added in v0.3.0
func (command *Command) SetStatus(status commandstatus.Status)
func (*Command) Status ¶ added in v0.3.0
func (command *Command) Status() commandstatus.Status
type Task ¶
type Task struct { ID int64 RequiredIDs []int64 Name string Labels []string Instance instance.Instance Timeout time.Duration Environment map[string]string Commands []*Command // A mutex to guarantee safe accesses from both the main loop and gRPC server handlers Mutex sync.RWMutex // contains filtered or unexported fields }
func (*Task) FailedAtLeastOnce ¶ added in v0.3.0
func (*Task) GetCommand ¶ added in v0.3.0
func (*Task) ProtoCommands ¶ added in v0.3.0
func (*Task) SetStatus ¶
func (task *Task) SetStatus(status taskstatus.Status)
func (*Task) Status ¶
func (task *Task) Status() taskstatus.Status
func (*Task) UniqueName ¶ added in v0.6.0
Click to show internal directories.
Click to hide internal directories.