list

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupAndSortPipelineRuns

func GroupAndSortPipelineRuns(runs []PipelineRunValue) map[string][]PipelineRunValue

GroupAndSortPipelineRuns organizes PipelineRunValues by CreatorPipeline and orders them by CreationTimestamp within each group.

func NewPipelineList

func NewPipelineList(opts *generic.Options, args *Args) (*pipelineList, error)

NewPipelineList creates a new pipelineList instance.

Types

type Args

type Args struct {
	Namespace     string // Specific namespace to list pipeline runs.
	AllNamespaces bool   // Flag to list pipeline runs across all namespaces.
}

Args holds the arguments for listing pipeline runs.

type PipelineRunValue

type PipelineRunValue struct {
	Name              string
	CreationTimestamp metav1.Time
	Namespace         string
	CreatorPipeline   string
}

PipelineRunValue represents a single pipeline run.

Jump to

Keyboard shortcuts

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