broker

package
v0.0.0-...-7902dd0 Latest Latest
Warning

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

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

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 returns a new HPA reconcile controller.

func NewWarnInternal

func NewWarnInternal(msgf string, args ...interface{}) reconciler.Event

NewWarnInternal makes a new reconciler event with event type Warning, and reason InternalError.

Types

type Interface

type Interface interface {
	ReconcileBroker(context.Context, *v1alpha1.Broker) reconciler.Event
	ReconcileTrigger(context.Context, *v1alpha1.Broker, *v1alpha1.Trigger) reconciler.Event
}

Interface defines the strongly typed interfaces to be implemented by a controller reconciling v1alpha1.Broker.

type Reconciler

type Reconciler struct {
	// Client is used to write back status updates.
	Client           clientset.Interface
	ServingClientSet servingclientset.Interface

	// Listers index properties about resources
	BrokerLister  listers.BrokerLister
	TriggerLister listers.TriggerLister

	ServiceLister servinglisters.ServiceLister

	// The tracker builds an index of what resources are watching other
	// resources so that we can immediately react to changes to changes in
	// tracked resources.
	Tracker tracker.Interface

	SubResolver *resolver.URIResolver
	BrokerImage string // TODO

	// Recorder is an event recorder for recording Event resources to the
	// Kubernetes API.
	Recorder record.EventRecorder
}

Reconciler implements controller.Reconciler for AddressableService resources.

func (*Reconciler) Reconcile

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

Reconcile implements controller.Reconciler

func (*Reconciler) ReconcileBroker

func (r *Reconciler) ReconcileBroker(ctx context.Context, o *v1alpha1.Broker) reconciler.Event

ReconcileKind implements Interface

func (*Reconciler) ReconcileTrigger

func (r *Reconciler) ReconcileTrigger(ctx context.Context, b *v1alpha1.Broker, o *v1alpha1.Trigger) reconciler.Event

ReconcileKind implements Interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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