workflowrun

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeComponentRuns

func ExcludeComponentRuns(items []gen.WorkflowRun) []gen.WorkflowRun

ExcludeComponentRuns returns only workflow runs that do NOT have the component label.

func FilterByComponent

func FilterByComponent(items []gen.WorkflowRun, componentName string) []gen.WorkflowRun

FilterByComponent returns only workflow runs whose component label matches the given name.

func NewWorkflowRunCmd added in v1.1.0

func NewWorkflowRunCmd(f client.NewClientFunc) *cobra.Command

func PrintList

func PrintList(items []gen.WorkflowRun) error

Types

type GetParams

type GetParams struct {
	Namespace       string
	WorkflowRunName string
}

GetParams defines parameters for getting a single workflow run

func (GetParams) GetNamespace

func (p GetParams) GetNamespace() string

type ListParams

type ListParams struct {
	Namespace string
	Workflow  string
}

ListParams defines parameters for listing workflow runs

func (ListParams) GetNamespace

func (p ListParams) GetNamespace() string

type LogsParams

type LogsParams struct {
	Namespace       string
	WorkflowRunName string
	Follow          bool
	Since           string
}

LogsParams defines parameters for getting workflow run logs

func (LogsParams) GetNamespace

func (p LogsParams) GetNamespace() string

type WorkflowRun

type WorkflowRun struct {
	// contains filtered or unexported fields
}

WorkflowRun implements workflow run operations

func New

New creates a new workflow run implementation

func (*WorkflowRun) FetchAll added in v1.1.0

func (w *WorkflowRun) FetchAll(namespace, workflow string) ([]gen.WorkflowRun, error)

FetchAll fetches all workflow runs from a namespace. If workflow is non-empty, results are filtered by that workflow name.

func (*WorkflowRun) Get

func (w *WorkflowRun) Get(params GetParams) error

Get retrieves a single workflow run and outputs it as YAML

func (*WorkflowRun) List

func (w *WorkflowRun) List(params ListParams) error

List lists workflow runs in a namespace (includes component workflow runs).

func (*WorkflowRun) Logs

func (w *WorkflowRun) Logs(params LogsParams) error

Logs fetches and displays logs for a workflow run

Jump to

Keyboard shortcuts

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