v1alpha1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromTaskHandlerToHandler

func FromTaskHandlerToHandler(sync TaskHandler) generic.Handler

func FromTaskRunHandlerToHandler

func FromTaskRunHandlerToHandler(sync TaskRunHandler) generic.Handler

Types

type Interface

type Interface interface {
	Task() TaskController
	TaskRun() TaskRunController
}

func New

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

type TaskCache

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

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

type TaskClient

type TaskClient interface {
	Create(*v1alpha1.Task) (*v1alpha1.Task, error)
	Update(*v1alpha1.Task) (*v1alpha1.Task, error)

	Delete(namespace, name string, options *metav1.DeleteOptions) error
	Get(namespace, name string, options metav1.GetOptions) (*v1alpha1.Task, error)
	List(namespace string, opts metav1.ListOptions) (*v1alpha1.TaskList, error)
	Watch(namespace string, opts metav1.ListOptions) (watch.Interface, error)
	Patch(namespace, name string, pt types.PatchType, data []byte, subresources ...string) (result *v1alpha1.Task, err error)
}

type TaskController

type TaskController interface {
	TaskClient

	OnChange(ctx context.Context, name string, sync TaskHandler)
	OnRemove(ctx context.Context, name string, sync TaskHandler)
	Enqueue(namespace, name string)

	Cache() TaskCache

	Informer() cache.SharedIndexInformer
	GroupVersionKind() schema.GroupVersionKind

	AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
	AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
	Updater() generic.Updater
}

func NewTaskController

func NewTaskController(gvk schema.GroupVersionKind, controllerManager *generic.ControllerManager, clientGetter clientset.TasksGetter, informer informers.TaskInformer) TaskController

type TaskHandler

type TaskHandler func(string, *v1alpha1.Task) (*v1alpha1.Task, error)

func UpdateTaskOnChange

func UpdateTaskOnChange(updater generic.Updater, handler TaskHandler) TaskHandler

type TaskIndexer

type TaskIndexer func(obj *v1alpha1.Task) ([]string, error)

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 {
	TaskRunClient

	OnChange(ctx context.Context, name string, sync TaskRunHandler)
	OnRemove(ctx context.Context, name string, sync TaskRunHandler)
	Enqueue(namespace, name string)

	Cache() TaskRunCache

	Informer() cache.SharedIndexInformer
	GroupVersionKind() schema.GroupVersionKind

	AddGenericHandler(ctx context.Context, name string, handler generic.Handler)
	AddGenericRemoveHandler(ctx context.Context, name string, handler generic.Handler)
	Updater() generic.Updater
}

func NewTaskRunController

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

type TaskRunHandler

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

func UpdateTaskRunOnChange

func UpdateTaskRunOnChange(updater generic.Updater, handler TaskRunHandler) TaskRunHandler

type TaskRunIndexer

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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