Documentation ¶
Index ¶
- Constants
- Variables
- func NewCmdCfg() *cmd.Cfg
- func NewPipelineCfg() *pipeline.Cfg
- type Cfg
- type Cmd
- type Collector
- type Hook
- type HookExtraData
- type Pipeline
- type Result
- type Step
- type StepCfg
- type StepHook
- 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 ...StepHook)
- func (t *Task) RegisterStepDoneHook(hook ...StepHook)
- func (t *Task) Result() interface{}
- func (t *Task) Start() error
- func (t *Task) Steps() []Step
- func (t *Task) Stop() error
- func (t *Task) Store(k string, v any) error
- func (t *Task) Type() interface{}
- type Type
Constants ¶
View Source
const PluginTypeTask plugin.Type = "task"
Variables ¶
View Source
var CreateBaseStep = newBase
Functions ¶
func NewPipelineCfg ¶ added in v0.6.9
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 Hook ¶ added in v0.7.1
type Hook func(*Task, error, *HookExtraData)
type HookExtraData ¶ added in v0.7.1
type Pipeline ¶ added in v0.6.9
func NewPipelineStep ¶ added in v0.6.9
func NewPipelineStep() *Pipeline
type StepCfg ¶
type StepCfg struct { Type StepType `json:"type" validate:"required" yaml:"type"` Cfg interface{} `json:"cfg" validate:"required" yaml:"cfg"` }
type StepType ¶
type StepType string
const StepTypeCmd StepType = "cmd"
const StepTypePipeline StepType = "pipeline"
type Task ¶
func (*Task) CurDeferStep ¶
func (*Task) DeferSteps ¶
func (*Task) RegisterCollector ¶ added in v0.3.9
func (*Task) RegisterDeferStepDoneHook ¶
func (*Task) RegisterStepDoneHook ¶
Click to show internal directories.
Click to hide internal directories.