controller

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 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 DestinationDeletionReconciler

type DestinationDeletionReconciler interface {
	ReconcileDestinationDeletion(req reconcile.Request) error
}

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

type DestinationEventHandler

type DestinationEventHandler interface {
	CreateDestination(obj *discovery_mesh_gloo_solo_io_v1.Destination) error
	UpdateDestination(old, new *discovery_mesh_gloo_solo_io_v1.Destination) error
	DeleteDestination(obj *discovery_mesh_gloo_solo_io_v1.Destination) error
	GenericDestination(obj *discovery_mesh_gloo_solo_io_v1.Destination) error
}

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

type DestinationEventHandlerFuncs

type DestinationEventHandlerFuncs struct {
	OnCreate  func(obj *discovery_mesh_gloo_solo_io_v1.Destination) error
	OnUpdate  func(old, new *discovery_mesh_gloo_solo_io_v1.Destination) error
	OnDelete  func(obj *discovery_mesh_gloo_solo_io_v1.Destination) error
	OnGeneric func(obj *discovery_mesh_gloo_solo_io_v1.Destination) error
}

func (*DestinationEventHandlerFuncs) CreateDestination

func (*DestinationEventHandlerFuncs) DeleteDestination

func (*DestinationEventHandlerFuncs) GenericDestination

func (*DestinationEventHandlerFuncs) UpdateDestination

func (f *DestinationEventHandlerFuncs) UpdateDestination(objOld, objNew *discovery_mesh_gloo_solo_io_v1.Destination) error

type DestinationEventWatcher

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

func NewDestinationEventWatcher

func NewDestinationEventWatcher(name string, mgr manager.Manager) DestinationEventWatcher

type DestinationFinalizer

type DestinationFinalizer interface {
	DestinationReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeDestination(obj *discovery_mesh_gloo_solo_io_v1.Destination) error
}

Reconcile and finalize the Destination Resource implemented by the user

type DestinationReconcileLoop

type DestinationReconcileLoop interface {
	RunDestinationReconciler(ctx context.Context, rec DestinationReconciler, predicates ...predicate.Predicate) error
}

func NewDestinationReconcileLoop

func NewDestinationReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) DestinationReconcileLoop

type DestinationReconciler

type DestinationReconciler interface {
	ReconcileDestination(obj *discovery_mesh_gloo_solo_io_v1.Destination) (reconcile.Result, error)
}

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

type DestinationReconcilerFuncs

type DestinationReconcilerFuncs struct {
	OnReconcileDestination         func(obj *discovery_mesh_gloo_solo_io_v1.Destination) (reconcile.Result, error)
	OnReconcileDestinationDeletion func(req reconcile.Request) error
}

func (*DestinationReconcilerFuncs) ReconcileDestination

func (*DestinationReconcilerFuncs) ReconcileDestinationDeletion

func (f *DestinationReconcilerFuncs) ReconcileDestinationDeletion(req reconcile.Request) error

type MeshDeletionReconciler

type MeshDeletionReconciler interface {
	ReconcileMeshDeletion(req reconcile.Request) error
}

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

type MeshEventHandler

type MeshEventHandler interface {
	CreateMesh(obj *discovery_mesh_gloo_solo_io_v1.Mesh) error
	UpdateMesh(old, new *discovery_mesh_gloo_solo_io_v1.Mesh) error
	DeleteMesh(obj *discovery_mesh_gloo_solo_io_v1.Mesh) error
	GenericMesh(obj *discovery_mesh_gloo_solo_io_v1.Mesh) error
}

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

type MeshEventHandlerFuncs

type MeshEventHandlerFuncs struct {
	OnCreate  func(obj *discovery_mesh_gloo_solo_io_v1.Mesh) error
	OnUpdate  func(old, new *discovery_mesh_gloo_solo_io_v1.Mesh) error
	OnDelete  func(obj *discovery_mesh_gloo_solo_io_v1.Mesh) error
	OnGeneric func(obj *discovery_mesh_gloo_solo_io_v1.Mesh) error
}

func (*MeshEventHandlerFuncs) CreateMesh

func (*MeshEventHandlerFuncs) DeleteMesh

func (*MeshEventHandlerFuncs) GenericMesh

func (*MeshEventHandlerFuncs) UpdateMesh

