task

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 9 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
	RegistrySecret  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) (*v1alpha1.Task, error)

Get return tekton Task object

func (*Task) List

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

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