Documentation ¶
Index ¶
- Constants
- func CreateDefaultWfMetaLoader(resourceType string) (wfengine.WfMetaLoader, error)
- func CreateDefaultWorkflowHook(wfRuntime *wfengine.WfRuntime) (wfengine.WfHook, error)
- func GetDefaultMementoStorageFactory(resourceType string, enableEvent bool) wfengine.CreateMementoStorageFunc
- type DefaultHistoryRecorder
- type DefaultMementoStorage
- type DefaultRecover
- func (*DefaultRecover) CancelResourceRecover(resource statemachine.StateResource, conf map[define.WFConfKey]string) error
- func (*DefaultRecover) GetResourceRecoverInfo(resource statemachine.StateResource, conf map[define.WFConfKey]string) (recover bool, preStatus statemachine.State)
- func (*DefaultRecover) SaveResourceInterruptInfo(resource statemachine.StateResource, conf map[define.WFConfKey]string, ...) error
- type DefaultWfMetaLoader
- type DefaultWorkflowHook
- func (wfh DefaultWorkflowHook) OnStepCompleted(step *wfengine.StepRuntime) error
- func (wfh DefaultWorkflowHook) OnStepInit(step *wfengine.StepRuntime) error
- func (wfh DefaultWorkflowHook) OnStepWaiting(step *wfengine.StepRuntime) error
- func (wfh DefaultWorkflowHook) OnWfCompleted() error
- func (wfh DefaultWorkflowHook) OnWfInit() error
- func (wfh DefaultWorkflowHook) OnWfInterrupt(err *define.InterruptError) error
- type StepType
- type WorkflowStep
Constants ¶
View Source
const EventsReasonFormat = "WF_%s"
View Source
const WorkFlowJobConfigMapTag = "flowJobsDomain"
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultWfMetaLoader ¶
func CreateDefaultWfMetaLoader(resourceType string) (wfengine.WfMetaLoader, error)
func GetDefaultMementoStorageFactory ¶
func GetDefaultMementoStorageFactory( resourceType string, enableEvent bool, ) wfengine.CreateMementoStorageFunc
Types ¶
type DefaultHistoryRecorder ¶
type DefaultHistoryRecorder struct {
// contains filtered or unexported fields
}
func CreateDefaultHistoryRecorder ¶
func CreateDefaultHistoryRecorder(resourceType string, logger logr.Logger, logDir string) *DefaultHistoryRecorder
func (*DefaultHistoryRecorder) WriteWorkflowStepLog ¶
func (r *DefaultHistoryRecorder) WriteWorkflowStepLog(flow *wfengine.WfRuntime, step *wfengine.StepRuntime, stepType StepType)
type DefaultMementoStorage ¶
type DefaultMementoStorage struct {
// contains filtered or unexported fields
}
func (*DefaultMementoStorage) LoadMementoMap ¶
func (s *DefaultMementoStorage) LoadMementoMap(careTakerName string) (map[string]string, error)
func (*DefaultMementoStorage) Save ¶
func (s *DefaultMementoStorage) Save(mementoKey, mementoContent string) error
工作流运行过程中保存运行时信息
type DefaultRecover ¶
type DefaultRecover struct { }
func CreateDefaultRecover ¶
func CreateDefaultRecover() *DefaultRecover
func (*DefaultRecover) CancelResourceRecover ¶
func (*DefaultRecover) CancelResourceRecover(resource statemachine.StateResource, conf map[define.WFConfKey]string) error
func (*DefaultRecover) GetResourceRecoverInfo ¶
func (*DefaultRecover) GetResourceRecoverInfo(resource statemachine.StateResource, conf map[define.WFConfKey]string) (recover bool, preStatus statemachine.State)
func (*DefaultRecover) SaveResourceInterruptInfo ¶
func (*DefaultRecover) SaveResourceInterruptInfo(resource statemachine.StateResource, conf map[define.WFConfKey]string, reason, message, prevWf string) error
type DefaultWfMetaLoader ¶
type DefaultWfMetaLoader struct {
// contains filtered or unexported fields
}
func (*DefaultWfMetaLoader) GetAllFlowMeta ¶
func (l *DefaultWfMetaLoader) GetAllFlowMeta(workFlowMetaDir string) (map[string]*wfengine.FlowMeta, map[string]*wfengine.StepGroupMeta, error)
type DefaultWorkflowHook ¶
type DefaultWorkflowHook struct {
// contains filtered or unexported fields
}
func (DefaultWorkflowHook) OnStepCompleted ¶
func (wfh DefaultWorkflowHook) OnStepCompleted(step *wfengine.StepRuntime) error
流程步骤执行后运行
func (DefaultWorkflowHook) OnStepInit ¶
func (wfh DefaultWorkflowHook) OnStepInit(step *wfengine.StepRuntime) error
流程步骤执行前运行
func (DefaultWorkflowHook) OnStepWaiting ¶
func (wfh DefaultWorkflowHook) OnStepWaiting(step *wfengine.StepRuntime) error
流程步骤执行前运行
func (DefaultWorkflowHook) OnWfCompleted ¶
func (wfh DefaultWorkflowHook) OnWfCompleted() error
流程结束时执行
func (DefaultWorkflowHook) OnWfInterrupt ¶
func (wfh DefaultWorkflowHook) OnWfInterrupt(err *define.InterruptError) error
流程中断时执行
type WorkflowStep ¶
type WorkflowStep struct { ResourceName string `json:"resource_name"` Namespace string `json:"namespace"` WorkflowID string `json:"workflow_id"` StepID string `json:"step_id"` FlowName string `json:"flow_name"` StepName string `json:"step_name"` Type StepType `json:"type"` StartTime string `json:"start_time"` EndTime string `json:"end_time"` Step int `json:"step"` StepCount int `json:"step_count"` Retry int `json:"retry"` Error string `json:"error"` ExtraCtx map[string]string `json:"extra_ctx"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.