dispatcher

package
v0.36.4 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2023 License: Apache-2.0 Imports: 38 Imported by: 9

Documentation

Index

Constants

This section is empty.

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 DispatcherReadyChecker added in v0.27.0

type DispatcherReadyChecker struct {

	// Allows safe concurrent read/write of 'isReady'.
	sync.Mutex
	// contains filtered or unexported fields
}

DispatcherReadyChecker asserts the readiness of a dispatcher for in-memory Channels.

func (*DispatcherReadyChecker) IsReady added in v0.27.0

func (c *DispatcherReadyChecker) IsReady() (bool, error)

IsReady implements ReadinessChecker. It checks whether the dispatcher has registered a handler for all observed in-memory Channels.

type ReadinessChecker added in v0.27.0

type ReadinessChecker interface {
	IsReady() (bool, error)
}

ReadinessChecker can assert the readiness of a component.

type Reconciler

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

Reconciler reconciles InMemory Channels.

func (*Reconciler) ObserveKind added in v0.20.0

func (r *Reconciler) ObserveKind(ctx context.Context, imc *v1.InMemoryChannel) reconciler.Event

ObserveKind implements inmemorychannel.ReadOnlyInterface.

func (*Reconciler) ReconcileKind added in v0.14.0

func (r *Reconciler) ReconcileKind(ctx context.Context, imc *v1.InMemoryChannel) reconciler.Event

ReconcileKind implements inmemorychannel.Interface.

Jump to

Keyboard shortcuts

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