reconciler

package
v0.0.0-...-0bcaffd Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2021 License: Apache-2.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnqueueRequestsForQuery

func EnqueueRequestsForQuery(c client.Client, log logr.Logger, toQuery function.ObjectToQuery) handler.EventHandler

EnqueueRequestsForQuery allows to create a handler.EventHandler by providing a function.ObjectToQuery function. It is kind of like a handler.EnqueueRequestsFromMapFunc, but without the boring parts :)

func New

func New(cl client.Client, logger logr.Logger, objType client.Object, f Function) *reconciler

New creates a reconcile.Reconciler for your object type and Function. `objType` should be an empty client.Object instance.

Types

type Function

type Function func(ctx context.Context, object client.Object, getDetails function.GetDetails) (*function.Effects, error)

Function is your reconciler function producing effects for the object being reconciled.

Jump to

Keyboard shortcuts

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