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
↓ 2 callers
Function
ByteSource
ByteSource converts a byte sequence and location description to a model.Source.
policy/source.go:22
↓ 2 callers
Method
Calc
(i int)
repl/parser/commands_parser.go:5412
↓ 2 callers
Method
Claim
Claim queries a claim value by key name using the provided types.Adapter, returning an optional dyn value.
ext/security/jwt/jwt.go:305
↓ 2 callers
Function
ClearMacros
ClearMacros options clears all parser macros. Clearing macros will ensure CEL expressions can only contain linear evaluation paths, as comprehensions
cel/options.go:162
↓ 2 callers
Method
ClearOffsetRange
ClearOffsetRange removes the OffsetRange for the given expression id.
common/ast/ast.go:377
↓ 2 callers
Function
Clock
Clock sets a custom clock function for time validation (defaults to time.Now).
ext/security/jwt/jwt.go:82
↓ 2 callers
Method
Cmd
Cmd returns the normalized name for the command.
repl/commands.go:113
↓ 2 callers
Method
ConditionIsLiteral
ConditionIsLiteral indicates whether the condition for the match is a literal with a given value.
policy/compiler.go:153
↓ 2 callers
Method
Contains
Contains returns true if the input unknown is a subset of the current unknown.
common/types/unknown.go:200
↓ 2 callers
Method
ConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/timestamp.go:159
↓ 2 callers
Method
ConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/native.go:253
↓ 2 callers
Method
ConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/duration.go:94
↓ 2 callers
Method
ConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/timestamp.go:187
↓ 2 callers
Method
ConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/native.go:258
↓ 2 callers
Method
ConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/duration.go:122
↓ 2 callers
Method
Copy
Copy copies the current state of the registry into its own memory space.
common/types/provider.go:225
↓ 2 callers
Method
CostCall
CostCall calculates the runtime cost for a function call.
common/cost/tracker.go:262
↓ 2 callers
Function
CostTrackerLimit
CostTrackerLimit sets the runtime limit on the evaluation cost during execution and will terminate the expression evaluation if the limit is exceeded.
interpreter/runtimecost.go:53
↓ 2 callers
Function
CrossTypeNumericComparisons
CrossTypeNumericComparisons makes it possible to compare across numeric types, e.g. double < int
cel/options.go:1120
↓ 2 callers
Function
CustomDecorator
CustomDecorator configures a custom interpretable decorator for the program.
interpreter/interpreter.go:165
↓ 2 callers
Function
Declarations
Declarations option extends the declaration set configured in the environment. Note: Declarations will by default be appended to the pre-existing dec
cel/options.go:205
↓ 2 callers
Function
DefaultTagVisitor
DefaultTagVisitor creates a tag visitor which produces errors for any non-canonical YAML tag.
policy/parser.go:489
↓ 2 callers
Function
DefaultUTCTimeZone
DefaultUTCTimeZone ensures that time-based operations use the UTC timezone rather than the input time's local timezone.
cel/options.go:1126
↓ 2 callers
Method
DelLetVar
DelLetVar removes a variable from the evaluation context. If deleting the variable breaks a later expression, this function will return an error witho
repl/evaluator.go:705
↓ 2 callers
Method
Description
Description provides an overview of the function's purpose. Usage examples should be included on specific overloads.
common/decls/decls.go:125
↓ 2 callers
Method
Description
Description returns the usage documentation for the variable, if set. Good usage instructions provide information about the valid formats, ranges, si
common/decls/decls.go:1157
↓ 2 callers
Method
Descriptor
()
test/proto3pb/test_all_types.pb.go:62
↓ 2 callers
Method
Descriptor
()
test/proto2pb/test_all_types.pb.go:122
↓ 2 callers
Function
DrainAll
DrainAll returns a strategy that waits for all currently pending calls to complete before re-evaluating. Note: This strategy is optimal for independe
cel/async/async.go:105
↓ 2 callers
Function
DrainNone
DrainNone returns a strategy that re-evaluates after every single completion. This is the default strategy.
cel/async/async.go:70
↓ 2 callers
Function
EditDistance
EditDistance calculates the Damerau-Levenshtein distance between two strings, taking into account insertions, deletions, substitutions, and adjacent t
common/env/catalog.go:206
↓ 2 callers
Method
Elements
()
common/ast/expr.go:635
↓ 2 callers
Function
EnableCoverage
EnableCoverage returns a TestRunnerOption which enables coverage calculation for the test run.
tools/celtest/test_runner.go:545
↓ 2 callers
Function
EnableErrorOnBadPresenceTest
EnableErrorOnBadPresenceTest error generation when a presence test or optional field selection is performed on a primitive type.
interpreter/attributes.go:134
↓ 2 callers
Function
EnableErrorOnBadPresenceTest
EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field selection is performed on a primitive type.
cel/library.go:974
↓ 2 callers
Function
EnableHiddenAccumulatorName
EnableHiddenAccumulatorName uses an accumulator variable name that is not a normally accessible identifier in source for comprehension macros. Compati
parser/options.go:161
↓ 2 callers
Method
Entries
()
common/ast/expr.go:674
↓ 2 callers
Method
Enum
()
test/proto3pb/test_all_types.pb.go:52
↓ 2 callers
Function
EquivIgnoreIdentifiers
EquivIgnoreIdentifiers configures whether comprehension variable names (accuVar, iterVar, iterVar2) should be ignored during equivalence comparison.
common/ast/equiv.go:48
↓ 2 callers
Function
ErrorReportingLimit
ErrorReportingLimit limits the number of syntax error reports before terminating parsing. The limit must be at least 1. If unset, the limit will be 1
parser/options.go:81
↓ 2 callers
Method
EscapeIdent
()
parser/gen/cel_parser.go:5252
↓ 2 callers
Method
EscapeIdent
()
repl/parser/commands_parser.go:9210
↓ 2 callers
Function
EscapeIdentifiers
EscapeIdentifiers enables backtick (`) escaping for non-standard and reserved identifiers, function names, and field names when unparsing.
parser/unparser.go:656
↓ 2 callers
Function
EstimateStringScan
EstimateStringScan estimates cost for scanning a string.
common/cost/cost.go:443
↓ 2 callers
Function
EstimateTraversal
EstimateTraversal computes cost as a function of the size of the target object and whether the call allocates memory.
common/cost/cost.go:434
↓ 2 callers
Method
EvalUnary
EvalUnary records the cost for a unary call expression.
common/cost/tracker.go:233
↓ 2 callers
Method
Exec
Exec implements the InterpretableV2 interface method.
interpreter/async.go:98
↓ 2 callers
Method
Expander
Expander returns the MacroExpander to apply when the macro key matches the parsed call signature.
parser/macro.go:123
↓ 2 callers
Method
ExprList
()
parser/gen/cel_parser.go:3962
↓ 2 callers
Method
ExprList
()
repl/parser/commands_parser.go:7920
↓ 2 callers
Function
ExprValueAsAlphaProto
ExprValueAsAlphaProto converts between ref.Val and google.api.expr.v1alpha1.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:185
↓ 2 callers
Function
ExprValueAsProto
ExprValueAsProto converts between ref.Val and cel.expr.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:197
↓ 2 callers
Method
Expression
Expression returns the variable expression.
policy/parser.go:325
↓ 2 callers
Function
ExpressionNodeLimit
ExpressionNodeLimit adjusts the maximum number of expression nodes permitted during parsing and checking, including nodes created by macro expansion.
cel/options.go:1195
↓ 2 callers
Method
ExtendEnv
ExtendEnv auguments the context's environment with the additional options.
cel/optimizer.go:251
↓ 2 callers
Method
FileDescriptions
FileDescriptions returns the set of file descriptions associated with this db.
common/types/pb/pb.go:162
↓ 2 callers
Method
FileDescriptor
FileDescriptor returns the proto file descriptor associated with the file representation.
common/types/pb/file.go:85
↓ 2 callers
Function
Find
Find the internal function name for an operator, if the input text is one.
common/operators/operators.go:110
↓ 2 callers
Method
Find
(key ref.Val)
common/types/map.go:735
↓ 2 callers
Method
Find
Find returns whether the protoreflect.Map contains the input key. If the key is not found the function returns (nil, false).
common/types/map.go:1266
↓ 2 callers
Method
Find
Find searches for symbols in the catalog matching the given name. If an exact match exists, a single-element slice containing that symbol is returned
common/env/catalog.go:95
↓ 2 callers
Method
FindFunction
FindFunction finds the first function Decl with a matching name in Scopes. The search is performed from innermost to outermost. Returns nil if no such
checker/scopes.go:119
↓ 2 callers
Method
FindNative
(any)
common/types/map_test.go:1361
↓ 2 callers
Function
FindReverseBinaryOperator
FindReverseBinaryOperator returns the unmangled, text representation of a binary operator. If the symbol does refer to an operator, but the operator
common/operators/operators.go:128
↓ 2 callers
Method
FindStructFieldType
FindStructFieldType returns the field type for a checked type value. Returns false if the field could not be found.
common/types/provider.go:359
↓ 2 callers
Method
FoldKeyOnly
()
common/types/map_test.go:1953
↓ 2 callers
Function
FormatCELType
FormatCELType formats a cel.Type value to a string representation. The type formatting is identical to FormatType.
cel/env.go:134
↓ 2 callers
Method
Function
Function returns the name of the function being invoked.
interpreter/async.go:78
↓ 2 callers
Method
FunctionEstimator
FunctionEstimator returns a FunctionEstimator implementing the cost model.
common/cost/model.go:1204
↓ 2 callers
Method
GetBb
()
test/proto3pb/test_all_types.pb.go:829
↓ 2 callers
Method
GetCols
GetCols returns the cols token list.
repl/parser/commands_parser.go:8718
↓ 2 callers
Method
GetElems
GetElems returns the elems rule context list.
repl/parser/commands_parser.go:7994
↓ 2 callers
Method
GetEnumDescription
GetEnumDescription returns an EnumDescription for a qualified enum value name declared within the .proto file.
common/types/pb/file.go:91
↓ 2 callers
Method
GetLocation
(exprID int64)
parser/parser_test.go:2685
↓ 2 callers
Method
GetNestedType
()
test/proto3pb/test_all_types.pb.go:443
↓ 2 callers
Method
GetNestedType
()
test/proto2pb/test_all_types.pb.go:488
↓ 2 callers
Method
GetSign
()
parser/gen/cel_parser.go:5899
↓ 2 callers
Method
GetStopLocation
GetStopLocation calculates the human-readable 1-based line and 0-based column of the last character for the expression node at the given id. If the S
common/ast/ast.go:397
↓ 2 callers
Method
HasExplanation
HasExplanation indicates whether the explanation field is set of the match.
policy/parser.go:378
↓ 2 callers
Method
HasFunction
HasFunction returns whether a specific function has been configured in the environment
cel/env.go:725
↓ 2 callers
Method
HasTrait
HasTrait implements the ref.Type interface method.
common/types/native.go:273
↓ 2 callers
Function
Heights
Heights computes the heights of all AST expressions and returns a map from expression id to height.
common/ast/ast.go:194
↓ 2 callers
Method
ID
ID implements the Interpretable interface method.
interpreter/async.go:73
↓ 2 callers
Method
Ident
Ident creates an identifier Expr value.
cel/macro.go:121
↓ 2 callers
Function
IncludeOverloads
IncludeOverloads defines an OverloadSelector which allow-lists a set of overloads by their ids.
common/decls/decls.go:208
↓ 2 callers
Function
InitEmptyEscapeIdentContext
(p *EscapeIdentContext)
parser/gen/cel_parser.go:5122
↓ 2 callers
Function
InitEmptyEscapeIdentContext
(p *EscapeIdentContext)
repl/parser/commands_parser.go:9080
↓ 2 callers
Method
InitVals
InitVals returns all the list elements, map key and values or struct field values.
interpreter/interpretable.go:139
↓ 2 callers
Function
InterruptableEval
InterruptableEval annotates comprehension loops with information that indicates they should check the `#interrupted` state within a custom Activation.
interpreter/interpreter.go:201
↓ 2 callers
Method
IsList
IsList returns true if the YAML node is a list.
policy/yaml.go:25
↓ 2 callers
Method
IsMap
IsMap returns true if the YAML node is a map.
policy/yaml.go:43
↓ 2 callers
Method
IsMemberFunction
()
common/ast/expr.go:486
↓ 2 callers
Method
IsNumber
IsNumber returns true if the YAML node is a number.
policy/yaml.go:77
↓ 2 callers
Method
IsOneof
IsOneof returns true if the field is declared within a oneof block.
common/types/pb/type.go:358
↓ 2 callers
Function
IsTypeConversionFunction
IsTypeConversionFunction returns whether the input function is a standard library type conversion function.
common/overloads/overloads.go:335
↓ 2 callers
Method
IsValidAt
IsValidAt checks whether the token time claims (iat, nbf, exp) are valid at the given reference time with clock leeway tolerance.
ext/security/jwt/jwt.go:263
↓ 2 callers
Method
JSONFieldNames
JSONFieldNames indicates whether the database is configured for proto field accesses by JSON names.
common/types/pb/pb.go:121
↓ 2 callers
Method
Literal
()
parser/gen/cel_parser.go:5941
↓ 2 callers
Method
LiteralInt
LiteralInt creates an Expr value for an int literal.
cel/macro.go:71
↓ 2 callers
Function
MacroDocs
MacroDocs configures a list of strings into a multiline description for the macro.
cel/macro.go:149
← previous
next →
1,401–1,500 of 9,178, ranked by callers