kafka

package
v0.0.0-...-932eec2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ComponentType    = "bindings.kafka"
	ComponentVersion = "v1"
	ScaledObjectType = "kafka"
)

Variables

This section is empty.

Functions

func NewKafkaEventSource

func NewKafkaEventSource(log logr.Logger, spec *ofevent.KafkaSpec) event.OpenFunctionEventSource

Types

type EventSource

type EventSource struct {
	Spec     *ofevent.KafkaSpec
	Metadata map[string]interface{}
	// contains filtered or unexported fields
}

func (*EventSource) GenComponent

func (es *EventSource) GenComponent(namespace string, name string) (*componentsv1alpha1.Component, error)

func (*EventSource) GenScaleOptions

func (es *EventSource) GenScaleOptions() (*ofcore.KedaScaledObject, *kedav1alpha1.ScaleTriggers)

func (*EventSource) GetMetadata

func (es *EventSource) GetMetadata() map[string]interface{}

func (*EventSource) SetMetadata

func (es *EventSource) SetMetadata(key string, value interface{})

Jump to

Keyboard shortcuts

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