Documentation ¶
Index ¶
- Variables
- type ArrayNodeInfo
- type ArrayNodeState
- type BranchNodeInfo
- type BranchNodeState
- type DynamicNodeInfo
- type DynamicNodePhase
- type DynamicNodeState
- type EPhase
- type ExecutionInfo
- type GateNodeInfo
- type GateNodeState
- type OutputInfo
- type PhaseInfo
- func PhaseInfoDynamicRunning(info *ExecutionInfo) PhaseInfo
- func PhaseInfoFailingErr(err *core.ExecutionError, info *ExecutionInfo) PhaseInfo
- func PhaseInfoFailure(kind core.ExecutionError_ErrorKind, code, reason string, info *ExecutionInfo) PhaseInfo
- func PhaseInfoFailureErr(err *core.ExecutionError, info *ExecutionInfo) PhaseInfo
- func PhaseInfoNotReady(reason string) PhaseInfo
- func PhaseInfoQueued(reason string, inputs *core.LiteralMap) PhaseInfo
- func PhaseInfoRecovered(info *ExecutionInfo) PhaseInfo
- func PhaseInfoRetryableFailure(kind core.ExecutionError_ErrorKind, code, reason string, info *ExecutionInfo) PhaseInfo
- func PhaseInfoRetryableFailureErr(err *core.ExecutionError, info *ExecutionInfo) PhaseInfo
- func PhaseInfoRunning(info *ExecutionInfo) PhaseInfo
- func PhaseInfoSkip(info *ExecutionInfo, reason string) PhaseInfo
- func PhaseInfoSuccess(info *ExecutionInfo) PhaseInfo
- func PhaseInfoTimedOut(info *ExecutionInfo, reason string) PhaseInfo
- func (p PhaseInfo) GetErr() *core.ExecutionError
- func (p PhaseInfo) GetInfo() *ExecutionInfo
- func (p PhaseInfo) GetOccurredAt() time.Time
- func (p PhaseInfo) GetPhase() EPhase
- func (p PhaseInfo) GetReason() string
- func (p PhaseInfo) WithInfo(i *ExecutionInfo) PhaseInfo
- func (p PhaseInfo) WithOccuredAt(t time.Time) PhaseInfo
- type TaskNodeInfo
- type TaskNodeState
- type Transition
- type TransitionType
- type WorkflowNodeInfo
- type WorkflowNodeState
Constants ¶
This section is empty.
Variables ¶
View Source
var PhaseInfoUndefined = PhaseInfo{/* contains filtered or unexported fields */}
View Source
var UnknownTransition = Transition{TransitionTypeEphemeral, PhaseInfoUndefined}
Functions ¶
This section is empty.
Types ¶
type ArrayNodeInfo ¶
type ArrayNodeInfo struct { }
type ArrayNodeState ¶
type ArrayNodeState struct { Phase v1alpha1.ArrayNodePhase TaskPhaseVersion uint32 Error *core.ExecutionError SubNodePhases bitarray.CompactArray SubNodeTaskPhases bitarray.CompactArray SubNodeRetryAttempts bitarray.CompactArray SubNodeSystemFailures bitarray.CompactArray }
type BranchNodeInfo ¶
type BranchNodeInfo struct { }
type BranchNodeState ¶
type BranchNodeState struct { FinalizedNodeID *v1alpha1.NodeID Phase v1alpha1.BranchNodePhase }
type DynamicNodeInfo ¶
type DynamicNodeInfo struct { }
type DynamicNodePhase ¶
type DynamicNodePhase uint8
type DynamicNodeState ¶
type DynamicNodeState struct { Phase v1alpha1.DynamicNodePhase Reason string Error *core.ExecutionError IsFailurePermanent bool }
type EPhase ¶
type EPhase uint8
func EPhaseString ¶
EPhaseString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func (EPhase) IsAEPhase ¶
IsAEPhase returns "true" if the value is listed in the enum definition. "false" otherwise
func (EPhase) IsTerminal ¶
type ExecutionInfo ¶
type ExecutionInfo struct { DynamicNodeInfo *DynamicNodeInfo WorkflowNodeInfo *WorkflowNodeInfo BranchNodeInfo *BranchNodeInfo Inputs *core.LiteralMap OutputInfo *OutputInfo TaskNodeInfo *TaskNodeInfo GateNodeInfo *GateNodeInfo ArrayNodeInfo *ArrayNodeInfo }
type GateNodeInfo ¶
type GateNodeInfo struct { }
type GateNodeState ¶
type GateNodeState struct { Phase v1alpha1.GateNodePhase StartedAt time.Time }
type OutputInfo ¶
type OutputInfo struct { OutputURI storage.DataReference DeckURI *storage.DataReference }
type PhaseInfo ¶
type PhaseInfo struct {
// contains filtered or unexported fields
}
func PhaseInfoDynamicRunning ¶
func PhaseInfoDynamicRunning(info *ExecutionInfo) PhaseInfo
func PhaseInfoFailingErr ¶
func PhaseInfoFailingErr(err *core.ExecutionError, info *ExecutionInfo) PhaseInfo
func PhaseInfoFailure ¶
func PhaseInfoFailure(kind core.ExecutionError_ErrorKind, code, reason string, info *ExecutionInfo) PhaseInfo
func PhaseInfoFailureErr ¶
func PhaseInfoFailureErr(err *core.ExecutionError, info *ExecutionInfo) PhaseInfo
func PhaseInfoNotReady ¶
func PhaseInfoQueued ¶
func PhaseInfoQueued(reason string, inputs *core.LiteralMap) PhaseInfo
func PhaseInfoRecovered ¶
func PhaseInfoRecovered(info *ExecutionInfo) PhaseInfo
func PhaseInfoRetryableFailure ¶
func PhaseInfoRetryableFailure(kind core.ExecutionError_ErrorKind, code, reason string, info *ExecutionInfo) PhaseInfo
func PhaseInfoRetryableFailureErr ¶
func PhaseInfoRetryableFailureErr(err *core.ExecutionError, info *ExecutionInfo) PhaseInfo
func PhaseInfoRunning ¶
func PhaseInfoRunning(info *ExecutionInfo) PhaseInfo
func PhaseInfoSkip ¶
func PhaseInfoSkip(info *ExecutionInfo, reason string) PhaseInfo
func PhaseInfoSuccess ¶
func PhaseInfoSuccess(info *ExecutionInfo) PhaseInfo
func PhaseInfoTimedOut ¶
func PhaseInfoTimedOut(info *ExecutionInfo, reason string) PhaseInfo
func (PhaseInfo) GetErr ¶
func (p PhaseInfo) GetErr() *core.ExecutionError
func (PhaseInfo) GetInfo ¶
func (p PhaseInfo) GetInfo() *ExecutionInfo
func (PhaseInfo) GetOccurredAt ¶
func (PhaseInfo) WithInfo ¶
func (p PhaseInfo) WithInfo(i *ExecutionInfo) PhaseInfo
type TaskNodeInfo ¶
type TaskNodeInfo struct {
TaskNodeMetadata *event.TaskNodeMetadata
}
Carries any information that should be sent as part of NodeEvents
type TaskNodeState ¶
type TaskNodeState struct { PluginPhase pluginCore.Phase PluginPhaseVersion uint32 PluginState []byte PluginStateVersion uint32 LastPhaseUpdatedAt time.Time PreviousNodeExecutionCheckpointURI storage.DataReference CleanupOnFailure bool }
type Transition ¶
type Transition struct {
// contains filtered or unexported fields
}
func DoTransition ¶
func DoTransition(ttype TransitionType, info PhaseInfo) Transition
func (Transition) Info ¶
func (t Transition) Info() PhaseInfo
func (Transition) Type ¶
func (t Transition) Type() TransitionType
func (Transition) WithInfo ¶
func (t Transition) WithInfo(p PhaseInfo) Transition
type TransitionType ¶
type TransitionType int
const ( TransitionTypeEphemeral TransitionType = iota // @deprecated support for Barrier type transitions has been deprecated TransitionTypeBarrier )
type WorkflowNodeInfo ¶
type WorkflowNodeInfo struct {
LaunchedWorkflowID *core.WorkflowExecutionIdentifier
}
type WorkflowNodeState ¶
type WorkflowNodeState struct { Phase v1alpha1.WorkflowNodePhase Error *core.ExecutionError }
Click to show internal directories.
Click to hide internal directories.