resources

package
v0.0.0-...-dfd519d Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultManagementPort = 15672
	BindingKey            = "x-knative-trigger"
)

Variables

This section is empty.

Functions

func DeclareQueue

func DeclareQueue(args *QueueArgs) (*amqp.Queue, error)

DeclareQueue declares the Trigger's Queue.

func DeleteQueue

func DeleteQueue(args *QueueArgs) error

DeleteQueue deletes the Trigger's Queue.

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 ExchangeName

func ExchangeName(brokerName string) string

ExchangeName derives the Exchange name from the Broker name

func MakeBinding

func MakeBinding(args *BindingArgs) error

MakeBinding declares the Binding from the Broker's Exchange to the Trigger's Queue.

func MakeDispatcherDeployment

func MakeDispatcherDeployment(args *DispatcherArgs) *appsv1.Deployment

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

Types

type BindingArgs

type BindingArgs struct {
	Trigger                *eventingv1beta1.Trigger
	RoutingKey             string
	BrokerURL              string
	RabbitmqManagementPort int
}

BindingArgs are the arguments to create a Trigger's Binding to a RabbitMQ Exchange.

type DispatcherArgs

type DispatcherArgs struct {
	Trigger *eventingv1beta1.Trigger
	Image   string
	//ServiceAccountName string
	RabbitMQHost       string
	RabbitMQSecretName string
	QueueName          string
	BrokerUrlSecretKey string
	BrokerIngressURL   *apis.URL
	Subscriber         *apis.URL
}

DispatcherArgs are the arguments to create a Broker's Dispatcher Deployment.

type DispatcherScaledObjectArgs

type DispatcherScaledObjectArgs struct {
	DispatcherDeployment      *v1.Deployment
	QueueName                 string
	Trigger                   *v1beta1.Trigger
	BrokerUrlSecretKey        string
	TriggerAuthenticationName string
}

type QueueArgs

type QueueArgs struct {
	Trigger     *eventingv1beta1.Trigger
	RabbitmqURL string
}

QueueArgs are the arguments to create a Trigger's RabbitMQ Queue.

Jump to

Keyboard shortcuts

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