Documentation
¶
Index ¶
- func NewCancelCmd(f *cmdutil.Factory) *cobra.Command
- func NewLogsCmd(f *cmdutil.Factory) *cobra.Command
- func NewRunCmd(f *cmdutil.Factory) *cobra.Command
- func NewStatusCmd(f *cmdutil.Factory) *cobra.Command
- type CancelResponse
- type LogsResponse
- type NodeStatus
- type RunProgress
- type RunStatusResponse
- type StepLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CancelResponse ¶
type CancelResponse struct {
Success bool `json:"success"`
}
CancelResponse is the response from POST /api/executions/{id}/cancel.
type LogsResponse ¶
LogsResponse is the response from GET /api/workflows/executions/{id}/logs.
type NodeStatus ¶
NodeStatus holds per-node execution status.
type RunProgress ¶
type RunProgress struct {
TotalSteps int `json:"totalSteps"`
CompletedSteps int `json:"completedSteps"`
RunningSteps int `json:"runningSteps"`
CurrentNodeID *string `json:"currentNodeId"`
CurrentNodeName *string `json:"currentNodeName"`
Percentage int `json:"percentage"`
}
RunProgress holds step-level progress counters.
type RunStatusResponse ¶
type RunStatusResponse struct {
Status string `json:"status"`
NodeStatuses []NodeStatus `json:"nodeStatuses"`
Progress RunProgress `json:"progress"`
ErrorContext any `json:"errorContext"`
}
RunStatusResponse is the response from GET /api/workflows/executions/{id}/status.
type StepLog ¶
type StepLog struct {
ID string `json:"id"`
NodeID string `json:"nodeId"`
NodeName string `json:"nodeName"`
NodeType string `json:"nodeType"`
Status string `json:"status"`
Input any `json:"input"`
Output any `json:"output"`
Error *string `json:"error"`
StartedAt string `json:"startedAt"`
CompletedAt *string `json:"completedAt"`
Duration string `json:"duration"`
}
StepLog is a single step execution log entry.
Click to show internal directories.
Click to hide internal directories.