Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
9,178 in github.com/cel-expr/cel-go
⨍
Functions
9,178
◇
Types & classes
1,189
↓ 3 callers
Method
Catalog
Catalog returns the symbol catalog configured on the environment, or nil if none is configured.
checker/env.go:119
↓ 3 callers
Method
CheckInterrupt
CheckInterrupt returns whether the evaluation has been interrupted.
interpreter/frame.go:352
↓ 3 callers
Function
CheckedExprToAstWithSource
CheckedExprToAstWithSource converts a checked expression proto message to an Ast, using the provided Source as the textual contents. In general the s
cel/io.go:50
↓ 3 callers
Method
Clone
Clone creates a copy of the NativeType with optional configuration overrides.
common/types/native.go:187
↓ 3 callers
Function
CollectFileDescriptorSet
CollectFileDescriptorSet builds a file descriptor set associated with the file where the input message is declared.
common/types/pb/pb.go:245
↓ 3 callers
Method
Compose
Compose stitches together a set of expressions within a CompiledRule into a single CEL ast.
policy/composer.go:78
↓ 3 callers
Method
ComputeOffsetAbsolute
ComputeOffsetAbsolute calculates the 0-based character offset from a 1-based line and 0-based column based on the absolute line and column of the Sour
common/ast/ast.go:429
↓ 3 callers
Function
ConcurrentDrainStrategy
ConcurrentDrainStrategy configures the strategy for when to re-evaluate the program during a ConcurrentEval call after receiving asynchronous completi
cel/options.go:850
↓ 3 callers
Method
Condition
Condition returns the condition CEL expression.
policy/parser.go:360
↓ 3 callers
Function
ConfigToYAML
ConfigToYAML returns the config serialized to YAML Provided as a convenience wrapper around a tested YAML Marshaler.
common/env/io.go:480
↓ 3 callers
Method
Copy
Copy the input expression with a brand new set of identifiers.
parser/macro.go:199
↓ 3 callers
Function
CopySourceInfo
CopySourceInfo creates a deep copy of the MacroCalls within the input SourceInfo. Copies of macro Expr values are generated using an internal default
common/ast/ast.go:230
↓ 3 callers
Method
CreateMap
CreateMap records map literal construction cost.
common/cost/tracker.go:197
↓ 3 callers
Method
CreateStruct
CreateStruct records struct/object construction cost.
common/cost/tracker.go:203
↓ 3 callers
Method
DelLetFn
DelLetFn removes a function from the evaluation context. If deleting the function breaks a later expression, this function will return an error withou
repl/evaluator.go:718
↓ 3 callers
Method
Descriptor
()
test/proto2pb/test_all_types.pb.go:63
↓ 3 callers
Method
Descriptor
Deprecated: Use FuzzVariables.ProtoReflect.Descriptor instead.
fuzzing/cel_go_lpm.pb.go:72
↓ 3 callers
Function
EnableHiddenAccumulatorName
EnableHiddenAccumulatorName sets the parser to use the identifier '@result' for accumulators which is not normally accessible from CEL source.
cel/options.go:1232
↓ 3 callers
Method
EnumValue
(enumName string)
cel/options.go:1240
↓ 3 callers
Method
Equiv
Equiv returns true if two ASTs are structurally equivalent. If the ASTs are type-checked, type and reference information will be compared by default.
common/ast/equiv.go:141
↓ 3 callers
Function
ErrorAsIssues
ErrorAsIssues wraps a Golang error into a CEL common error and issue set. This is a convenience method for early returning from an expression validat
cel/env.go:1184
↓ 3 callers
Method
EstimateCallCost
EstimateCallCost returns the CallEstimate for a function, overload and target and arguments. If nil is returned, the cost of the function is calculat
common/cost/estimator.go:35
↓ 3 callers
Method
EvalAttribute
EvalAttribute records attribute resolution cost (ident / select).
common/cost/tracker.go:209
↓ 3 callers
Method
EvalVarArgs
EvalVarArgs records the cost for a variadic call expression.
common/cost/tracker.go:248
↓ 3 callers
Method
ExceedsLimit
ExceedsLimit indicates whether the peak observed memory exceeds the configured limit. When no limit is configured, ExceedsLimit always returns false.
common/types/memory_tracker.go:170
↓ 3 callers
Function
ExcludeOverloads
ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
common/decls/decls.go:220
↓ 3 callers
Method
ExecuteTest
ExecuteTest executes the test case against the provided list of programs and returns an error if the test fails. During the test execution, the interm
tools/celtest/test_runner.go:1021
↓ 3 callers
Function
ExprDeclToDeclaration
ExprDeclToDeclaration converts a protobuf CEL declaration to a CEL-native declaration, either a Variable or Function.
cel/decls.go:406
↓ 3 callers
Function
ExprToString
ExprToString converts an AST Expr node back to a string using macro call tracking metadata from source info if any macros are encountered within the e
cel/io.go:151
↓ 3 callers
Function
ExpressionSizeCodePointLimit
ExpressionSizeCodePointLimit is an option which limits the maximum code point count of an expression.
parser/options.go:93
↓ 3 callers
Function
ExpressionUnnestHeight
ExpressionUnnestHeight determines the height at which nested expressions are split into local variables within the cel.@block declaration.
policy/composer.go:39
↓ 3 callers
Function
FileDescriptorSet
FileDescriptorSet creates a Test Runner Option which adds a file descriptor set to the test runner. The file descriptor set is used to register proto
tools/celtest/test_runner.go:473
↓ 3 callers
Method
FindIdentInScope
FindIdentInScope finds the first ident Decl with a matching name in the current Scopes value, or nil if one does not exist. Note: The search is only p
checker/scopes.go:76
↓ 3 callers
Method
FindInt64Key
(int64)
common/types/map_test.go:1358
↓ 3 callers
Method
FindOverload
FindOverload returns an Overload definition matching the provided name.
interpreter/dispatcher.go:29
↓ 3 callers
Function
FindReverse
FindReverse returns the unmangled, text representation of the operator.
common/operators/operators.go:116
↓ 3 callers
Method
FindStructType
FindStructType returns the Type give a qualified type name. For historical reasons, only struct types are expected to be returned through this method
common/types/provider.go:444
↓ 3 callers
Method
FindType
FindType looks up the Type given a qualified typeName. Returns false if not found.
common/types/ref/provider.go:36
↓ 3 callers
Method
FnDecl
()
repl/parser/commands_parser.go:1781
↓ 3 callers
Method
Function
Function name to match.
parser/macro.go:103
↓ 3 callers
Function
FunctionDocs
FunctionDocs provides a general usage documentation for the function. Use OverloadExamples to provide example usage instructions for specific overloa
cel/decls.go:247
↓ 3 callers
Method
Get
Get implements the traits.Indexer interface method.
common/types/list.go:615
↓ 3 callers
Method
GetE1
GetE1 returns the e1 rule contexts.
repl/parser/commands_parser.go:4386
↓ 3 callers
Method
GetEnumNames
GetEnumNames returns the string names of all enum values in the file.
common/types/pb/file.go:97
↓ 3 callers
Method
GetFields
GetFields returns the fields rule context list.
repl/parser/commands_parser.go:8229
↓ 3 callers
Method
GetFn
GetFn returns the fn rule contexts.
repl/parser/commands_parser.go:952
↓ 3 callers
Method
GetLocationByOffset
GetLocationByOffset returns the line and column information for a given character offset.
common/ast/ast.go:405
↓ 3 callers
Method
GetOverloadIDs
GetOverloadIDs returns the set of overload function names for a given expression id. If the expression id is not a function call, or the AST is not t
common/ast/ast.go:79
↓ 3 callers
Method
GetT
GetT returns the t rule contexts.
repl/parser/commands_parser.go:1903
↓ 3 callers
Method
GetVar_
GetVar_ returns the var_ rule contexts.
repl/parser/commands_parser.go:949
↓ 3 callers
Method
GlobalCall
GlobalCall creates a function call Expr value for a global (free) function.
cel/macro.go:127
↓ 3 callers
Function
Globals
Globals sets the global variable values for a given program. These values may be shadowed by variables with the same name provided to the Eval() call.
cel/options.go:556
↓ 3 callers
Method
HasOptionalOutput
HasOptionalOutput returns whether the rule returns a concrete or optional value. The rule may return an optional value if all match expressions under
policy/compiler.go:82
↓ 3 callers
Method
HasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:391
↓ 3 callers
Function
HomogeneousAggregateLiterals
HomogeneousAggregateLiterals disables mixed type list and map literal values. Note, it is still possible to have heterogeneous aggregates when provid
cel/options.go:249
↓ 3 callers
Method
Imports
Imports returns the list of imports associated with the policy.
policy/parser.go:88
↓ 3 callers
Function
InitEmptyUnaryContext
(p *UnaryContext)
parser/gen/cel_parser.go:1770
↓ 3 callers
Function
InitEmptyUnaryContext
(p *UnaryContext)
repl/parser/commands_parser.go:5728
↓ 3 callers
Method
Insert
Insert a key, value pair into the map, returning the map if the insert is successful and an error if key already exists in the mutable map.
common/types/traits/mapper.go:44
↓ 3 callers
Method
IsAsync
IsAsync returns true if the function has an async binding.
common/decls/decls.go:326
↓ 3 callers
Method
IsChecked
IsChecked returns whether the AST is type-checked.
common/ast/ast.go:103
↓ 3 callers
Method
IsEnum
IsEnum returns true if the field type refers to an enum value.
common/types/pb/type.go:342
↓ 3 callers
Method
IsMemberFunction
IsMemberFunction indicates whether the overload is a member function
common/decls/decls.go:725
↓ 3 callers
Function
JSONParse
JSONParse parses a JSON string into a dynamic CEL ref.Val using the given type adapter. If adapter is nil, types.DefaultTypeAdapter is used.
ext/encoders.go:341
↓ 3 callers
Method
LineOffsets
LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
common/ast/ast.go:308
↓ 3 callers
Method
LocationOffset
LocationOffset translates a Location to an offset. Given the line and column of the Location returns the Location's character offset in the Source, an
common/source.go:43
↓ 3 callers
Function
MathVersion
MathVersion sets the library version for math extensions.
ext/math.go:398
↓ 3 callers
Function
MaxExpressionNodeCount
MaxExpressionNodeCount limits the maximum number of expression nodes that may be emitted by the parser, including nodes created by macro expansion.
parser/options.go:105
↓ 3 callers
Function
MaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 3 callers
Function
MaybeMergeUnknowns
MaybeMergeUnknowns determines whether an input value and another, possibly nil, unknown will produce an unknown result. If the input `val` is another
common/types/unknown.go:279
↓ 3 callers
Method
MaybeUnwrap
MaybeUnwrap accepts a proto message as input and unwraps it to a primitive CEL type if possible. This method returns the unwrapped value and 'true',
common/types/pb/type.go:134
↓ 3 callers
Function
MemoryTrackerLimit
MemoryTrackerLimit sets a limit on the peak aggregate memory observed during tracking. The tracker does not enforce the limit itself; callers should
common/types/memory_tracker.go:32
↓ 3 callers
Method
Metadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:108
↓ 3 callers
Method
Modulo
Modulo returns the result of taking the modulus of the current value by the denominator. A denominator value of zero results in an error.
common/types/traits/math.go:42
↓ 3 callers
Method
Name
Name returns the snake_case name of the field within the proto-based struct.
common/types/pb/type.go:380
↓ 3 callers
Method
Name
Name returns the fully-qualified variable name
common/decls/decls.go:1147
↓ 3 callers
Function
NativeTypeAdapter
NativeTypeAdapter sets the TypeAdapter to use when adapting nested dynamic fields for a NativeType.
common/types/native.go:73
↓ 3 callers
Function
NativeTypeAlias
NativeTypeAlias configures a custom CEL type name (alias) for a native type.
common/types/native.go:81
↓ 3 callers
Function
NewBufferAndLineOffsetsWithLimit
NewBufferAndLineOffsetsWithLimit returns an efficient implementation of Buffer for the given text and enforces a code point limit while constructing t
common/runes/buffer.go:143
↓ 3 callers
Function
NewCommandsLexer
NewCommandsLexer produces a new lexer instance for the optional input antlr.CharStream.
repl/parser/commands_lexer.go:345
↓ 3 callers
Function
NewCommandsParser
NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
repl/parser/commands_parser.go:282
↓ 3 callers
Function
NewConstant
NewConstant creates a new constant declaration.
common/decls/decls.go:1116
↓ 3 callers
Function
NewError
NewError creates an error associated with an expression id with the given message at the given location.
common/error.go:24
↓ 3 callers
Function
NewExampleDoc
NewExampleDoc creates a new Doc struct specifically for holding an example.
common/doc.go:161
↓ 3 callers
Function
NewFunctionWithDoc
NewFunctionWithDoc creates a serializable function and overload set.
common/env/env.go:346
↓ 3 callers
Function
NewObjectType
NewObjectType creates an object type for a qualified type name.
checker/decls/decls.go:168
↓ 3 callers
Function
NewObjectTypeValue
NewObjectTypeValue creates a type reference to an externally defined type. Deprecated: use cel.ObjectType(typeName)
common/types/types.go:588
↓ 3 callers
Function
NewTestRunner
NewTestRunner creates a Test Runner with the provided options. The options can be used to: - configure the Compiler used for parsing and compiling the
tools/celtest/test_runner.go:419
↓ 3 callers
Function
NewTypeValue
NewTypeValue creates an opaque type which has a set of optional type traits as defined in the common/types/traits package. Deprecated: use cel.Object
common/types/types.go:596
↓ 3 callers
Method
NewValue
NewValue creates a new type value from a qualified name and map of field name to value. Note, for each value, the Val.ConvertToNative function will b
common/types/provider.go:461
↓ 3 callers
Function
NewVariableWithDoc
NewVariableWithDoc returns a serializable variable from a name, type definition, and doc string.
common/env/env.go:249
↓ 3 callers
Method
NodeID
()
interpreter/interpreter_test.go:2003
↓ 3 callers
Function
Optional
Optional creates an expression representing an optional which holds a value of the given size. From cost model version 1 an optional is 1 plus the si
common/cost/model.go:1049
↓ 3 callers
Method
Options
Options returns the NativeTypeOption slice for this descriptor.
common/types/native.go:100
↓ 3 callers
Method
ParseSource
ParseSource parses the input source to an Ast and/or set of Issues. Parsing has failed if the returned Issues value and its Issues.Err() value is non
cel/env.go:779
↓ 3 callers
Function
ParseTimestamp
ParseTimestamp attempts to parse a timestamp from various supported types and representations: - time.Time, Timestamp, *timestamppb.Timestamp - RFC 33
common/types/timestamp.go:272
↓ 3 callers
Function
ParseTypeDesc
ParseTypeDesc parses a TypeDesc from the type specifier format: "map<string, int>"
common/env/io.go:257
↓ 3 callers
Function
ParsedExprToAst
ParsedExprToAst converts a parsed expression proto message to an Ast.
cel/io.go:74
↓ 3 callers
Function
ParserRecursionLimit
ParserRecursionLimit adjusts the AST depth the parser will tolerate. Defaults defined in the parser package.
cel/options.go:1176
↓ 3 callers
Function
PartialEvalProgramOption
PartialEvalProgramOption returns a TestRunnerOption which enables partial evaluation for the CEL program by setting the OptPartialEval eval option. N
tools/celtest/test_runner.go:537
← previous
next →
1,101–1,200 of 9,178, ranked by callers