bridges

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package bridges contains helpers to interact with Bridge objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEventDisplaySink

func CreateEventDisplaySink(c clientset.Interface, namespace string) *duckv1.Destination

CreateEventDisplaySink creates an event-display event sink and returns it as a duckv1.Destination.

func EventDisplayDeploymentName

func EventDisplayDeploymentName(c dynamic.Interface, namespace string) string

EventDisplayDeploymentName returns the name of the Deployment object managing the event-display application, assuming that Deployment is managed by a Knative Service with the expected default name.

func ReceivedEventDisplayEvents

func ReceivedEventDisplayEvents(logStream io.ReadCloser) []cloudevents.Event

ReceivedEventDisplayEvents returns all events found in the given event-display log stream.

func SetupSubscriberWithReplyTo added in v1.16.1

func SetupSubscriberWithReplyTo(cli clientset.Interface, dynCli dynamic.Interface,
	namespace string, dst *duckv1.Destination) (entrypoint *url.URL, replyDstDeplName string)

SetupSubscriberWithReplyTo sets up the infrastructure required for an Addressable to receive events and emit replies which are automatically routed to an event-display event sink. It does it by fronting the 'dst' Addressable with a Channel, and configuring a Subscription that routes replies to an instance of event-display. The function returns: - the URL of the Channel which events can be sent to - the name of the event-display sink Deployment which replies are sent to

Types

This section is empty.

Jump to

Keyboard shortcuts

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