taskrun

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: Apache-2.0 Imports: 11 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 Get

func Get(c *cli.Clients, trname string, opts metav1.GetOptions, ns string) (*v1beta1.TaskRun, error)

Get will fetch the taskrun resource based on the taskrun name

func HasScheduled

func HasScheduled(trs *v1beta1.PipelineRunTaskRunStatus) bool

func IsFiltered

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

func Patch

func Patch(c *cli.Clients, trname string, opts metav1.PatchOptions, ns string) (*v1beta1.TaskRun, error)

func Watch

func Watch(c *cli.Clients, opts metav1.ListOptions, ns string) (watch.Interface, 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 []v1beta1.PipelineTask, pipelinesTaskRuns taskRunMap) []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