taskrun

package
v0.39.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: Apache-2.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(c *cli.Clients, tr *v1beta1.TaskRun, opts metav1.CreateOptions, ns string) (*v1beta1.TaskRun, error)

func GetAllTaskRuns added in v0.30.0

func GetAllTaskRuns(gr schema.GroupVersionResource, opts metav1.ListOptions, c *cli.Clients, ns string, limit int, time clockwork.Clock) ([]string, error)

func GetTaskRun added in v0.30.0

func GetTaskRun(gr schema.GroupVersionResource, c *cli.Clients, trName, ns string) (*v1.TaskRun, error)

func HasScheduled

func HasScheduled(trs *v1.PipelineRunTaskRunStatus) bool

func IsFiltered

func IsFiltered(tr Run, allowed []string) bool

func PrintTaskRunDescription added in v0.30.0

func PrintTaskRunDescription(out io.Writer, c *cli.Clients, ns string, trName string, time clockwork.Clock) error

Types

type Run

type Run struct {
	Name           string
	Task           string
	Retries        int
	StartTime      *metav1.Time
	CompletionTime *metav1.Time
}

func Filter

func Filter(trs []Run, ts []string) []Run

func SortTasksBySpecOrder

func SortTasksBySpecOrder(pipelineTasks []v1.PipelineTask, pipelinesTaskRuns map[string]*v1.PipelineRunTaskRunStatus) []Run

type Runs added in v0.20.0

type Runs []Run

func (Runs) Len added in v0.20.0

func (r Runs) Len() int

func (Runs) Less added in v0.20.0

func (r Runs) Less(i, j int) bool

func (Runs) Swap added in v0.20.0

func (r Runs) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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