resources

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultManagementPort = 15672
	BindingKey            = "x-knative-trigger"
	DLQBindingKey         = "x-knative-dlq"
	TriggerDLQBindingKey  = "x-knative-trigger-dlq"
)
View Source
const TriggerLabelKey = "eventing.knative.dev/trigger"

Variables

This section is empty.

Functions

func BindingLabels added in v0.23.0

func BindingLabels(b *eventingv1.Broker, t *eventingv1.Trigger) map[string]string

BindingLabels generates the labels present on the Queue linking the Broker / Trigger to the Binding.

func DispatcherLabels

func DispatcherLabels(brokerName string) map[string]string

DispatcherLabels generates the labels present on all resources representing the dispatcher of the given Broker.

func MakeDispatcherDeployment

func MakeDispatcherDeployment(args *DispatcherArgs) *appsv1.Deployment

MakeDispatcherDeployment creates the in-memory representation of the Broker's Dispatcher Deployment.

func NewBinding added in v0.23.0

func NewBinding(ctx context.Context, broker *eventingv1.Broker, trigger *eventingv1.Trigger) (*rabbitv1beta1.Binding, error)

func NewQueue added in v0.23.0

func NewTriggerDLQ added in v0.24.0

func NewTriggerDLQBinding added in v0.24.0

func NewTriggerDLQBinding(ctx context.Context, broker *eventingv1.Broker, trigger *eventingv1.Trigger) (*rabbitv1beta1.Binding, error)

NewTriggerDLQBinding creates a binding for a Trigger DLX.

func QueueLabels added in v0.23.0

func QueueLabels(b *eventingv1.Broker, t *eventingv1.Trigger) map[string]string

QueueLabels generates the labels present on the Queue linking the Broker / Trigger to the Queue.

Types

type DispatcherArgs

type DispatcherArgs struct {
	Delivery *eventingduckv1.DeliverySpec
	Trigger  *eventingv1.Trigger
	Image    string
	//ServiceAccountName string
	RabbitMQHost       string
	RabbitMQSecretName string
	QueueName          string
	BrokerUrlSecretKey string
	BrokerIngressURL   *apis.URL
	Subscriber         *apis.URL
	DLX                bool
}

DispatcherArgs are the arguments to create a dispatcher deployment. There's one of these created for each trigger.

Jump to

Keyboard shortcuts

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