resources

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrokerChannelName added in v0.7.0

func BrokerChannelName(brokerName, channelType string) string

BrokerChannelName creates a name for the Channel for a Broker for a given Channel type.

func FilterLabels

func FilterLabels(brokerName string) map[string]string

FilterLabels generates the labels present on all resources representing the filter of the given Broker.

func IngressLabels

func IngressLabels(brokerName string) map[string]string

IngressLabels generates the labels present on all resources representing the ingress of the given Broker.

func MakeFilterDeployment

func MakeFilterDeployment(args *FilterArgs) *appsv1.Deployment

MakeFilterDeployment creates the in-memory representation of the Broker's filter Deployment.

func MakeFilterService

func MakeFilterService(b *eventingv1alpha1.Broker) *corev1.Service

MakeFilterService creates the in-memory representation of the Broker's filter Service.

func MakeIngressDeployment added in v0.13.0

func MakeIngressDeployment(args *IngressArgs) *appsv1.Deployment

MakeIngress creates the in-memory representation of the Broker's ingress Deployment.

func MakeIngressService

func MakeIngressService(b *eventingv1alpha1.Broker) *corev1.Service

MakeIngressService creates the in-memory representation of the Broker's ingress Service.

func MakeSubscription added in v0.10.0

MakeSubscription returns a placeholder subscription for broker 'b', channelable 'c', and service 'svc'.

func NewChannel added in v0.7.0

func NewChannel(channelType string, owner kmeta.OwnerRefable, channelTemplate *messagingv1beta1.ChannelTemplateSpec, l map[string]string) (*unstructured.Unstructured, error)

test NewChannel returns an unstructured.Unstructured based on the ChannelTemplateSpec for a given Broker.

func NewSubscription added in v0.13.0

func NewSubscription(t *v1alpha1.Trigger, brokerTrigger, brokerRef *corev1.ObjectReference, uri *apis.URL, delivery *duckv1beta1.DeliverySpec) *messagingv1alpha1.Subscription

NewSubscription returns a placeholder subscription for trigger 't', from brokerTrigger to 'uri' replying to brokerIngress.

func SubscriptionLabels added in v0.13.0

func SubscriptionLabels(t *v1alpha1.Trigger) map[string]string

SubscriptionLabels generates the labels present on the Subscription linking this Trigger to the Broker's Channels.

Types

type FilterArgs

type FilterArgs struct {
	Broker             *eventingv1alpha1.Broker
	Image              string
	ServiceAccountName string
}

FilterArgs are the arguments to create a Broker's filter Deployment.

type IngressArgs

type IngressArgs struct {
	Broker             *eventingv1alpha1.Broker
	Image              string
	ServiceAccountName string
	ChannelAddress     string
}

IngressArgs are the arguments to create a Broker's ingress Deployment.

Jump to

Keyboard shortcuts

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