controller

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 11 Imported by: 1

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 AuthorizationPolicyDeletionReconciler

type AuthorizationPolicyDeletionReconciler interface {
	ReconcileAuthorizationPolicyDeletion(req reconcile.Request) error
}

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

type AuthorizationPolicyEventHandler

type AuthorizationPolicyEventHandler interface {
	CreateAuthorizationPolicy(obj *security_istio_io_v1beta1.AuthorizationPolicy) error
	UpdateAuthorizationPolicy(old, new *security_istio_io_v1beta1.AuthorizationPolicy) error
	DeleteAuthorizationPolicy(obj *security_istio_io_v1beta1.AuthorizationPolicy) error
	GenericAuthorizationPolicy(obj *security_istio_io_v1beta1.AuthorizationPolicy) error
}

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

type AuthorizationPolicyEventHandlerFuncs

type AuthorizationPolicyEventHandlerFuncs struct {
	OnCreate  func(obj *security_istio_io_v1beta1.AuthorizationPolicy) error
	OnUpdate  func(old, new *security_istio_io_v1beta1.AuthorizationPolicy) error
	OnDelete  func(obj *security_istio_io_v1beta1.AuthorizationPolicy) error
	OnGeneric func(obj *security_istio_io_v1beta1.AuthorizationPolicy) error
}

func (*AuthorizationPolicyEventHandlerFuncs) CreateAuthorizationPolicy

func (*AuthorizationPolicyEventHandlerFuncs) DeleteAuthorizationPolicy

func (*AuthorizationPolicyEventHandlerFuncs) GenericAuthorizationPolicy

func (*AuthorizationPolicyEventHandlerFuncs) UpdateAuthorizationPolicy

func (f *AuthorizationPolicyEventHandlerFuncs) UpdateAuthorizationPolicy(objOld, objNew *security_istio_io_v1beta1.AuthorizationPolicy) error

type AuthorizationPolicyEventWatcher

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

func NewAuthorizationPolicyEventWatcher

func NewAuthorizationPolicyEventWatcher(name string, mgr manager.Manager) AuthorizationPolicyEventWatcher

type AuthorizationPolicyFinalizer

type AuthorizationPolicyFinalizer interface {
	AuthorizationPolicyReconciler

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

	// finalize the object before it is deleted.
	// Watchers created with a finalizing handler will a
	FinalizeAuthorizationPolicy(obj *security_istio_io_v1beta1.AuthorizationPolicy) error
}

Reconcile and finalize the AuthorizationPolicy Resource implemented by the user

type AuthorizationPolicyReconcileLoop

type AuthorizationPolicyReconcileLoop interface {
	RunAuthorizationPolicyReconciler(ctx context.Context, rec AuthorizationPolicyReconciler, predicates ...predicate.Predicate) error
}

func NewAuthorizationPolicyReconcileLoop

func NewAuthorizationPolicyReconcileLoop(name string, mgr manager.Manager, options reconcile.Options) AuthorizationPolicyReconcileLoop

type AuthorizationPolicyReconciler

type AuthorizationPolicyReconciler interface {
	ReconcileAuthorizationPolicy(obj *security_istio_io_v1beta1.AuthorizationPolicy) (reconcile.Result, error)
}

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

type AuthorizationPolicyReconcilerFuncs

type AuthorizationPolicyReconcilerFuncs struct {
	OnReconcileAuthorizationPolicy         func(obj *security_istio_io_v1beta1.AuthorizationPolicy) (reconcile.Result, error)
	OnReconcileAuthorizationPolicyDeletion func(req reconcile.Request) error
}

func (*AuthorizationPolicyReconcilerFuncs) ReconcileAuthorizationPolicy

func (*AuthorizationPolicyReconcilerFuncs) ReconcileAuthorizationPolicyDeletion

func (f *AuthorizationPolicyReconcilerFuncs) ReconcileAuthorizationPolicyDeletion(req reconcile.Request) error

type MulticlusterAuthorizationPolicyDeletionReconciler

type MulticlusterAuthorizationPolicyDeletionReconciler interface {
	ReconcileAuthorizationPolicyDeletion(clusterName string, req reconcile.Request) error
}

Reconcile deletion events for the AuthorizationPolicy 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 MulticlusterAuthorizationPolicyReconcileLoop

type MulticlusterAuthorizationPolicyReconcileLoop interface {
	// AddMulticlusterAuthorizationPolicyReconciler adds a MulticlusterAuthorizationPolicyReconciler to the MulticlusterAuthorizationPolicyReconcileLoop.
	AddMulticlusterAuthorizationPolicyReconciler(ctx context.Context, rec MulticlusterAuthorizationPolicyReconciler, predicates ...predicate.Predicate)
}

type MulticlusterAuthorizationPolicyReconciler

type MulticlusterAuthorizationPolicyReconciler interface {
	ReconcileAuthorizationPolicy(clusterName string, obj *security_istio_io_v1beta1.AuthorizationPolicy) (reconcile.Result, error)
}

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

type MulticlusterAuthorizationPolicyReconcilerFuncs

type MulticlusterAuthorizationPolicyReconcilerFuncs struct {
	OnReconcileAuthorizationPolicy         func(clusterName string, obj *security_istio_io_v1beta1.AuthorizationPolicy) (reconcile.Result, error)
	OnReconcileAuthorizationPolicyDeletion func(clusterName string, req reconcile.Request) error
}

func (*MulticlusterAuthorizationPolicyReconcilerFuncs) ReconcileAuthorizationPolicy

func (*MulticlusterAuthorizationPolicyReconcilerFuncs) ReconcileAuthorizationPolicyDeletion

func (f *MulticlusterAuthorizationPolicyReconcilerFuncs) ReconcileAuthorizationPolicyDeletion(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