task

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist added in v0.0.12

func Exist(clientset *client.ConfigSet, name string) bool

Exist returns true if Task with provided name is available in current namespace

Types

type Task

type Task struct {
	File            string
	GenerateName    string
	Name            string
	Namespace       string
	FromLocalSource bool
}

Task represents tekton Task object

func (*Task) Clone added in v0.0.12

func (t *Task) Clone(clientset *client.ConfigSet, task *tekton.Task) (*tekton.Task, error)

Clone installs a copy of provided tekton task object with generated name suffix

func (*Task) CreateOrUpdate added in v0.0.12

func (t *Task) CreateOrUpdate(task *tekton.Task, clientset *client.ConfigSet) (*tekton.Task, error)

CreateOrUpdate creates new tekton Task object or updates existing one

func (*Task) Delete

func (t *Task) Delete(clientset *client.ConfigSet) error

func (*Task) Deploy added in v0.0.12

func (t *Task) Deploy(clientset *client.ConfigSet) (*tekton.Task, error)

Deploy accepts path (local or URL) to tekton Task manifest and installs it

func (*Task) Get

func (t *Task) Get(clientset *client.ConfigSet) (*v1beta1.Task, error)

Get return tekton Task object

func (*Task) GetObject added in v0.1.1

func (t *Task) GetObject(task *v1beta1.Task) printer.Object

GetObject converts k8s object into printable structure

func (*Task) GetTable added in v0.1.1

func (t *Task) GetTable(list *v1beta1.TaskList) printer.Table

GetTable converts k8s list instance into printable object

func (*Task) List

func (t *Task) List(clientset *client.ConfigSet) (*v1beta1.TaskList, error)

List returns k8s list object

func (*Task) SetOwner added in v0.0.12

func (t *Task) SetOwner(clientset *client.ConfigSet, owner metav1.OwnerReference) error

SetOwner updates tekton Task object with provided owner reference

Jump to

Keyboard shortcuts

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