taskrun

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2020 License: Apache-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertFrom added in v0.10.0

func ConvertFrom(tr *v1beta1.TaskRun) *v1alpha1.TaskRun

convert v1beta1 Taskrun to v1alpha1 Taskrun to support backward compatibility

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)

It will fetch the resource based on the api available and return v1beta1 form

func GetV1beta1

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

It will fetch the resource in v1beta1 struct format

func HasScheduled

func HasScheduled(trs *v1alpha1.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
}

func Filter

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

func SortTasksBySpecOrder

func SortTasksBySpecOrder(pipelineTasks []v1beta1.PipelineTask, pipelinesTaskRuns taskRunMap) []Run

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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