controller

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 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 MulticlusterWasmPluginDeletionReconciler

type MulticlusterWasmPluginDeletionReconciler interface {
	ReconcileWasmPluginDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the WasmPlugin 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 MulticlusterWasmPluginReconcileLoop

type MulticlusterWasmPluginReconcileLoop interface {
	// AddMulticlusterWasmPluginReconciler adds a MulticlusterWasmPluginReconciler to the MulticlusterWasmPluginReconcileLoop.
	AddMulticlusterWasmPluginReconciler(ctx context.Context, rec MulticlusterWasmPluginReconciler, predicates ...predicate.Predicate)
}

type MulticlusterWasmPluginReconciler

type MulticlusterWasmPluginReconciler interface {
	ReconcileWasmPlugin(clusterName string, obj *extensions_istio_io_v1alpha1.WasmPlugin) (reconcile.Result, error)
}

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

type MulticlusterWasmPluginReconcilerFuncs

type MulticlusterWasmPluginReconcilerFuncs struct {
	OnReconcileWasmPlugin         func(clusterName string, obj *extensions_istio_io_v1alpha1.WasmPlugin) (reconcile.Result, error)
	OnReconcileWasmPluginDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterWasmPluginReconcilerFuncs) ReconcileWasmPlugin

func (*MulticlusterWasmPluginReconcilerFuncs) ReconcileWasmPluginDeletion

func (f *MulticlusterWasmPluginReconcilerFuncs) ReconcileWasmPluginDeletion(clusterName string, req reconcile.Request) error

type WasmPluginDeletionReconciler

type WasmPluginDeletionReconciler interface {
	ReconcileWasmPluginDeletion(req reconcile.Request) error
}

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

type WasmPluginEventHandler

type WasmPluginEventHandler interface {
	CreateWasmPlugin(obj *extensions_istio_io_v1alpha1.WasmPlugin) error
	UpdateWasmPlugin(old, new *extensions_istio_io_v1alpha1.WasmPlugin) error
	DeleteWasmPlugin(obj *extensions_istio_io_v1alpha1.WasmPlugin) error
	GenericWasmPlugin(obj *extensions_istio_io_v1alpha1.WasmPlugin) error
}

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

type WasmPluginEventHandlerFuncs

type WasmPluginEventHandlerFuncs struct {
	OnCreate  func(obj *extensions_istio_io_v1alpha1.WasmPlugin) error
	OnUpdate  func(old, new *extensions_istio_io_v1alpha1.WasmPlugin) error
	OnDelete  func(obj *extensions_istio_io_v1alpha1.WasmPlugin) error
	OnGeneric func(obj *extensions_istio_io_v1alpha1.WasmPlugin) error
}

func (*WasmPluginEventHandlerFuncs) CreateWasmPlugin

func (*WasmPluginEventHandlerFuncs) DeleteWasmPlugin

func (*WasmPluginEventHandlerFuncs) GenericWasmPlugin

func (*WasmPluginEventHandlerFuncs) UpdateWasmPlugin

func (f *WasmPluginEventHandlerFuncs) UpdateWasmPlugin(objOld, objNew *extensions_istio_io_v1alpha1.WasmPlugin) error

type WasmPluginEventWatcher

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

func NewWasmPluginEventWatcher

func NewWasmPluginEventWatcher(name string, mgr manager.Manager) WasmPluginEventWatcher

type WasmPluginFinalizer

type WasmPluginFinalizer interface {
	WasmPluginReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeWasmPlugin(obj *extensions_istio_io_v1alpha1.WasmPlugin) error
}

Reconcile and finalize the WasmPlugin Resource implemented by the user

type WasmPluginReconcileLoop

type WasmPluginReconcileLoop interface {
	RunWasmPluginReconciler(ctx context.Context, rec WasmPluginReconciler, predicates ...predicate.Predicate) error
}

func NewWasmPluginReconcileLoop

func NewWasmPluginReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) WasmPluginReconcileLoop

type WasmPluginReconciler

type WasmPluginReconciler interface {
	ReconcileWasmPlugin(obj *extensions_istio_io_v1alpha1.WasmPlugin) (reconcile.Result, error)
}

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

type WasmPluginReconcilerFuncs

type WasmPluginReconcilerFuncs struct {
	OnReconcileWasmPlugin         func(obj *extensions_istio_io_v1alpha1.WasmPlugin) (reconcile.Result, error)
	OnReconcileWasmPluginDeletion func(req reconcile.Request) error
}

func (*WasmPluginReconcilerFuncs) ReconcileWasmPlugin

func (*WasmPluginReconcilerFuncs) ReconcileWasmPluginDeletion

func (f *WasmPluginReconcilerFuncs) ReconcileWasmPluginDeletion(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