Documentation ¶
Overview ¶
package ast provides methods for constructing CEL abstract syntax nodes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCall ¶
Create a function call expression from the function name, optional receiver, arguments, and id.
All operators and user-defined functions are modelled as calls. For a list of built-in operators (restrictions), see the operators/operators.go file.
func NewIdent ¶
Create an identifier from the given name and id.
Identifiers may either refer to a property that can be filtered within the API, or unquoted text. Interpretation of an identifier is highly contextual.
Within CEL, type-checking asserts that all identifiers must be declared. To use type-checking with filters, a second processing step may be used to convert unknown identifiers to constant strings prior to the type-check. This may be desired as an algorithmic way for validating filters.
Types ¶
This section is empty.