Documentation
¶
Index ¶
- Constants
- type Cfg
- type Collector
- type Hook
- type HookExtraData
- type Result
- type StepHook
- type Task
- func (t *Task) CloneTask() *Task
- func (t *Task) CurDeferStep() step.Step
- func (t *Task) DeferSteps() []step.Step
- func (t *Task) HookDeferStepDone(hook ...StepHook)
- func (t *Task) HookStepDone(hook ...StepHook)
- func (t *Task) Init() error
- func (t *Task) Result() *Result
- func (t *Task) Start() error
- func (t *Task) Steps() []step.Step
- func (t *Task) Stop() error
- func (t *Task) Store(k string, v any)
- type Type
Constants ¶
View Source
const PluginTypeTask plugin.Type = "task"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct {
ID string `json:"id" validate:"required" yaml:"id"`
Type Type `json:"type" validate:"required" yaml:"type"`
Steps []*step.Cfg `json:"steps" validate:"required" yaml:"steps"`
DeferSteps []*step.Cfg `json:"deferSteps" yaml:"deferSteps"`
CurStepIdx int `json:"curStepIdx" yaml:"curStepIdx"`
CurDeferStepIdx int `json:"curDeferStepIdx" yaml:"curDeferStepIdx"`
Pool string `json:"pool" yaml:"pool"`
Values map[string]any `json:"values" yaml:"values"`
}
type Hook ¶ added in v0.7.1
type Hook func(*Task, error, *HookExtraData)
type HookExtraData ¶ added in v0.7.1
type HookExtraData struct {
Wait bool
}
type Task ¶
func (*Task) CurDeferStep ¶
func (*Task) DeferSteps ¶
func (*Task) HookDeferStepDone ¶ added in v0.9.25
func (*Task) HookStepDone ¶ added in v0.9.25
Click to show internal directories.
Click to hide internal directories.