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 MulticlusterTrafficTargetDeletionReconciler

type MulticlusterTrafficTargetDeletionReconciler interface {
	ReconcileTrafficTargetDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the TrafficTarget 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 MulticlusterTrafficTargetReconcileLoop

type MulticlusterTrafficTargetReconcileLoop interface {
	// AddMulticlusterTrafficTargetReconciler adds a MulticlusterTrafficTargetReconciler to the MulticlusterTrafficTargetReconcileLoop.
	AddMulticlusterTrafficTargetReconciler(ctx context.Context, rec MulticlusterTrafficTargetReconciler, predicates ...predicate.Predicate)
}

type MulticlusterTrafficTargetReconciler

type MulticlusterTrafficTargetReconciler interface {
	ReconcileTrafficTarget(clusterName string, obj *access_smi_spec_io_v1alpha2.TrafficTarget) (reconcile.Result, error)
}

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

type MulticlusterTrafficTargetReconcilerFuncs

type MulticlusterTrafficTargetReconcilerFuncs struct {
	OnReconcileTrafficTarget         func(clusterName string, obj *access_smi_spec_io_v1alpha2.TrafficTarget) (reconcile.Result, error)
	OnReconcileTrafficTargetDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterTrafficTargetReconcilerFuncs) ReconcileTrafficTarget

func (*MulticlusterTrafficTargetReconcilerFuncs) ReconcileTrafficTargetDeletion

func (f *MulticlusterTrafficTargetReconcilerFuncs) ReconcileTrafficTargetDeletion(clusterName string, req reconcile.Request) error

type TrafficTargetDeletionReconciler

type TrafficTargetDeletionReconciler interface {
	ReconcileTrafficTargetDeletion(req reconcile.Request) error
}

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

type TrafficTargetEventHandler

type TrafficTargetEventHandler interface {
	CreateTrafficTarget(obj *access_smi_spec_io_v1alpha2.TrafficTarget) error
	UpdateTrafficTarget(old, new *access_smi_spec_io_v1alpha2.TrafficTarget) error
	DeleteTrafficTarget(obj *access_smi_spec_io_v1alpha2.TrafficTarget) error
	GenericTrafficTarget(obj *access_smi_spec_io_v1alpha2.TrafficTarget) error
}

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

type TrafficTargetEventHandlerFuncs

type TrafficTargetEventHandlerFuncs struct {
	OnCreate  func(obj *access_smi_spec_io_v1alpha2.TrafficTarget) error
	OnUpdate  func(old, new *access_smi_spec_io_v1alpha2.TrafficTarget) error
	OnDelete  func(obj *access_smi_spec_io_v1alpha2.TrafficTarget) error
	OnGeneric func(obj *access_smi_spec_io_v1alpha2.TrafficTarget) error
}

func (*TrafficTargetEventHandlerFuncs) CreateTrafficTarget

func (*TrafficTargetEventHandlerFuncs) DeleteTrafficTarget

func (*TrafficTargetEventHandlerFuncs) GenericTrafficTarget

func (*TrafficTargetEventHandlerFuncs) UpdateTrafficTarget

func (f *TrafficTargetEventHandlerFuncs) UpdateTrafficTarget(objOld, objNew *access_smi_spec_io_v1alpha2.TrafficTarget) error

type TrafficTargetEventWatcher

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

func NewTrafficTargetEventWatcher

func NewTrafficTargetEventWatcher(name string, mgr manager.Manager) TrafficTargetEventWatcher

type TrafficTargetFinalizer

type TrafficTargetFinalizer interface {
	TrafficTargetReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeTrafficTarget(obj *access_smi_spec_io_v1alpha2.TrafficTarget) error
}

Reconcile and finalize the TrafficTarget Resource implemented by the user

type TrafficTargetReconcileLoop

type TrafficTargetReconcileLoop interface {
	RunTrafficTargetReconciler(ctx context.Context, rec TrafficTargetReconciler, predicates ...predicate.Predicate) error
}

func NewTrafficTargetReconcileLoop

func NewTrafficTargetReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) TrafficTargetReconcileLoop

type TrafficTargetReconciler

type TrafficTargetReconciler interface {
	ReconcileTrafficTarget(obj *access_smi_spec_io_v1alpha2.TrafficTarget) (reconcile.Result, error)
}

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

type TrafficTargetReconcilerFuncs

type TrafficTargetReconcilerFuncs struct {
	OnReconcileTrafficTarget         func(obj *access_smi_spec_io_v1alpha2.TrafficTarget) (reconcile.Result, error)
	OnReconcileTrafficTargetDeletion func(req reconcile.Request) error
}

func (*TrafficTargetReconcilerFuncs) ReconcileTrafficTarget

func (*TrafficTargetReconcilerFuncs) ReconcileTrafficTargetDeletion

func (f *TrafficTargetReconcilerFuncs) ReconcileTrafficTargetDeletion(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