taskrun

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: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resource added in v0.0.12

type Resource struct {
	Name         string
	Owned        bool
	ClusterScope bool
}

Resource is a generic structure to describe k8s resource

type Source added in v0.0.12

type Source struct {
	Path     string
	Revision string
}

Source contains path (local or URL) to function sources. May contain revision if path is Git repository.

type TaskRun

type TaskRun struct {
	Function         Source
	Name             string
	Namespace        string
	Params           []string
	PipelineResource Resource
	Task             Resource
	Timeout          string
	Wait             bool
}

TaskRun represents tekton TaskRun object

func (*TaskRun) Delete

func (tr *TaskRun) Delete(clientset *client.ConfigSet) error

func (*TaskRun) Deploy

func (tr *TaskRun) Deploy(clientset *client.ConfigSet) (string, error)

Deploy prepares and verifies tekton resources (Task and PipelineResource) required for TaskRun, creates TaskRun object and optionally waits for its result. Deploy function returns resulting image URL and build error.

func (*TaskRun) Get

func (tr *TaskRun) Get(clientset *client.ConfigSet) (*v1beta1.TaskRun, error)

Get returns k8s object

func (*TaskRun) GetObject added in v0.1.1

func (tr *TaskRun) GetObject(taskrun *v1beta1.TaskRun) printer.Object

GetObject converts k8s object into printable structure

func (*TaskRun) GetTable added in v0.1.1

func (tr *TaskRun) GetTable(list *v1beta1.TaskRunList) printer.Table

GetTable converts k8s list instance into printable object

func (*TaskRun) List

func (tr *TaskRun) List(clientset *client.ConfigSet) (*v1beta1.TaskRunList, error)

List returns k8s list object

func (*TaskRun) SetOwner added in v0.0.12

func (tr *TaskRun) SetOwner(clientset *client.ConfigSet, owner metav1.OwnerReference) error

SetOwner updates TaskRun object with provided owner reference

Jump to

Keyboard shortcuts

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