controller

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 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 GatewayDeletionReconciler

type GatewayDeletionReconciler interface {
	ReconcileGatewayDeletion(req reconcile.Request) error
}

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

type GatewayEventHandler

type GatewayEventHandler interface {
	CreateGateway(obj *gateway_networking_k8s_io_v1beta1.Gateway) error
	UpdateGateway(old, new *gateway_networking_k8s_io_v1beta1.Gateway) error
	DeleteGateway(obj *gateway_networking_k8s_io_v1beta1.Gateway) error
	GenericGateway(obj *gateway_networking_k8s_io_v1beta1.Gateway) error
}

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

type GatewayEventHandlerFuncs

type GatewayEventHandlerFuncs struct {
	OnCreate  func(obj *gateway_networking_k8s_io_v1beta1.Gateway) error
	OnUpdate  func(old, new *gateway_networking_k8s_io_v1beta1.Gateway) error
	OnDelete  func(obj *gateway_networking_k8s_io_v1beta1.Gateway) error
	OnGeneric func(obj *gateway_networking_k8s_io_v1beta1.Gateway) error
}

func (*GatewayEventHandlerFuncs) CreateGateway

func (*GatewayEventHandlerFuncs) DeleteGateway

func (*GatewayEventHandlerFuncs) GenericGateway

func (*GatewayEventHandlerFuncs) UpdateGateway

func (f *GatewayEventHandlerFuncs) UpdateGateway(objOld, objNew *gateway_networking_k8s_io_v1beta1.Gateway) error

type GatewayEventWatcher

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

func NewGatewayEventWatcher

func NewGatewayEventWatcher(name string, mgr manager.Manager) GatewayEventWatcher

type GatewayFinalizer

type GatewayFinalizer interface {
	GatewayReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeGateway(obj *gateway_networking_k8s_io_v1beta1.Gateway) error
}

Reconcile and finalize the Gateway Resource implemented by the user

type GatewayReconcileLoop

type GatewayReconcileLoop interface {
	RunGatewayReconciler(ctx context.Context, rec GatewayReconciler, predicates ...predicate.Predicate) error
}

func NewGatewayReconcileLoop

func NewGatewayReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) GatewayReconcileLoop

type GatewayReconciler

type GatewayReconciler interface {
	ReconcileGateway(obj *gateway_networking_k8s_io_v1beta1.Gateway) (reconcile.Result, error)
}

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

type GatewayReconcilerFuncs

type GatewayReconcilerFuncs struct {
	OnReconcileGateway         func(obj *gateway_networking_k8s_io_v1beta1.Gateway) (reconcile.Result, error)
	OnReconcileGatewayDeletion func(req reconcile.Request) error
}

func (*GatewayReconcilerFuncs) ReconcileGateway

func (*GatewayReconcilerFuncs) ReconcileGatewayDeletion

func (f *GatewayReconcilerFuncs) ReconcileGatewayDeletion(req reconcile.Request) error

type MulticlusterGatewayDeletionReconciler

type MulticlusterGatewayDeletionReconciler interface {
	ReconcileGatewayDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Gateway 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 MulticlusterGatewayReconcileLoop

type MulticlusterGatewayReconcileLoop interface {
	// AddMulticlusterGatewayReconciler adds a MulticlusterGatewayReconciler to the MulticlusterGatewayReconcileLoop.
	AddMulticlusterGatewayReconciler(ctx context.Context, rec MulticlusterGatewayReconciler, predicates ...predicate.Predicate)
}

type MulticlusterGatewayReconciler

type MulticlusterGatewayReconciler interface {
	ReconcileGateway(clusterName string, obj *gateway_networking_k8s_io_v1beta1.Gateway) (reconcile.Result, error)
}

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

type MulticlusterGatewayReconcilerFuncs

type MulticlusterGatewayReconcilerFuncs struct {
	OnReconcileGateway         func(clusterName string, obj *gateway_networking_k8s_io_v1beta1.Gateway) (reconcile.Result, error)
	OnReconcileGatewayDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterGatewayReconcilerFuncs) ReconcileGateway

func (*MulticlusterGatewayReconcilerFuncs) ReconcileGatewayDeletion

func (f *MulticlusterGatewayReconcilerFuncs) ReconcileGatewayDeletion(clusterName string, 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