run

package
v0.14.1 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2026 License: MIT Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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"`
	TransactionHashes []TransactionHashEntry `json:"transactionHashes"`
}

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.

type TransactionHashEntry added in v0.11.0

type TransactionHashEntry struct {
	Hash           string  `json:"hash"`
	NodeID         string  `json:"nodeId"`
	NodeName       string  `json:"nodeName"`
	ChainID        *int    `json:"chainId,omitempty"`
	Network        *string `json:"network,omitempty"`
	IterationIndex *int    `json:"iterationIndex,omitempty"`
}

TransactionHashEntry is an on-chain transaction broadcast by a workflow step. IterationIndex is set only for hashes produced inside a For-Each iteration.

Jump to

Keyboard shortcuts

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