bridges

package
v0.0.0-...-8aabc32 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: Apache-2.0 Imports: 20 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 Components

func Components(brdg *unstructured.Unstructured) []map[string]interface{}

Components returns the Bridge's components as a list of map[string]interface{}.

func CreateBridge

func CreateBridge(brdgCli dynamic.ResourceInterface, bridge *unstructured.Unstructured,
	namespace, namePrefix string, opts ...BridgeOption) (*unstructured.Unstructured, error)

CreateBridge creates a Bridge object initialized with the given options.

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 SeekComponentByKind

func SeekComponentByKind(components []map[string]interface{}, kind string) int

SeekComponentByKind returns the index of the component identified by the given kind in a list of Bridge components.

func SeekComponentByKindAndName

func SeekComponentByKindAndName(components []map[string]interface{}, kind, name string) int

SeekComponentByKindAndName returns the index of the component identified by the given kind and name in a list of Bridge components.

func SetComponents

func SetComponents(brdg *unstructured.Unstructured, comps []map[string]interface{})

SetComponents sets a list of map[string]interface{} as the Bridge's components.

Types

type BridgeOption

type BridgeOption func(*unstructured.Unstructured)

Jump to

Keyboard shortcuts

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