Documentation ¶
Overview ¶
Package bridges contains helpers to interact with Bridge objects.
Index ¶
- func CreateEventDisplaySink(c clientset.Interface, namespace string) *duckv1.Destination
- func EventDisplayDeploymentName(c dynamic.Interface, namespace string) string
- func ReceivedEventDisplayEvents(logStream io.ReadCloser) []cloudevents.Event
- func SetupSubscriberWithReplyTo(cli clientset.Interface, dynCli dynamic.Interface, namespace string, ...) (entrypoint *url.URL, replyDstDeplName string)
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 ¶
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.