keda

package
v2.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2026 License: Apache-2.0 Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapToKedaTrigger

func MapToKedaTrigger(rawURI string, props map[string]string) (*traitv1.KedaTrigger, error)

func MapToKedaTriggerWithAutoMetadata added in v2.12.0

func MapToKedaTriggerWithAutoMetadata(rawURI string, props map[string]string, autoMetadata map[string]map[string]string) (*traitv1.KedaTrigger, error)

MapToKedaTriggerWithAutoMetadata maps a Camel consumer URI to a KEDA trigger. autoMetadata is passed only to mappers implementing AutoMetadataScaleMapper.

func ParseComponentURI

func ParseComponentURI(rawURI string) (string, string, map[string]string, error)

ParseComponentURI extracts the component scheme, path value, and query parameters from a Camel URI.

func Register

func Register(m ScaleMapper)

Types

type AutoMetadataScaleMapper added in v2.12.0

type AutoMetadataScaleMapper interface {
	ScaleMapper
	MapWithAutoMetadata(pathValue string, params map[string]string, props map[string]string, autoMetadata map[string]map[string]string) (kedaType string, metadata map[string]string)
}

AutoMetadataScaleMapper is an optional extension for mappers that need KEDA autoMetadata to decide whether a generic Camel component can be mapped. Existing ScaleMapper implementations do not need to implement this interface.

type ScaleMapper

type ScaleMapper interface {
	Component() string
	Map(pathValue string, params map[string]string, props map[string]string) (kedaType string, metadata map[string]string)
}

ScaleMapper defines the interface for mapping Camel component URIs to KEDA triggers. Map returns an empty scaler type when the endpoint has nothing a KEDA scaler can measure.

func GetMapper

func GetMapper(component string) (ScaleMapper, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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