controller

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

func NewController

func NewController(
	opt reconciler.Options,
	natssDispatcher dispatcher.NatssDispatcher,
	natsschannelInformer messaginginformers.NatssChannelInformer,
) *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
}

Reconciler reconciles NATSS Channels.

func (*Reconciler) Reconcile

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

Reconcile a NatssChannel and perform the following actions: - update natss subscriptions based on NatssChannel subscribers - set NatssChannel subscriber status based on natss subscriptions - maintain mapping between host header and natss channel which is used by the dispatcher

Jump to

Keyboard shortcuts

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