reconcile

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler func(ctx context.Context, object client.Object, cl lot_client.Client, scheme *runtime.Scheme) error

Handler is a function type which performs specific logic within a reconcile.Reconciler reconcile Func.

type HandlerFuncs

type HandlerFuncs struct {
	CreateOrUpdateHandler Handler
	DeleteHandler         Handler
}

HandlerFuncs is a struct which contains the only two types of supported handlers

type Reconciler

type Reconciler interface {
	reconcile.Reconciler
}

Reconciler is nests the reconciler.Reconciler interface of the controller-runtime library. It is used in order to hide the underlaying library within the operator package

func WithClient

func WithClient(cl lot_client.Client, obj client.Object, scheme *runtime.Scheme, fn *HandlerFuncs) Reconciler

WithClient is a function that returns a Reconciler with an opinionated reconcile method which can pass to the event handler functions not only its context but also a client.Client and the runtime.Scheme of the Operator's manager.Manager

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL