bridges

package
v1.23.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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