Documentation
¶
Index ¶
- type Engine
- func (e *Engine) Interpolate(input string, event *eventing.MdaiEvent) string
- func (e *Engine) InterpolateMapWithSources(in map[string]string, sources ...ValueSource) map[string]string
- func (e *Engine) InterpolateWithSources(input string, sources ...ValueSource) string
- func (e *Engine) InterpolateWithValues(input string, event *eventing.MdaiEvent, templateValues map[string]string) string
- type TemplateSource
- type TriggerSource
- type ValueSource
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Engine ¶
type Engine struct {
// contains filtered or unexported fields
}
Engine handles OTel-inspired interpolation for trigger events
func (*Engine) Interpolate ¶
Interpolate processes a string and replaces interpolation expressions with actual values Back-compat: only trigger scope via MdaiEvent
func (*Engine) InterpolateMapWithSources ¶
func (e *Engine) InterpolateMapWithSources(in map[string]string, sources ...ValueSource) map[string]string
InterpolateMapWithSources interpolate map with arbitrary sources (e.g., trigger+template)
func (*Engine) InterpolateWithSources ¶
func (e *Engine) InterpolateWithSources(input string, sources ...ValueSource) string
InterpolateWithSources provide any set of sources (each defines its Scope() name)
type TemplateSource ¶
TemplateSource reads from a flat map[string]string
func (TemplateSource) Scope ¶
func (s TemplateSource) Scope() string
type TriggerSource ¶
TriggerSource reads fields from MdaiEvent (incl. payload.* JSON path)
func (*TriggerSource) Scope ¶
func (s *TriggerSource) Scope() string
Click to show internal directories.
Click to hide internal directories.