clusterwatchcontroller

package
v0.0.0-...-984f6f0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 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 Config

type Config struct {
	Name        string
	Reconcilers []Reconciler
	RESTConfig  *rest.Config
	RESTmapper  meta.RESTMapper
	Scheme      *runtime.Scheme
}

type Controller

type Controller interface {
	Error() error
	Stop()
	Start(ctx context.Context) error
}

func New

func New(mgr manager.Manager, cfg *Config) Controller

type Reconciler

type Reconciler struct {
	Object     client.Object
	Reconciler reconcile.Reconciler
	Owns       []client.Object
	Watches    []Watch
}

type Watch

type Watch struct {
	Object       client.Object
	EventHandler handler.EventHandler
}

Jump to

Keyboard shortcuts

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