Documentation
¶
Index ¶
- func ExcludeComponentRuns(items []gen.WorkflowRun) []gen.WorkflowRun
- func FilterByComponent(items []gen.WorkflowRun, componentName string) []gen.WorkflowRun
- func NewWorkflowRunCmd(f client.NewClientFunc) *cobra.Command
- func PrintList(items []gen.WorkflowRun) error
- type GetParams
- type ListParams
- type LogsParams
- type WorkflowRun
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 ¶
GetParams defines parameters for getting a single workflow run
func (GetParams) GetNamespace ¶
type ListParams ¶
ListParams defines parameters for listing workflow runs
func (ListParams) GetNamespace ¶
func (p ListParams) GetNamespace() string
type LogsParams ¶
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 (*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