func (f *MeshEventHandlerFuncs) UpdateMesh(objOld, objNew *discovery_mesh_gloo_solo_io_v1.Mesh) error

type MeshEventWatcher

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

func NewMeshEventWatcher

func NewMeshEventWatcher(name string, mgr manager.Manager) MeshEventWatcher

type MeshFinalizer

type MeshFinalizer interface {
	MeshReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeMesh(obj *discovery_mesh_gloo_solo_io_v1.Mesh) error
}

Reconcile and finalize the Mesh Resource implemented by the user

type MeshReconcileLoop

type MeshReconcileLoop interface {
	RunMeshReconciler(ctx context.Context, rec MeshReconciler, predicates ...predicate.Predicate) error
}

func NewMeshReconcileLoop

func NewMeshReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) MeshReconcileLoop

type MeshReconciler

type MeshReconciler interface {
	ReconcileMesh(obj *discovery_mesh_gloo_solo_io_v1.Mesh) (reconcile.Result, error)
}

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

type MeshReconcilerFuncs

type MeshReconcilerFuncs struct {
	OnReconcileMesh         func(obj *discovery_mesh_gloo_solo_io_v1.Mesh) (reconcile.Result, error)
	OnReconcileMeshDeletion func(req reconcile.Request) error
}

func (*MeshReconcilerFuncs) ReconcileMesh

func (*MeshReconcilerFuncs) ReconcileMeshDeletion

func (f *MeshReconcilerFuncs) ReconcileMeshDeletion(req reconcile.Request) error

type MulticlusterDestinationDeletionReconciler

