broker

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 53 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrokerConditionExchange       apis.ConditionType = "ExchangeReady"
	BrokerConditionDLX            apis.ConditionType = "DLXReady"
	BrokerConditionDeadLetterSink apis.ConditionType = "DeadLetterSinkReady"
	BrokerConditionSecret         apis.ConditionType = "SecretReady"
	BrokerConditionIngress        apis.ConditionType = "IngressReady"
	BrokerConditionAddressable    apis.ConditionType = "Addressable"
)

Variables

This section is empty.

Functions

func MarkDLXFailed added in v0.19.0

func MarkDLXFailed(bs *eventingv1.BrokerStatus, reason, format string, args ...interface{})

func MarkDLXReady added in v0.19.0

func MarkDLXReady(bs *eventingv1.BrokerStatus)

func MarkDeadLetterSinkFailed added in v0.19.0

func MarkDeadLetterSinkFailed(bs *eventingv1.BrokerStatus, reason, format string, args ...interface{})

func MarkDeadLetterSinkReady added in v0.19.0

func MarkDeadLetterSinkReady(bs *eventingv1.BrokerStatus)

func MarkExchangeFailed

func MarkExchangeFailed(bs *eventingv1.BrokerStatus, reason, format string, args ...interface{})

func MarkExchangeReady

func MarkExchangeReady(bs *eventingv1.BrokerStatus)

func MarkIngressFailed

func MarkIngressFailed(bs *eventingv1.BrokerStatus, reason, format string, args ...interface{})

func MarkSecretFailed

func MarkSecretFailed(bs *eventingv1.BrokerStatus, reason, format string, args ...interface{})

func MarkSecretReady

func MarkSecretReady(bs *eventingv1.BrokerStatus)

func NewBroker

func NewBroker(name, namespace string, o ...BrokerOption) *v1.Broker

NewBroker creates a Broker with BrokerOptions.

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

func PropagateIngressAvailability

func PropagateIngressAvailability(bs *eventingv1.BrokerStatus, ep *corev1.Endpoints)

func SetAddress

func SetAddress(bs *eventingv1.BrokerStatus, url *apis.URL)

SetAddress makes this Broker addressable by setting the URI. It also sets the BrokerConditionAddressable to true.

func WithBrokerDeletionTimestamp

func WithBrokerDeletionTimestamp(b *v1.Broker)

func WithBrokerReady

func WithBrokerReady(b *v1.Broker)

WithBrokerReady sets .Status to ready.

func WithInitBrokerConditions

func WithInitBrokerConditions(b *v1.Broker)

WithInitBrokerConditions initializes the Broker's conditions.

Types

type BrokerOption

type BrokerOption func(*v1.Broker)

BrokerOption enables further configuration of a Broker.

func WithBrokerAddress

func WithBrokerAddress(address string) BrokerOption

WithBrokerAddress sets the Broker's address.

func WithBrokerAddressURI

func WithBrokerAddressURI(uri *apis.URL) BrokerOption

WithBrokerAddressURI sets the Broker's address as URI.

func WithBrokerClass

func WithBrokerClass(bc string) BrokerOption

func WithBrokerConfig

func WithBrokerConfig(config *duckv1.KReference) BrokerOption

WithBrokerChannel sets the Broker's ChannelTemplateSpec to the specified CRD.

func WithBrokerDelivery added in v0.19.0

func WithBrokerDelivery(d *eventingduckv1.DeliverySpec) BrokerOption

func WithBrokerFinalizers

func WithBrokerFinalizers(finalizers ...string) BrokerOption

func WithBrokerGeneration

func WithBrokerGeneration(gen int64) BrokerOption

func WithBrokerResourceVersion

func WithBrokerResourceVersion(rv string) BrokerOption

func WithBrokerStatusObservedGeneration

func WithBrokerStatusObservedGeneration(gen int64) BrokerOption

func WithDLXReady added in v0.19.0

func WithDLXReady() BrokerOption

WithDLXReady() sets DLX condition to ready.

func WithDeadLetterSinkFailed added in v0.19.0

func WithDeadLetterSinkFailed(reason, msg string) BrokerOption

WithDeadLetterSinkFailed sets secret condition to ready.

func WithDeadLetterSinkReady added in v0.19.0

func WithDeadLetterSinkReady() BrokerOption

WithDeadLetterSinkReady() sets DeadLetterSink condition to ready.

func WithExchangeFailed

func WithExchangeFailed(reason, msg string) BrokerOption

WithExchangeFailed sets exchange condition to failed.

func WithExchangeReady

func WithExchangeReady() BrokerOption

WithExchangeReady sets exchange condition to ready.

func WithIngressAvailable

func WithIngressAvailable() BrokerOption

func WithIngressFailed

func WithIngressFailed(reason, msg string) BrokerOption

WithIngressFailed calls .Status.MarkIngressFailed on the Broker.

func WithSecretFailed

func WithSecretFailed(reason, msg string) BrokerOption

WithSecretFailed sets secret condition to ready.

func WithSecretReady

func WithSecretReady() BrokerOption

WithSecretReady sets secret condition to ready.

type Reconciler

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

func (*Reconciler) FinalizeKind

func (r *Reconciler) FinalizeKind(ctx context.Context, b *eventingv1.Broker) pkgreconciler.Event

func (*Reconciler) ReconcileKind

func (r *Reconciler) ReconcileKind(ctx context.Context, b *eventingv1.Broker) pkgreconciler.Event

type ReconcilerArgs

type ReconcilerArgs struct {
	IngressImage              string
	IngressServiceAccountName string
}

ReconcilerArgs are the arguments needed to create a broker.Reconciler.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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