Documentation ¶
Index ¶
- Constants
- func NewCmdCfg() *cmd.Cfg
- type BaseStep
- type Cfg
- type Cmd
- type Collector
- type Snapshot
- type Step
- type StepCfg
- type StepDoneHook
- type StepType
- type Task
- func (t *Task) CurDeferStep() Step
- func (t *Task) CurStep() Step
- func (t *Task) DeferSteps() []Step
- func (t *Task) GetCfg() interface{}
- func (t *Task) Init() error
- func (t *Task) RegisterCollector(c Collector)
- func (t *Task) RegisterDeferStepDoneHook(hook ...StepDoneHook)
- func (t *Task) RegisterStepDoneHook(hook ...StepDoneHook)
- func (t *Task) Result() interface{}
- func (t *Task) Snapshot() *Snapshot
- func (t *Task) Start() error
- func (t *Task) Steps() []Step
- func (t *Task) Stop() error
- func (t *Task) Store(k string, v any)
- func (t *Task) Type() interface{}
- type Type
Constants ¶
View Source
const PluginTypeTask plugin.Type = "task"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Cfg ¶
type Cfg struct { ID string `json:"id" validate:"required,min=1" yaml:"id"` Type Type `json:"type" validate:"required" yaml:"type"` Steps []*StepCfg `json:"steps" validate:"required,min=1" yaml:"steps"` DeferSteps []*StepCfg `json:"deferSteps" yaml:"deferSteps"` CurStepIdx int `json:"curStepIdx" yaml:"curStepIdx"` CurDeferStepIdx int `json:"curDeferStepIdx" yaml:"curDeferStepIdx"` }
type Cmd ¶
func NewCmdStep ¶
func NewCmdStep() *Cmd
type Step ¶
type StepCfg ¶
type StepCfg struct { Type StepType `json:"type" validate:"required" yaml:"type"` Cfg interface{} `json:"cfg" validate:"required" yaml:"cfg"` }
type StepDoneHook ¶
type Task ¶
func (*Task) CurDeferStep ¶
func (*Task) DeferSteps ¶
func (*Task) RegisterCollector ¶ added in v0.3.9
func (*Task) RegisterDeferStepDoneHook ¶
func (t *Task) RegisterDeferStepDoneHook(hook ...StepDoneHook)
func (*Task) RegisterStepDoneHook ¶
func (t *Task) RegisterStepDoneHook(hook ...StepDoneHook)
Click to show internal directories.
Click to hide internal directories.