registry

package
v0.0.0-...-fd237a5 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 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 Builder

type Builder interface {
	WithFactory(f ReconcilerFactory) Builder

	Named(name string) Builder
	For(object client.Object, opts ...ForOption) Builder
	Watches(object client.Object, eventHandler handler.EventHandler, opts ...WatchesOption) Builder
	Complete() error
}

type Descriptor

type Descriptor struct {
	Name              string
	GVK               schema.GroupVersionKind
	Watches           []Watch
	ReconcilerFactory ReconcilerFactory
}

type DescriptorList

type DescriptorList []Descriptor

func (DescriptorList) AllQueuesEmpty

func (dl DescriptorList) AllQueuesEmpty() bool

type ForInput

type ForInput struct {
	// contains filtered or unexported fields
}

type ForOption

type ForOption interface {
	// ApplyToFor applies this configuration to the given for input.
	ApplyToFor(*ForInput)
}

type ReconcilerFactory

type ReconcilerFactory interface {
	New(kymaRef klog.ObjectRef, kcpCluster cluster.Cluster, skrCluster cluster.Cluster) reconcile.Reconciler
}

type SkrRegistry

type SkrRegistry interface {
	GetDescriptors(mngr manager.SkrManager) DescriptorList
	Register() Builder
}

func New

func New(scheme *runtime.Scheme) SkrRegistry

type Watch

type Watch struct {
	Name         string
	Src          source.Source
	EventHandler handler.EventHandler
	Predicates   []predicate.Predicate
}

type WatchesInput

type WatchesInput struct {
	// contains filtered or unexported fields
}

type WatchesOption

type WatchesOption interface {
	// ApplyToWatches applies this configuration to the given watches options.
	ApplyToWatches(*WatchesInput)
}

Jump to

Keyboard shortcuts

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