adapter

package
v0.0.0-...-5f2cde1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
	// contains filtered or unexported fields
}

func (*Adapter) GetEvents

func (a *Adapter) GetEvents() ([]cloudevents.Event, error)

func (*Adapter) GetEventsStream

func (a *Adapter) GetEventsStream(eventsStream chan<- cloudevents.Event, done chan<- interface{})

func (*Adapter) SendEvents

func (a *Adapter) SendEvents(events []cloudevents.Event) (int, error)

func (*Adapter) SendEventsStream

func (a *Adapter) SendEventsStream(eventStream <-chan cloudevents.Event)

func (*Adapter) TraceToCloudEvent

func (a *Adapter) TraceToCloudEvent(trace traces.Traces) (*cloudevents.Event, error)

type CtsQuerierConfig

type CtsQuerierConfig struct {
	ProjectId   string
	TrackerName string
	From        uint
}

type SinkBindingConfig

type SinkBindingConfig struct {
	// The URL of the resolved sink (K_SINK)
	SinkUrl string

	// A JSON object that specifies overrides to the outbound event (K_CE_OVERRIDES)
	CeOverrides string
}

SinkBindingConfig The SinkBinding object supports decoupling event production from delivery addressing. You can use sink binding to direct a subject to a sink. A subject is a Kubernetes resource that embeds a PodSpec template and produces events. A sink is an addressable Kubernetes object that can receive events. The SinkBinding object injects environment variables into the PodTemplateSpec of the sink. Because of this, the application code does not need to interact directly with the Kubernetes API to locate the event destination.

Jump to

Keyboard shortcuts

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