Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericTask ¶
type GenericTask struct {
Description string
Doer func() error
}
type SynchronousTask ¶ added in v0.39.0
type SynchronousTask struct {
SynchronousTaskIface
}
type SynchronousTaskIface ¶ added in v0.39.0
type SynchronousTaskIface interface {
Describe() string
Do() error
}
type Task ¶
type Task interface {
Describe() string
Do(chan error) error
}
Task is a common interface for the stack manager tasks
type TaskTree ¶
type TaskTree struct {
Tasks []Task
Parallel bool
PlanMode bool
IsSubTask bool
}
TaskTree wraps a set of tasks
func (*TaskTree) Describe ¶
func (t *TaskTree) Describe() string
Describe collects all tasks which have been added to the task tree. This is a lazy tree which does not track its nodes in any form. This function is recursively called from the rest of the task Describes and eventually returns a collection of all the tasks' `Info` value.
func (*TaskTree) Do ¶
func (t *TaskTree) Do(allErrs chan error) error
Do will run through the set in the background, it may return an error immediately, or eventually write to the errs channel; it will close the channel once all tasks are completed
type TaskWithNameParam ¶
type TaskWithNameParam struct {
Info string
Name string
Call func(chan error, string) error
}
Click to show internal directories.
Click to hide internal directories.