Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry interface {
GetProcessor(*model.WorkflowExecution) (StateProcessor, error)
}
type RegistryImpl ¶
type RegistryImpl struct {
ScheduleState *ScheduledStateProcessor
RunningState *RunningStateProcessor
}
func (*RegistryImpl) GetProcessor ¶
func (registry *RegistryImpl) GetProcessor(execution *model.WorkflowExecution) (StateProcessor, error)
type RunningStateProcessor ¶
type RunningStateProcessor struct {
WorkflowExecutionDao dao.WorkflowExecutionDao
TaskExecutionDao dao.TaskExecutionDao
TaskExecutorFactory taskexecutor.Factory
TaskPollerFactory taskpoller.Factory
KubeClient kubernetes.Interface
}
func (*RunningStateProcessor) ToNextState ¶
func (processor *RunningStateProcessor) ToNextState(execution *model.WorkflowExecution, db *gorm.DB) (bool, error)
type ScheduledStateProcessor ¶
type ScheduledStateProcessor struct {
WorkflowExecutionDao dao.WorkflowExecutionDao
TaskExecutorFactory taskexecutor.Factory
}
func (*ScheduledStateProcessor) ToNextState ¶
func (scheduledState *ScheduledStateProcessor) ToNextState(execution *model.WorkflowExecution, db *gorm.DB) (bool, error)
type StateProcessor ¶
Click to show internal directories.
Click to hide internal directories.