type MulticlusterDestinationDeletionReconciler interface {
	ReconcileDestinationDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Destination 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 MulticlusterDestinationReconcileLoop

type MulticlusterDestinationReconcileLoop interface {
	// AddMulticlusterDestinationReconciler adds a MulticlusterDestinationReconciler to the MulticlusterDestinationReconcileLoop.
	AddMulticlusterDestinationReconciler(ctx context.Context, rec MulticlusterDestinationReconciler, predicates ...predicate.Predicate)
}

type MulticlusterDestinationReconciler

type MulticlusterDestinationReconciler interface {
	ReconcileDestination(clusterName string, obj *discovery_mesh_gloo_solo_io_v1.Destination) (reconcile.Result, error)
}

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

type MulticlusterDestinationReconcilerFuncs

type MulticlusterDestinationReconcilerFuncs struct {
	OnReconcileDestination         func(clusterName string, obj *discovery_mesh_gloo_solo_io_v1.Destination) (reconcile.Result, error)
	OnReconcileDestinationDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterDestinationReconcilerFuncs) ReconcileDestination

func (*MulticlusterDestinationReconcilerFuncs) ReconcileDestinationDeletion

func (f *MulticlusterDestinationReconcilerFuncs) ReconcileDestinationDeletion(clusterName string, req reconcile.Request) error

type MulticlusterMeshDeletionReconciler

type MulticlusterMeshDeletionReconciler interface {
	ReconcileMeshDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Mesh 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 MulticlusterMeshReconcileLoop

type MulticlusterMeshReconcileLoop interface {
	// AddMulticlusterMeshReconciler adds a MulticlusterMeshReconciler to the MulticlusterMeshReconcileLoop.
	AddMulticlusterMeshReconciler(ctx context.Context, rec MulticlusterMeshReconciler, predicates ...predicate.Predicate)
}

type MulticlusterMeshReconciler

type MulticlusterMeshReconciler interface {
	ReconcileMesh(clusterName string, obj *discovery_mesh_gloo_solo_io_v1.Mesh) (reconcile.Result, error)
}

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

type MulticlusterMeshReconcilerFuncs

type MulticlusterMeshReconcilerFuncs struct {
	OnReconcileMesh         func(clusterName string, obj *discovery_mesh_gloo_solo_io_v1.Mesh) (reconcile.Result, error)
	OnReconcileMeshDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterMeshReconcilerFuncs) ReconcileMesh

func (*MulticlusterMeshReconcilerFuncs) ReconcileMeshDeletion

func (f *MulticlusterMeshReconcilerFuncs) ReconcileMeshDeletion(clusterName string, req reconcile.Request) error

type MulticlusterWorkloadDeletionReconciler

type MulticlusterWorkloadDeletionReconciler interface {
	ReconcileWorkloadDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the Workload 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 MulticlusterWorkloadReconcileLoop

type MulticlusterWorkloadReconcileLoop interface {
	// AddMulticlusterWorkloadReconciler adds a MulticlusterWorkloadReconciler to the MulticlusterWorkloadReconcileLoop.
	AddMulticlusterWorkloadReconciler(ctx context.Context, rec MulticlusterWorkloadReconciler, predicates ...predicate.Predicate)
}

type MulticlusterWorkloadReconciler

type MulticlusterWorkloadReconciler interface {
	ReconcileWorkload(clusterName string, obj *discovery_mesh_gloo_solo_io_v1.Workload) (reconcile.Result, error)
}

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

type MulticlusterWorkloadReconcilerFuncs

type MulticlusterWorkloadReconcilerFuncs struct {
	OnReconcileWorkload         func(clusterName string, obj *discovery_mesh_gloo_solo_io_v1.Workload) (reconcile.Result, error)
	OnReconcileWorkloadDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterWorkloadReconcilerFuncs) ReconcileWorkload

func (*MulticlusterWorkloadReconcilerFuncs) ReconcileWorkloadDeletion

func (f *MulticlusterWorkloadReconcilerFuncs) ReconcileWorkloadDeletion(clusterName string, req reconcile.Request) error

type WorkloadDeletionReconciler

type WorkloadDeletionReconciler interface {
	ReconcileWorkloadDeletion(req reconcile.Request) error
}

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

type WorkloadEventHandler

type WorkloadEventHandler interface {
	CreateWorkload(obj *discovery_mesh_gloo_solo_io_v1.Workload) error
	UpdateWorkload(old, new *discovery_mesh_gloo_solo_io_v1.Workload) error
	DeleteWorkload(obj *discovery_mesh_gloo_solo_io_v1.Workload) error
	GenericWorkload(obj *discovery_mesh_gloo_solo_io_v1.Workload) error
}

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

type WorkloadEventHandlerFuncs

type WorkloadEventHandlerFuncs struct {
	OnCreate  func(obj *discovery_mesh_gloo_solo_io_v1.Workload) error
	OnUpdate  func(old, new *discovery_mesh_gloo_solo_io_v1.Workload) error
	OnDelete  func(obj *discovery_mesh_gloo_solo_io_v1.Workload) error
	OnGeneric func(obj *discovery_mesh_gloo_solo_io_v1.Workload) error
}

func (*WorkloadEventHandlerFuncs) CreateWorkload

func (*WorkloadEventHandlerFuncs) DeleteWorkload

func (*WorkloadEventHandlerFuncs) GenericWorkload

func (*WorkloadEventHandlerFuncs) UpdateWorkload

func (f *WorkloadEventHandlerFuncs) UpdateWorkload(objOld, objNew *discovery_mesh_gloo_solo_io_v1.Workload) error

type WorkloadEventWatcher

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

func NewWorkloadEventWatcher

func NewWorkloadEventWatcher(name string, mgr manager.Manager) WorkloadEventWatcher

type WorkloadFinalizer

type WorkloadFinalizer interface {
	WorkloadReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeWorkload(obj *discovery_mesh_gloo_solo_io_v1.Workload) error
}

Reconcile and finalize the Workload Resource implemented by the user

type WorkloadReconcileLoop

type WorkloadReconcileLoop interface {
	RunWorkloadReconciler(ctx context.Context, rec WorkloadReconciler, predicates ...predicate.Predicate) error
}

func NewWorkloadReconcileLoop

func NewWorkloadReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) WorkloadReconcileLoop

type WorkloadReconciler

type WorkloadReconciler interface {
	ReconcileWorkload(obj *discovery_mesh_gloo_solo_io_v1.Workload) (reconcile.Result, error)
}

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

type WorkloadReconcilerFuncs

type WorkloadReconcilerFuncs struct {
	OnReconcileWorkload         func(obj *discovery_mesh_gloo_solo_io_v1.Workload) (reconcile.Result, error)
	OnReconcileWorkloadDeletion func(req reconcile.Request) error
}

func (*WorkloadReconcilerFuncs) ReconcileWorkload

func (*WorkloadReconcilerFuncs) ReconcileWorkloadDeletion

func (f *WorkloadReconcilerFuncs) ReconcileWorkloadDeletion(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