naming

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrokerExchangeName

func BrokerExchangeName(b *eventingv1.Broker, dlx bool) string

BrokerExchangeName creates a name for Broker Exchange. Format is broker.Namespace.Name.BrokerUID for normal exchanges and broker.Namespace.Name.dlx.BrokerUID for DLX exchanges.

func CreateBrokerDeadLetterQueueName

func CreateBrokerDeadLetterQueueName(b *eventingv1.Broker) string

CreateBrokerDeadLetterQueueName constructs a Broker dead letter queue name. Format is b.Namespace.Name.dlq.BrokerUID

func CreateSourceRabbitName added in v0.31.0

func CreateSourceRabbitName(s *v1alpha1.RabbitmqSource) string

CreateSourceRabbitName creates queue, exchange, and binding crd names for a RabbitmqSource. Format is s.Namespace.ObjectName.SourceUID

func CreateTriggerDeadLetterQueueName

func CreateTriggerDeadLetterQueueName(t *eventingv1.Trigger) string

CreateTriggerDeadLetterQueueName creates a dead letter queue name for Trigger if Trigger has defined a DeadLetterSink. Format is t.Namespace.Name.dlq.TriggerUID

func CreateTriggerQueueName

func CreateTriggerQueueName(t *eventingv1.Trigger) string

CreateTriggerQueueName creates a queue (crd) name for Trigger events. Format is t.Namespace.Name.TriggerUID

func CreateTriggerQueueRabbitName added in v0.32.0

func CreateTriggerQueueRabbitName(t *eventingv1.Trigger, brokerUID string) string

CreateTriggerQueueRabbitName creates a RabbitMQ queue name for Trigger events. Format is Namespace.Name.BrokerUID Character limit for both namespace and trigger name are 63 and for broker UUID is 36. RabbitMQ queue name character limit is 255.

func TriggerDLXExchangeName

func TriggerDLXExchangeName(t *eventingv1.Trigger) string

TriggerDLXExchangeName creates a DLX name that's used if Trigger has defined DeadLetterSink. Format is t.Namespace.Name.dlx.TriggerUID

Types

This section is empty.

Jump to

Keyboard shortcuts

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