mkstaskrun

package
v0.0.0-...-c054a23 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToTekton

func ConvertToTekton(mtr *v1alpha1.MksTaskRun) *v1beta1.TaskRun

ConvertToTekton converts a mksresource into corresponding Tekton resource definition using field to field copy from mks object to tekton object.

func Create

Create takes a mksresource object, converts it to tekton resource object using ConvertToTekton function and then calls the Create function defined in the actions package to create resource on Kubernetes/OpenShift cluster using Tekton API.

func Delete

func Delete(tcl *tconfig.Client, mtrname string, opt metav1.DeleteOptions, ns string) error

Delete deletes the Tekton resource given the name of the resource.

func Get

func Get(tcl *tconfig.Client, mtrname string, opt metav1.GetOptions, ns string) (*v1beta1.TaskRun, error)

Get returns a Tekton object given the name of the resource.

func List

func List(tcl *tconfig.Client, opt metav1.ListOptions, ns string) ([]*v1beta1.TaskRun, error)

List returns an array of Tekton object for the particular resource.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(kubeclientset kubernetes.Interface,
	mksclientset clientset.Interface,
	mksinformer informer.MksTaskRunInformer, redisClient *redis.Client) *Controller

func (*Controller) Run

func (c *Controller) Run(ch <-chan struct{})

Jump to

Keyboard shortcuts

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