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 MulticlusterTelemetryDeletionReconciler

type MulticlusterTelemetryDeletionReconciler interface {
	ReconcileTelemetryDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Telemetry 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 MulticlusterTelemetryReconcileLoop

type MulticlusterTelemetryReconcileLoop interface {
	// AddMulticlusterTelemetryReconciler adds a MulticlusterTelemetryReconciler to the MulticlusterTelemetryReconcileLoop.
	AddMulticlusterTelemetryReconciler(ctx context.Context, rec MulticlusterTelemetryReconciler, predicates ...predicate.Predicate)
}

type MulticlusterTelemetryReconciler

type MulticlusterTelemetryReconciler interface {
	ReconcileTelemetry(clusterName string, obj *telemetry_istio_io_v1alpha1.Telemetry) (reconcile.Result, error)
}

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

type MulticlusterTelemetryReconcilerFuncs

type MulticlusterTelemetryReconcilerFuncs struct {
	OnReconcileTelemetry         func(clusterName string, obj *telemetry_istio_io_v1alpha1.Telemetry) (reconcile.Result, error)
	OnReconcileTelemetryDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterTelemetryReconcilerFuncs) ReconcileTelemetry

func (*MulticlusterTelemetryReconcilerFuncs) ReconcileTelemetryDeletion

func (f *MulticlusterTelemetryReconcilerFuncs) ReconcileTelemetryDeletion(clusterName string, req reconcile.Request) error

type TelemetryDeletionReconciler

type TelemetryDeletionReconciler interface {
	ReconcileTelemetryDeletion(req reconcile.Request) error
}

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

type TelemetryEventHandler

type TelemetryEventHandler interface {
	CreateTelemetry(obj *telemetry_istio_io_v1alpha1.Telemetry) error
	UpdateTelemetry(old, new *telemetry_istio_io_v1alpha1.Telemetry) error
	DeleteTelemetry(obj *telemetry_istio_io_v1alpha1.Telemetry) error
	GenericTelemetry(obj *telemetry_istio_io_v1alpha1.Telemetry) error
}

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

type TelemetryEventHandlerFuncs

type TelemetryEventHandlerFuncs struct {
	OnCreate  func(obj *telemetry_istio_io_v1alpha1.Telemetry) error
	OnUpdate  func(old, new *telemetry_istio_io_v1alpha1.Telemetry) error
	OnDelete  func(obj *telemetry_istio_io_v1alpha1.Telemetry) error
	OnGeneric func(obj *telemetry_istio_io_v1alpha1.Telemetry) error
}

func (*TelemetryEventHandlerFuncs) CreateTelemetry

func (*TelemetryEventHandlerFuncs) DeleteTelemetry

func (*TelemetryEventHandlerFuncs) GenericTelemetry

func (*TelemetryEventHandlerFuncs) UpdateTelemetry

func (f *TelemetryEventHandlerFuncs) UpdateTelemetry(objOld, objNew *telemetry_istio_io_v1alpha1.Telemetry) error

type TelemetryEventWatcher

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

func NewTelemetryEventWatcher

func NewTelemetryEventWatcher(name string, mgr manager.Manager) TelemetryEventWatcher

type TelemetryFinalizer

type TelemetryFinalizer interface {
	TelemetryReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeTelemetry(obj *telemetry_istio_io_v1alpha1.Telemetry) error
}

Reconcile and finalize the Telemetry Resource implemented by the user

type TelemetryReconcileLoop

type TelemetryReconcileLoop interface {
	RunTelemetryReconciler(ctx context.Context, rec TelemetryReconciler, predicates ...predicate.Predicate) error
}

func NewTelemetryReconcileLoop

func NewTelemetryReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) TelemetryReconcileLoop

type TelemetryReconciler

type TelemetryReconciler interface {
	ReconcileTelemetry(obj *telemetry_istio_io_v1alpha1.Telemetry) (reconcile.Result, error)
}

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

type TelemetryReconcilerFuncs

type TelemetryReconcilerFuncs struct {
	OnReconcileTelemetry         func(obj *telemetry_istio_io_v1alpha1.Telemetry) (reconcile.Result, error)
	OnReconcileTelemetryDeletion func(req reconcile.Request) error
}

func (*TelemetryReconcilerFuncs) ReconcileTelemetry

func (*TelemetryReconcilerFuncs) ReconcileTelemetryDeletion

func (f *TelemetryReconcilerFuncs) ReconcileTelemetryDeletion(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