controller

package
v0.1.20 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 MulticlusterTrafficSplitDeletionReconciler

type MulticlusterTrafficSplitDeletionReconciler interface {
	ReconcileTrafficSplitDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the TrafficSplit 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 MulticlusterTrafficSplitReconcileLoop

type MulticlusterTrafficSplitReconcileLoop interface {
	// AddMulticlusterTrafficSplitReconciler adds a MulticlusterTrafficSplitReconciler to the MulticlusterTrafficSplitReconcileLoop.
	AddMulticlusterTrafficSplitReconciler(ctx context.Context, rec MulticlusterTrafficSplitReconciler, predicates ...predicate.Predicate)
}

type MulticlusterTrafficSplitReconciler

type MulticlusterTrafficSplitReconciler interface {
	ReconcileTrafficSplit(clusterName string, obj *split_smi_spec_io_v1alpha2.TrafficSplit) (reconcile.Result, error)
}

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

type MulticlusterTrafficSplitReconcilerFuncs

type MulticlusterTrafficSplitReconcilerFuncs struct {
	OnReconcileTrafficSplit         func(clusterName string, obj *split_smi_spec_io_v1alpha2.TrafficSplit) (reconcile.Result, error)
	OnReconcileTrafficSplitDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterTrafficSplitReconcilerFuncs) ReconcileTrafficSplit

func (*MulticlusterTrafficSplitReconcilerFuncs) ReconcileTrafficSplitDeletion

func (f *MulticlusterTrafficSplitReconcilerFuncs) ReconcileTrafficSplitDeletion(clusterName string, req reconcile.Request) error

type TrafficSplitDeletionReconciler

type TrafficSplitDeletionReconciler interface {
	ReconcileTrafficSplitDeletion(req reconcile.Request) error
}

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

type TrafficSplitEventHandler

type TrafficSplitEventHandler interface {
	CreateTrafficSplit(obj *split_smi_spec_io_v1alpha2.TrafficSplit) error
	UpdateTrafficSplit(old, new *split_smi_spec_io_v1alpha2.TrafficSplit) error
	DeleteTrafficSplit(obj *split_smi_spec_io_v1alpha2.TrafficSplit) error
	GenericTrafficSplit(obj *split_smi_spec_io_v1alpha2.TrafficSplit) error
}

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

type TrafficSplitEventHandlerFuncs

type TrafficSplitEventHandlerFuncs struct {
	OnCreate  func(obj *split_smi_spec_io_v1alpha2.TrafficSplit) error
	OnUpdate  func(old, new *split_smi_spec_io_v1alpha2.TrafficSplit) error
	OnDelete  func(obj *split_smi_spec_io_v1alpha2.TrafficSplit) error
	OnGeneric func(obj *split_smi_spec_io_v1alpha2.TrafficSplit) error
}

func (*TrafficSplitEventHandlerFuncs) CreateTrafficSplit

func (*TrafficSplitEventHandlerFuncs) DeleteTrafficSplit

func (*TrafficSplitEventHandlerFuncs) GenericTrafficSplit

func (*TrafficSplitEventHandlerFuncs) UpdateTrafficSplit

func (f *TrafficSplitEventHandlerFuncs) UpdateTrafficSplit(objOld, objNew *split_smi_spec_io_v1alpha2.TrafficSplit) error

type TrafficSplitEventWatcher

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

func NewTrafficSplitEventWatcher

func NewTrafficSplitEventWatcher(name string, mgr manager.Manager) TrafficSplitEventWatcher

type TrafficSplitFinalizer

type TrafficSplitFinalizer interface {
	TrafficSplitReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeTrafficSplit(obj *split_smi_spec_io_v1alpha2.TrafficSplit) error
}

Reconcile and finalize the TrafficSplit Resource implemented by the user

type TrafficSplitReconcileLoop

type TrafficSplitReconcileLoop interface {
	RunTrafficSplitReconciler(ctx context.Context, rec TrafficSplitReconciler, predicates ...predicate.Predicate) error
}

func NewTrafficSplitReconcileLoop

func NewTrafficSplitReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) TrafficSplitReconcileLoop

type TrafficSplitReconciler

type TrafficSplitReconciler interface {
	ReconcileTrafficSplit(obj *split_smi_spec_io_v1alpha2.TrafficSplit) (reconcile.Result, error)
}

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

type TrafficSplitReconcilerFuncs

type TrafficSplitReconcilerFuncs struct {
	OnReconcileTrafficSplit         func(obj *split_smi_spec_io_v1alpha2.TrafficSplit) (reconcile.Result, error)
	OnReconcileTrafficSplitDeletion func(req reconcile.Request) error
}

func (*TrafficSplitReconcilerFuncs) ReconcileTrafficSplit

func (*TrafficSplitReconcilerFuncs) ReconcileTrafficSplitDeletion

func (f *TrafficSplitReconcilerFuncs) ReconcileTrafficSplitDeletion(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