controller

package
v0.19.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Definitions for the Kubernetes Controllers

Definitions for the multicluster Kubernetes Controllers

Definitions for the Kubernetes Controllers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterResourceDeletionReconciler

type ClusterResourceDeletionReconciler interface {
	ReconcileClusterResourceDeletion(req reconcile.Request) error
}

Reconcile deletion events for the ClusterResource Resource. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user

type ClusterResourceEventHandler

type ClusterResourceEventHandler interface {
	CreateClusterResource(obj *things_test_io_v1.ClusterResource) error
	UpdateClusterResource(old, new *things_test_io_v1.ClusterResource) error
	DeleteClusterResource(obj *things_test_io_v1.ClusterResource) error
	GenericClusterResource(obj *things_test_io_v1.ClusterResource) error
}

Handle events for the ClusterResource Resource DEPRECATED: Prefer reconciler pattern.

type ClusterResourceEventHandlerFuncs

type ClusterResourceEventHandlerFuncs struct {
	OnCreate  func(obj *things_test_io_v1.ClusterResource) error
	OnUpdate  func(old, new *things_test_io_v1.ClusterResource) error
	OnDelete  func(obj *things_test_io_v1.ClusterResource) error
	OnGeneric func(obj *things_test_io_v1.ClusterResource) error
}

func (*ClusterResourceEventHandlerFuncs) CreateClusterResource

func (*ClusterResourceEventHandlerFuncs) DeleteClusterResource

func (*ClusterResourceEventHandlerFuncs) GenericClusterResource

func (*ClusterResourceEventHandlerFuncs) UpdateClusterResource

func (f *ClusterResourceEventHandlerFuncs) UpdateClusterResource(objOld, objNew *things_test_io_v1.ClusterResource) error

type ClusterResourceEventWatcher

type ClusterResourceEventWatcher interface {
	AddEventHandler(ctx context.Context, h ClusterResourceEventHandler, predicates ...predicate.Predicate) error
}

func NewClusterResourceEventWatcher

func NewClusterResourceEventWatcher(name string, mgr manager.Manager) ClusterResourceEventWatcher

type ClusterResourceFinalizer

type ClusterResourceFinalizer interface {
	ClusterResourceReconciler

	// name of the finalizer used by this handler.
	// finalizer names should be unique for a single task
	ClusterResourceFinalizerName() string

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeClusterResource(obj *things_test_io_v1.ClusterResource) error
}

Reconcile and finalize the ClusterResource Resource implemented by the user

type ClusterResourceReconcileLoop

type ClusterResourceReconcileLoop interface {
	RunClusterResourceReconciler(ctx context.Context, rec ClusterResourceReconciler, predicates ...predicate.Predicate) error
}

func NewClusterResourceReconcileLoop

func NewClusterResourceReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) ClusterResourceReconcileLoop

type ClusterResourceReconciler

type ClusterResourceReconciler interface {
	ReconcileClusterResource(obj *things_test_io_v1.ClusterResource) (reconcile.Result, error)
}

Reconcile Upsert events for the ClusterResource Resource. implemented by the user

type ClusterResourceReconcilerFuncs

type ClusterResourceReconcilerFuncs struct {
	OnReconcileClusterResource         func(obj *things_test_io_v1.ClusterResource) (reconcile.Result, error)
	OnReconcileClusterResourceDeletion func(req reconcile.Request) error
}

func (*ClusterResourceReconcilerFuncs) ReconcileClusterResource

func (*ClusterResourceReconcilerFuncs) ReconcileClusterResourceDeletion

func (f *ClusterResourceReconcilerFuncs) ReconcileClusterResourceDeletion(req reconcile.Request) error

type MulticlusterClusterResourceDeletionReconciler

