task

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 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 []v1.TaskRun, kind string) []v1.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)

TODO: remove as all the function uses are moved to new func Get will fetch the task resource based on the task name

func GetAllTaskNames

func GetAllTaskNames(gr schema.GroupVersionResource, c *cli.Clients, ns string) ([]string, error)

func LastRun

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

LastRun returns the last taskrun for a given task/clustertask

func LastRunName added in v0.30.0

func LastRunName(cs *cli.Clients, resourceName, ns, kind string) (string, error)

LastRun returns the name of last taskrun for a given task/clustertask

Types

This section is empty.

Jump to

Keyboard shortcuts

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