v1alpha1

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTaskRunHandlerToHandler

func FromTaskRunHandlerToHandler(sync TaskRunHandler) generic.Handler

func RegisterTaskRunGeneratingHandler added in v0.4.0

func RegisterTaskRunGeneratingHandler(ctx context.Context, controller TaskRunController, apply apply.Apply,
	condition condition.Cond, name string, handler TaskRunGeneratingHandler, opts *generic.GeneratingHandlerOptions)

func RegisterTaskRunStatusHandler added in v0.4.0

func RegisterTaskRunStatusHandler(ctx context.Context, controller TaskRunController, condition condition.Cond, name string, handler TaskRunStatusHandler)

func UpdateTaskRunDeepCopyOnChange added in v0.4.0

func UpdateTaskRunDeepCopyOnChange(client TaskRunClient, obj *v1alpha1.TaskRun, handler func(obj *v1alpha1.TaskRun) (*v1alpha1.TaskRun, error)) (*v1alpha1.TaskRun, error)

Types

type Interface

type Interface interface {
	TaskRun() TaskRunController
}

func New

func New(controllerManager *generic.ControllerManager, client clientset.TektonV1alpha1Interface,
	informers informers.Interface) Interface

type TaskRunCache

type TaskRunCache interface {
	Get(namespace, name string) (*v1alpha1.TaskRun, error)
	List(namespace string, selector labels.Selector) ([]*v1alpha1.TaskRun, error)

	AddIndexer(indexName string, indexer TaskRunIndexer)
	GetByIndex(indexName, key string) ([]*v1alpha1.TaskRun, error)
}

type TaskRunClient

type TaskRunClient interface {
	Create(*v1alpha1.TaskRun) (*v1alpha1.TaskRun, error)
	Update(*v1alpha1.TaskRun) (*v1alpha1.TaskRun, error)
	UpdateStatus(*v1alpha1.TaskRun) (*v1alpha1.TaskRun, error)
	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1alpha1.TaskRun, error)
	List(namespace string, opts metav1.ListOptions) (*v1alpha1.TaskRunList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.TaskRun, err error)
}

type TaskRunController

type TaskRunController interface {
	generic.ControllerMeta
	TaskRunClient

	OnChange(ctx context.Context, name string, sync TaskRunHandler)
	OnRemove(ctx context.Context, name string, sync TaskRunHandler)
	Enqueue(namespace, name string)
	EnqueueAfter(namespace, name string, duration time.Duration)

	Cache() TaskRunCache
}

func NewTaskRunController

func NewTaskRunController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.TaskRunsGetter, informer informers.TaskRunInformer) TaskRunController

type TaskRunGeneratingHandler added in v0.4.0

type TaskRunGeneratingHandler func(obj *v1alpha1.TaskRun, status v1alpha1.TaskRunStatus) ([]runtime.Object, v1alpha1.TaskRunStatus, error)

type TaskRunHandler

type TaskRunHandler func(string, *v1alpha1.TaskRun) (*v1alpha1.TaskRun, error)

type TaskRunIndexer

type TaskRunIndexer func(obj *v1alpha1.TaskRun) ([]string, error)

type TaskRunStatusHandler added in v0.4.0

type TaskRunStatusHandler func(obj *v1alpha1.TaskRun, status v1alpha1.TaskRunStatus) (v1alpha1.TaskRunStatus, error)

Jump to

Keyboard shortcuts

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