Documentation
¶
Index ¶
- func FromTaskRunHandlerToHandler(sync TaskRunHandler) generic.Handler
- func RegisterTaskRunGeneratingHandler(ctx context.Context, controller TaskRunController, apply apply.Apply, ...)
- func RegisterTaskRunStatusHandler(ctx context.Context, controller TaskRunController, condition condition.Cond, ...)
- func UpdateTaskRunDeepCopyOnChange(client TaskRunClient, obj *v1alpha1.TaskRun, ...) (*v1alpha1.TaskRun, error)
- type Interface
- type TaskRunCache
- type TaskRunClient
- type TaskRunController
- type TaskRunGeneratingHandler
- type TaskRunHandler
- type TaskRunIndexer
- type TaskRunStatusHandler
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)
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 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 TaskRunStatusHandler ¶ added in v0.4.0
type TaskRunStatusHandler func(obj *v1alpha1.TaskRun, status v1alpha1.TaskRunStatus) (v1alpha1.TaskRunStatus, error)
Click to show internal directories.
Click to hide internal directories.