run

package
v0.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCancelCmd

func NewCancelCmd(f *cmdutil.Factory) *cobra.Command

func NewLogsCmd

func NewLogsCmd(f *cmdutil.Factory) *cobra.Command

func NewRunCmd

func NewRunCmd(f *cmdutil.Factory) *cobra.Command

func NewStatusCmd

func NewStatusCmd(f *cmdutil.Factory) *cobra.Command

Types

type CancelResponse

type CancelResponse struct {
	Success bool `json:"success"`
}

CancelResponse is the response from POST /api/executions/{id}/cancel.

type LogsResponse

type LogsResponse struct {
	Execution any       `json:"execution"`
	Logs      []StepLog `json:"logs"`
}

LogsResponse is the response from GET /api/workflows/executions/{id}/logs.

type NodeStatus

type NodeStatus struct {
	NodeID string `json:"nodeId"`
	Status string `json:"status"`
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL