registry

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	WithFactory(f reconcile.ReconcilerFactory) Builder

	GetForObj() client.Object

	For(object client.Object, opts ...builder.ForOption) Builder
	Owns(object client.Object, opts ...builder.OwnsOption) Builder
	Watches(object client.Object, eventHandler handler.EventHandler, opts ...builder.WatchesOption) Builder
	WatchesMetadata(object client.Object, eventHandler handler.EventHandler, opts ...builder.WatchesOption) Builder
	WatchesRawSource(src source.Source, eventHandler handler.EventHandler, opts ...builder.WatchesOption) Builder
	WithEventFilter(p predicate.Predicate) Builder
	WithOptions(options controller.Options) Builder
	WithLogConstructor(logConstructor func(*ctrlreconcile.Request) logr.Logger) Builder
	Named(name string) Builder

	Complete() error

	SetupWithManager(mngr manager.Manager, args reconcile.ReconcilerArguments) error
}

type SkrIndexer added in v0.1.4

type SkrIndexer interface {
	Obj() client.Object
	Field() string
	IndexField(ctx context.Context, indexer client.FieldIndexer) error
}

type SkrRegistry

type SkrRegistry interface {
	Len() int
	Register() Builder
	Builders() []Builder

	IndexField(obj client.Object, field string, extractValue client.IndexerFunc)
	Indexers() []SkrIndexer
}

func New

func New(skrScheme *runtime.Scheme) SkrRegistry

Jump to

Keyboard shortcuts

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