Documentation
¶
Index ¶
- func AssignRanks(id string, depth int, nodes map[string]GraphNode, ...)
- func GetAllLogKeys(node GraphNode) []string
- func GetLogKey(node GraphNode) string
- func HasLogs(node GraphNode) bool
- func NodeName(node GraphNode) string
- func ReUnmarshal[T any](data any) (T, error)
- type AdjacencyEntry
- type AsyncChainExecutableResponse
- type AsyncExecutableResponse
- type ChildChainExecutableResponse
- type ChildExecutableResponse
- type ChildPipelineExecutionDetails
- type ChildrenExecutableResponse
- type DelegateInfo
- type ExecutableResponse
- type ExecutionFull
- type ExecutionGraph
- type FacilitatorExecutableResponse
- type FailureInfo
- type GraphNode
- type LogUnit
- type SkipTaskExecutableResponse
- type StepDetails
- type SyncExecutableResponse
- type TaskChainExecutableResponse
- type TaskExecutableResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssignRanks ¶
func GetAllLogKeys ¶
GetAllLogKeys returns all log keys from executableResponses[0].
func ReUnmarshal ¶
Types ¶
type AdjacencyEntry ¶
type AsyncExecutableResponse ¶
type AsyncExecutableResponse struct {
CallbackIDs []string `json:"callbackIds"`
LogKeys []string `json:"logKeys"`
Units []string `json:"units"`
Status string `json:"status"`
Timeout int64 `json:"timeout,string"`
ShouldRemoveAlreadyProcessedNotifyIDs bool `json:"shouldRemoveAlreadyProcessedNotifyIds"`
}
type ChildExecutableResponse ¶
type DelegateInfo ¶
type DelegateInfo struct {
Name string `json:"name"`
}
type ExecutableResponse ¶
type ExecutableResponse struct {
ResponseCase string `json:"responseCase"`
Task *TaskExecutableResponse `json:"task"`
TaskChain *TaskChainExecutableResponse `json:"taskChain"`
Async *AsyncExecutableResponse `json:"async"`
Sync *SyncExecutableResponse `json:"sync"`
Child *ChildExecutableResponse `json:"child"`
Children *ChildrenExecutableResponse `json:"children"`
ChildChain *ChildChainExecutableResponse `json:"childChain"`
AsyncChain *AsyncChainExecutableResponse `json:"asyncChain"`
SkipTask *SkipTaskExecutableResponse `json:"skipTask"`
Facilitator *FacilitatorExecutableResponse `json:"facilitator"`
}
type ExecutionFull ¶
type ExecutionFull struct {
Graph ExecutionGraph
PipelineStatus string
StartTs int64
EndTs int64
}
func FetchExecutionFull ¶
func FetchExecutionFull(ctx *cmdctx.Ctx, execId string) (ExecutionFull, error)
FetchExecutionFull fetches the execution graph and pipeline-level status in one call.
type ExecutionGraph ¶
type ExecutionGraph struct {
RootNodeID string `json:"rootNodeId"`
NodeMap map[string]GraphNode `json:"nodeMap"`
NodeAdjacencyListMap map[string]AdjacencyEntry `json:"nodeAdjacencyListMap"`
}
func FetchExecutionGraph ¶
func FetchExecutionGraph(ctx *cmdctx.Ctx, execId string) (ExecutionGraph, error)
type FailureInfo ¶
type FailureInfo struct {
Message string `json:"message"`
}
type GraphNode ¶
type GraphNode struct {
UUID string `json:"uuid"`
SetupID string `json:"setupId"`
Identifier string `json:"identifier"`
Name string `json:"name"`
BaseFQN string `json:"baseFqn"`
StepType string `json:"stepType"`
Status string `json:"status"`
LogBaseKey string `json:"logBaseKey"`
StartTs int64 `json:"startTs"`
EndTs int64 `json:"endTs"`
DelegateInfoList []DelegateInfo `json:"delegateInfoList"`
FailureInfo FailureInfo `json:"failureInfo"`
StepDetails StepDetails `json:"stepDetails"`
StepParameters json.RawMessage `json:"stepParameters"`
Outcomes map[string]any `json:"outcomes"`
ExecutableResponses []ExecutableResponse `json:"executableResponses"`
Raw json.RawMessage `json:"-"` // full wire JSON, populated by FetchExecutionGraph
Rank int // computed, not from JSON
Depth int // computed, not from JSON
}
func WalkNodes ¶
func WalkNodes(g ExecutionGraph, skipTypes map[string]bool) []GraphNode
WalkNodes traverses the execution graph in display order and returns a flat slice of GraphNode values with Depth set. Nodes whose StepType is in skipTypes are not included in the output but their children are still walked at the same depth.
func (GraphNode) ToMap ¶
ToMap returns the full wire JSON of the node as a map, suitable for output rendering. Computed fields (Rank, Depth) are included. Callers may patch additional enrichments on top.
func (*GraphNode) UnmarshalJSON ¶
UnmarshalJSON captures the raw bytes for full-fidelity JSON output, then decodes the typed fields the CLI actually needs.
type LogUnit ¶
LogUnit pairs a log service key with its human-readable section label.
func GetLogUnits ¶
GetLogUnits returns the ordered log units for a node, drawn from executableResponses[0] only (matching the web-UI behaviour). Units come from the parallel units[] array; if that is shorter than logKeys[], synthetic labels ("Section 1", "Section 2", …) are used for the remainder.
type SkipTaskExecutableResponse ¶
type SkipTaskExecutableResponse struct {
Message string `json:"message"`
}
type StepDetails ¶
type StepDetails struct {
ChildPipelineExecutionDetails ChildPipelineExecutionDetails `json:"childPipelineExecutionDetails"`
}