Documentation
¶
Index ¶
- type CELExpr
- func (e CELExpr) AlwaysTrue() bool
- func (e CELExpr) AsBool(inputsMap map[string]interface{}) (bool, error)
- func (e CELExpr) Evaluate(inputsMap map[string]interface{}) (interface{}, error)
- func (e CELExpr) InlineJSONSchema()
- func (e CELExpr) IsZero() bool
- func (CELExpr) JSONSchema() (jsg.Schema, error)
- func (e CELExpr) JSONSchemaExtend(schema *jsonschema.Schema)
- func (e CELExpr) MarshalJSON() ([]byte, error)
- func (e CELExpr) MarshalYAML() (interface{}, error)
- func (e CELExpr) String() string
- func (e *CELExpr) UnmarshalJSON(data []byte) error
- func (e *CELExpr) UnmarshalYAML(unmarshal func(interface{}) error) error
- type DynamicMapValue
- func (d *DynamicMapValue) Contains(key ref.Val) ref.Val
- func (d *DynamicMapValue) ConvertToNative(typeDesc reflect.Type) (interface{}, error)
- func (d *DynamicMapValue) ConvertToType(typeVal ref.Type) ref.Val
- func (d *DynamicMapValue) Equal(other ref.Val) ref.Val
- func (d *DynamicMapValue) Get(key ref.Val) ref.Val
- func (d *DynamicMapValue) Iterator() traits.Iterator
- func (d *DynamicMapValue) Size() ref.Val
- func (d *DynamicMapValue) Type() ref.Type
- func (d *DynamicMapValue) Value() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CELExpr ¶
type CELExpr struct {
// contains filtered or unexported fields
}
func NewCELExpr ¶
func (CELExpr) AlwaysTrue ¶
func (CELExpr) InlineJSONSchema ¶
func (e CELExpr) InlineJSONSchema()
func (CELExpr) IsZero ¶
IsZero enables correct `omitempty` behavior for YAML/JSON encoders. CELExpr stores its value in unexported fields, so reflection-based zero checks may incorrectly treat non-empty expressions as empty.
func (CELExpr) JSONSchemaExtend ¶
func (e CELExpr) JSONSchemaExtend(schema *jsonschema.Schema)
func (CELExpr) MarshalJSON ¶
func (CELExpr) MarshalYAML ¶
MarshalYAML converts Duration to a YAML string
func (*CELExpr) UnmarshalJSON ¶
func (*CELExpr) UnmarshalYAML ¶
type DynamicMapValue ¶
type DynamicMapValue struct {
// contains filtered or unexported fields
}
func (*DynamicMapValue) Contains ¶
func (d *DynamicMapValue) Contains(key ref.Val) ref.Val
Contains checks if key exists (used by 'has' function)
func (*DynamicMapValue) ConvertToNative ¶
func (d *DynamicMapValue) ConvertToNative(typeDesc reflect.Type) (interface{}, error)
ConvertToNative converts to native Go type
func (*DynamicMapValue) ConvertToType ¶
func (d *DynamicMapValue) ConvertToType(typeVal ref.Type) ref.Val
ConvertToType handles type conversions
func (*DynamicMapValue) Equal ¶
func (d *DynamicMapValue) Equal(other ref.Val) ref.Val
Equal checks equality
func (*DynamicMapValue) Get ¶
func (d *DynamicMapValue) Get(key ref.Val) ref.Val
Get implements the critical property access - this is called for dot notation
func (*DynamicMapValue) Iterator ¶
func (d *DynamicMapValue) Iterator() traits.Iterator
Iterator for map traversal
func (*DynamicMapValue) Type ¶
func (d *DynamicMapValue) Type() ref.Type
Type returns the CEL type - we use DynType since it's dynamic
func (*DynamicMapValue) Value ¶
func (d *DynamicMapValue) Value() interface{}
Value returns the underlying Go value
Click to show internal directories.
Click to hide internal directories.