Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultEnv ¶
DefaultEnv produces a cel.Env with the necessary cel.EnvOption and cel.ProgramOption values preconfigured for usage throughout the module.
func NewExecutor ¶ added in v2.8.0
func NewExecutor() serde.RuleExecutor
NewExecutor creates a new CEL rule executor
func NewFieldExecutor ¶ added in v2.8.0
func NewFieldExecutor() serde.RuleExecutor
NewFieldExecutor creates a new CEL field rule executor
Types ¶
type Executor ¶
Executor is a CEL rule executor
type FieldExecutor ¶
type FieldExecutor struct { serde.AbstractFieldRuleExecutor // contains filtered or unexported fields }
FieldExecutor is a CEL field rule executor
func (*FieldExecutor) Configure ¶
func (f *FieldExecutor) Configure(clientConfig *schemaregistry.Config, config map[string]string) error
Configure configures the executor
func (*FieldExecutor) NewTransform ¶
func (f *FieldExecutor) NewTransform(ctx serde.RuleContext) (serde.FieldTransform, error)
NewTransform creates a new transform
func (*FieldExecutor) Type ¶
func (f *FieldExecutor) Type() string
Type returns the type of the executor
type FieldExecutorTransform ¶
type FieldExecutorTransform struct {
// contains filtered or unexported fields
}
FieldExecutorTransform is a CEL field rule executor transform
func (*FieldExecutorTransform) Transform ¶
func (f *FieldExecutorTransform) Transform(ctx serde.RuleContext, fieldCtx serde.FieldContext, fieldValue interface{}) (interface{}, error)
Transform transforms the field value using the rule
Click to show internal directories.
Click to hide internal directories.