type MulticlusterClusterResourceDeletionReconciler interface {
	ReconcileClusterResourceDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the ClusterResource Resource across clusters. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user

type MulticlusterClusterResourceReconcileLoop

type MulticlusterClusterResourceReconcileLoop interface {
	// AddMulticlusterClusterResourceReconciler adds a MulticlusterClusterResourceReconciler to the MulticlusterClusterResourceReconcileLoop.
	AddMulticlusterClusterResourceReconciler(ctx context.Context, rec MulticlusterClusterResourceReconciler, predicates ...predicate.Predicate)
}

type MulticlusterClusterResourceReconciler

type MulticlusterClusterResourceReconciler interface {
	ReconcileClusterResource(clusterName string, obj *things_test_io_v1.ClusterResource) (reconcile.Result, error)
}

Reconcile Upsert events for the ClusterResource Resource across clusters. implemented by the user

type MulticlusterClusterResourceReconcilerFuncs

type MulticlusterClusterResourceReconcilerFuncs struct {
	OnReconcileClusterResource         func(clusterName string, obj *things_test_io_v1.ClusterResource) (reconcile.Result, error)
	OnReconcileClusterResourceDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterClusterResourceReconcilerFuncs) ReconcileClusterResource

func (*MulticlusterClusterResourceReconcilerFuncs) ReconcileClusterResourceDeletion

func (f *MulticlusterClusterResourceReconcilerFuncs) ReconcileClusterResourceDeletion(clusterName string, req reconcile.Request) error

type MulticlusterPaintDeletionReconciler

type MulticlusterPaintDeletionReconciler interface {
	ReconcilePaintDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Paint Resource across clusters. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user

type MulticlusterPaintReconcileLoop

type MulticlusterPaintReconcileLoop interface {
	// AddMulticlusterPaintReconciler adds a MulticlusterPaintReconciler to the MulticlusterPaintReconcileLoop.
	AddMulticlusterPaintReconciler(ctx context.Context, rec MulticlusterPaintReconciler, predicates ...predicate.Predicate)
}

type MulticlusterPaintReconciler

type MulticlusterPaintReconciler interface {
	ReconcilePaint(clusterName string, obj *things_test_io_v1.Paint) (reconcile.Result, error)
}

Reconcile Upsert events for the Paint Resource across clusters. implemented by the user

type MulticlusterPaintReconcilerFuncs

type MulticlusterPaintReconcilerFuncs struct {
	OnReconcilePaint         func(clusterName string, obj *things_test_io_v1.Paint) (reconcile.Result, error)
	OnReconcilePaintDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterPaintReconcilerFuncs) ReconcilePaint

func (f *MulticlusterPaintReconcilerFuncs) ReconcilePaint(clusterName string, obj *things_test_io_v1.Paint) (reconcile.Result, error)

func (*MulticlusterPaintReconcilerFuncs) ReconcilePaintDeletion

func (f *MulticlusterPaintReconcilerFuncs) ReconcilePaintDeletion(clusterName string, req reconcile.Request) error

type PaintDeletionReconciler

type PaintDeletionReconciler interface {
	ReconcilePaintDeletion(req reconcile.Request) error
}

Reconcile deletion events for the Paint Resource. Deletion receives a reconcile.Request as we cannot guarantee the last state of the object before being deleted. implemented by the user

type PaintEventHandler

type PaintEventHandler interface {
	CreatePaint(obj *things_test_io_v1.Paint) error
	UpdatePaint(old, new *things_test_io_v1.Paint) error
	DeletePaint(obj *things_test_io_v1.Paint) error
	GenericPaint(obj *things_test_io_v1.Paint) error
}

Handle events for the Paint Resource DEPRECATED: Prefer reconciler pattern.

type PaintEventHandlerFuncs

type PaintEventHandlerFuncs struct {
	OnCreate  func(obj *things_test_io_v1.Paint) error
	OnUpdate  func(old, new *things_test_io_v1.Paint) error
	OnDelete  func(obj *things_test_io_v1.Paint) error
	OnGeneric func(obj *things_test_io_v1.Paint) error
}

func (*PaintEventHandlerFuncs) CreatePaint

func (f *PaintEventHandlerFuncs) CreatePaint(obj *things_test_io_v1.Paint) error

func (*PaintEventHandlerFuncs) DeletePaint

func (f *PaintEventHandlerFuncs) DeletePaint(obj *things_test_io_v1.Paint) error

func (*PaintEventHandlerFuncs) GenericPaint

func (f *PaintEventHandlerFuncs) GenericPaint(obj *things_test_io_v1.Paint) error

func (*PaintEventHandlerFuncs) UpdatePaint

func (f *PaintEventHandlerFuncs) UpdatePaint(objOld, objNew *things_test_io_v1.Paint) error

type PaintEventWatcher

type PaintEventWatcher interface {
	AddEventHandler(ctx context.Context, h PaintEventHandler, predicates ...predicate.Predicate) error
}

func NewPaintEventWatcher

func NewPaintEventWatcher(name string, mgr manager.Manager) PaintEventWatcher

type PaintFinalizer

type PaintFinalizer interface {
	PaintReconciler

	// name of the finalizer used by this handler.
	// finalizer names should be unique for a single task
	PaintFinalizerName() string

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizePaint(obj *things_test_io_v1.Paint) error
}

Reconcile and finalize the Paint Resource implemented by the user

type PaintReconcileLoop

type PaintReconcileLoop interface {
	RunPaintReconciler(ctx context.Context, rec PaintReconciler, predicates ...predicate.Predicate) error
}

func NewPaintReconcileLoop

func NewPaintReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) PaintReconcileLoop

type PaintReconciler

type PaintReconciler interface {
	ReconcilePaint(obj *things_test_io_v1.Paint) (reconcile.Result, error)
}

Reconcile Upsert events for the Paint Resource. implemented by the user

type PaintReconcilerFuncs

type PaintReconcilerFuncs struct {
	OnReconcilePaint         func(obj *things_test_io_v1.Paint) (reconcile.Result, error)
	OnReconcilePaintDeletion func(req reconcile.Request) error
}

func (*PaintReconcilerFuncs) ReconcilePaint

func (*PaintReconcilerFuncs) ReconcilePaintDeletion

func (f *PaintReconcilerFuncs) ReconcilePaintDeletion(req reconcile.Request) error

Directories

Path Synopsis
Package mock_controller is a generated GoMock package.
Package mock_controller is a generated GoMock package.

Jump to

Keyboard shortcuts

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