Documentation
¶
Overview ¶
Package bridges contains helpers to interact with Bridge objects.
Index ¶
- func Components(brdg *unstructured.Unstructured) []map[string]interface{}
- func CreateBridge(brdgCli dynamic.ResourceInterface, bridge *unstructured.Unstructured, ...) (*unstructured.Unstructured, error)
- 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 SeekComponentByKind(components []map[string]interface{}, kind string) int
- func SeekComponentByKindAndName(components []map[string]interface{}, kind, name string) int
- func SetComponents(brdg *unstructured.Unstructured, comps []map[string]interface{})
- type BridgeOption
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 ¶
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 ¶
SeekComponentByKind returns the index of the component identified by the given kind in a list of Bridge components.
func SeekComponentByKindAndName ¶
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)