task

package
v0.29.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.21.0

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

func FilterByRef

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

this will filter the taskrun which have reference to Task or ClusterTask

func Get

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

Get will fetch the task resource based on the task name

func GetAllTaskNames

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

func LastRun

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

LastRun returns the last taskrun for a given task/clustertask

func List

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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