dispatcher

package
v0.0.0-...-43d1ab5 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRequest

func NewRequest(kind, ID string) (*interfaces.ReconcileResource, error)

NewRequest creates a new request to reconcile a resource

Types

type Dispatcher

type Dispatcher interface {
	notifier.ObjectChangeNotifier

	HandleEvents(chan interface{}) error
}

Dispatcher is the object that decides when to call the reconciler and with what objects. It exists separately from the Reconciler so that we can decouple the channel-driven logic of choosing events to reconcile from the function-type logic of reconciling.

func New

New creates and returns the default Dispatcher object, which will work on the provided Reconciler

Jump to

Keyboard shortcuts

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