injection

package
v0.0.0-...-981e2ef Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectFactoryFunc

type ObjectFactoryFunc func() client.Object

ObjectFactoryFunc for newing a typed object

type Reconciler

type Reconciler interface {
	// Reconcile the object and make sure a corresponding v1alpha1.CertInjection is there.
	// The object might be:
	//  - HarborCluster CR
	//  - PackageInstall CR
	//  - Secret (with expected label)
	Reconcile(ctx context.Context, name types.NamespacedName, objFacFunc ObjectFactoryFunc) error
}

Reconciler is for doing the common cert injection reconciling logic.

type ReconcilerBuilder

type ReconcilerBuilder interface {
	// WithScheme sets scheme.
	WithScheme(scheme *runtime.Scheme) ReconcilerBuilder
	// WithLogger sets logger.
	WithLogger(logger logr.Logger) ReconcilerBuilder
	// UseClient sets client.
	UseClient(client client.Client) ReconcilerBuilder
	// Reconciler returns the ready Reconciler.
	Reconciler() Reconciler
}

ReconcilerBuilder is used to build a usable Reconciler.

func NewBuilder

func NewBuilder() ReconcilerBuilder

NewBuilder news a common reconciler builder.

Jump to

Keyboard shortcuts

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