Documentation ¶
Index ¶
Constants ¶
View Source
const ( InitializingStatus = "initializing" RunningStatus = "running" SucceedStatus = "succeed" FailedStatus = "failed" ErrorStatus = "error" PausedStatus = "paused" CanceledStatus = "canceled" TriggerEvent = "flow.execute.trigger" ExecuteFinishEvent = "flow.execute.finish" ExecuteFailedEvent = "flow.execute.failed" ExecuteErrorEvent = "flow.execute.error" ExecutePauseEvent = "flow.execute.pause" ExecuteResumeEvent = "flow.execute.resume" ExecuteCancelEvent = "flow.execute.cancel" PolicyFastFailed = "fastFailed" PolicyPaused = "paused" PolicyContinue = "continue" )
View Source
const ( DecodeTypeJsonPath = "jsonpath" DecodeTypeRegular = "regular" )
View Source
const (
EncodeTypeGoTpl = "gotemplate"
)
Variables ¶
This section is empty.
Functions ¶
func IsFinishedStatus ¶
Types ¶
type ControlPolicy ¶
type ControlPolicy struct {
FailedPolicy string
}
type FlowSpec ¶
type FlowSpec struct { ID string `json:"id"` Describe string `json:"describe"` Executor string `json:"executor"` Scheduler string `json:"scheduler"` Status string `json:"status"` Message string `json:"message"` ControlPolicy ControlPolicy `json:"control_policy"` Tasks []TaskSpec `json:"tasks"` OnFailure []TaskSpec `json:"on_failure"` }
func (*FlowSpec) GetMessage ¶
func (*FlowSpec) SetMessage ¶
type TaskSpec ¶
type TaskSpec struct { Name string `json:"name"` Status string `json:"status"` Message string `json:"message"` OperatorSpec Spec `json:"operator_spec"` Next NextTask `json:"next,omitempty"` RetryOnFailed int `json:"retry_on_failed,omitempty"` }
func (*TaskSpec) GetMessage ¶
func (*TaskSpec) SetMessage ¶
Click to show internal directories.
Click to hide internal directories.