controller

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2019 License: Apache-2.0 Imports: 27 Imported by: 9

Documentation

Index

Constants

View Source
const (
	// ReconcilerName is the name of the reconciler
	ReconcilerName = "InMemoryChannels"
)

Variables

This section is empty.

Functions

func NewController

func NewController(
	ctx context.Context,
	cmw configmap.Watcher,
) *controller.Impl

NewController initializes the controller and is called by the generated code. Registers event handlers to enqueue events.

Types

type Reconciler

type Reconciler struct {
	*reconciler.Base
	// contains filtered or unexported fields
}

func (*Reconciler) OnAdd

func (r *Reconciler) OnAdd(obj interface{})

cache.ResourceEventHandler implementation. These 3 functions just cause a Global Resync of the channels, because any changes here should be reflected onto the channels.

func (*Reconciler) OnDelete

func (r *Reconciler) OnDelete(obj interface{})

func (*Reconciler) OnUpdate

func (r *Reconciler) OnUpdate(old, new interface{})

func (*Reconciler) Reconcile

func (r *Reconciler) Reconcile(ctx context.Context, key string) error

Reconcile compares the actual state with the desired, and attempts to converge the two. It then updates the Status block of the InMemoryChannel resource with the current status of the resource.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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