Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 12 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)

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, 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)

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