task

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterByRef

func FilterByRef(taskruns []v1beta1.TaskRun, kind string) []v1beta1.TaskRun

this will filter the taskrun which have reference to Task

func Get

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

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

func GetAllTaskNames

func GetAllTaskNames(p cli.Params) ([]string, error)

func GetV1beta1

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

It will fetch the resource in v1beta1 struct format

func LastRun

func LastRun(cs *cli.Clients, task string, ns, kind string) (*v1beta1.TaskRun, error)

LastRun returns the last taskrun for a given task

func List

func List(c *cli.Clients, opts metav1.ListOptions, ns string) (*v1beta1.TaskList, error)

func SpecConvertFrom added in v0.10.0

func SpecConvertFrom(spec *v1beta1.TaskSpec) *v1alpha1.TaskSpec

this will convert v1beta1 TaskSpec to v1alpha1 TaskSpec

Types

This section is empty.

Jump to

Keyboard shortcuts

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