Documentation
¶
Index ¶
Constants ¶
View Source
const ( StateNotRun = State("NotRun") StateRunning = State("Running") StateDone = State("Done") StateFail = State("Fail") )
Variables ¶
View Source
var ( NotRunInstance = &NotRunStep{} RunningInstance = &RunningStep{} DoneInstance = &DoneStep{} FailInstance = &FailStep{} )
Functions ¶
func GetJobFromReader ¶
GetJobFromReader 根据流获取Job 信息
Types ¶
type IStepState ¶
type IStepState interface {
// contains filtered or unexported methods
}
type RunningStep ¶
type RunningStep struct { }
RunningStep 运行中状态
func NewRunningStep ¶
func NewRunningStep() *RunningStep
type StepMachine ¶
type StepMachine struct {
// contains filtered or unexported fields
}
func InitialStepStateMachine ¶
func InitialStepStateMachine() *StepMachine
func (*StepMachine) Run ¶
func (s *StepMachine) Run()
func (*StepMachine) State ¶
func (s *StepMachine) State() State
Click to show internal directories.
Click to hide internal directories.