MCPcopy Create free account

hub / github.com/cel-expr/cel-go / functions

Functions9,178 in github.com/cel-expr/cel-go

↓ 2 callersFunctionByteSource
ByteSource converts a byte sequence and location description to a model.Source.
policy/source.go:22
↓ 2 callersMethodCalc
(i int)
repl/parser/commands_parser.go:5412
↓ 2 callersMethodClaim
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 callersFunctionClearMacros
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 callersMethodClearOffsetRange
ClearOffsetRange removes the OffsetRange for the given expression id.
common/ast/ast.go:377
↓ 2 callersFunctionClock
Clock sets a custom clock function for time validation (defaults to time.Now).
ext/security/jwt/jwt.go:82
↓ 2 callersMethodCmd
Cmd returns the normalized name for the command.
repl/commands.go:113
↓ 2 callersMethodConditionIsLiteral
ConditionIsLiteral indicates whether the condition for the match is a literal with a given value.
policy/compiler.go:153
↓ 2 callersMethodContains
Contains returns true if the input unknown is a subset of the current unknown.
common/types/unknown.go:200
↓ 2 callersMethodConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/timestamp.go:159
↓ 2 callersMethodConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/native.go:253
↓ 2 callersMethodConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/duration.go:94
↓ 2 callersMethodConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/timestamp.go:187
↓ 2 callersMethodConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/native.go:258
↓ 2 callersMethodConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/duration.go:122
↓ 2 callersMethodCopy
Copy copies the current state of the registry into its own memory space.
common/types/provider.go:225
↓ 2 callersMethodCostCall
CostCall calculates the runtime cost for a function call.
common/cost/tracker.go:262
↓ 2 callersFunctionCostTrackerLimit
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 callersFunctionCrossTypeNumericComparisons
CrossTypeNumericComparisons makes it possible to compare across numeric types, e.g. double < int
cel/options.go:1120
↓ 2 callersFunctionCustomDecorator
CustomDecorator configures a custom interpretable decorator for the program.
interpreter/interpreter.go:165
↓ 2 callersFunctionDeclarations
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 callersFunctionDefaultTagVisitor
DefaultTagVisitor creates a tag visitor which produces errors for any non-canonical YAML tag.
policy/parser.go:489
↓ 2 callersFunctionDefaultUTCTimeZone
DefaultUTCTimeZone ensures that time-based operations use the UTC timezone rather than the input time's local timezone.
cel/options.go:1126
↓ 2 callersMethodDelLetVar
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 callersMethodDescription
Description provides an overview of the function's purpose. Usage examples should be included on specific overloads.
common/decls/decls.go:125
↓ 2 callersMethodDescription
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 callersMethodDescriptor
()
test/proto3pb/test_all_types.pb.go:62
↓ 2 callersMethodDescriptor
()
test/proto2pb/test_all_types.pb.go:122
↓ 2 callersFunctionDrainAll
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 callersFunctionDrainNone
DrainNone returns a strategy that re-evaluates after every single completion. This is the default strategy.
cel/async/async.go:70
↓ 2 callersFunctionEditDistance
EditDistance calculates the Damerau-Levenshtein distance between two strings, taking into account insertions, deletions, substitutions, and adjacent t
common/env/catalog.go:206
↓ 2 callersMethodElements
()
common/ast/expr.go:635
↓ 2 callersFunctionEnableCoverage
EnableCoverage returns a TestRunnerOption which enables coverage calculation for the test run.
tools/celtest/test_runner.go:545
↓ 2 callersFunctionEnableErrorOnBadPresenceTest
EnableErrorOnBadPresenceTest error generation when a presence test or optional field selection is performed on a primitive type.
interpreter/attributes.go:134
↓ 2 callersFunctionEnableErrorOnBadPresenceTest
EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field selection is performed on a primitive type.
cel/library.go:974
↓ 2 callersFunctionEnableHiddenAccumulatorName
EnableHiddenAccumulatorName uses an accumulator variable name that is not a normally accessible identifier in source for comprehension macros. Compati
parser/options.go:161
↓ 2 callersMethodEntries
()
common/ast/expr.go:674
↓ 2 callersMethodEnum
()
test/proto3pb/test_all_types.pb.go:52
↓ 2 callersFunctionEquivIgnoreIdentifiers
EquivIgnoreIdentifiers configures whether comprehension variable names (accuVar, iterVar, iterVar2) should be ignored during equivalence comparison.
common/ast/equiv.go:48
↓ 2 callersFunctionErrorReportingLimit
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 callersMethodEscapeIdent
()
parser/gen/cel_parser.go:5252
↓ 2 callersMethodEscapeIdent
()
repl/parser/commands_parser.go:9210
↓ 2 callersFunctionEscapeIdentifiers
EscapeIdentifiers enables backtick (`) escaping for non-standard and reserved identifiers, function names, and field names when unparsing.
parser/unparser.go:656
↓ 2 callersFunctionEstimateStringScan
EstimateStringScan estimates cost for scanning a string.
common/cost/cost.go:443
↓ 2 callersFunctionEstimateTraversal
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 callersMethodEvalUnary
EvalUnary records the cost for a unary call expression.
common/cost/tracker.go:233
↓ 2 callersMethodExec
Exec implements the InterpretableV2 interface method.
interpreter/async.go:98
↓ 2 callersMethodExpander
Expander returns the MacroExpander to apply when the macro key matches the parsed call signature.
parser/macro.go:123
↓ 2 callersMethodExprList
()
parser/gen/cel_parser.go:3962
↓ 2 callersMethodExprList
()
repl/parser/commands_parser.go:7920
↓ 2 callersFunctionExprValueAsAlphaProto
ExprValueAsAlphaProto converts between ref.Val and google.api.expr.v1alpha1.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:185
↓ 2 callersFunctionExprValueAsProto
ExprValueAsProto converts between ref.Val and cel.expr.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:197
↓ 2 callersMethodExpression
Expression returns the variable expression.
policy/parser.go:325
↓ 2 callersFunctionExpressionNodeLimit
ExpressionNodeLimit adjusts the maximum number of expression nodes permitted during parsing and checking, including nodes created by macro expansion.
cel/options.go:1195
↓ 2 callersMethodExtendEnv
ExtendEnv auguments the context's environment with the additional options.
cel/optimizer.go:251
↓ 2 callersMethodFileDescriptions
FileDescriptions returns the set of file descriptions associated with this db.
common/types/pb/pb.go:162
↓ 2 callersMethodFileDescriptor
FileDescriptor returns the proto file descriptor associated with the file representation.
common/types/pb/file.go:85
↓ 2 callersFunctionFind
Find the internal function name for an operator, if the input text is one.
common/operators/operators.go:110
↓ 2 callersMethodFind
(key ref.Val)
common/types/map.go:735
↓ 2 callersMethodFind
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 callersMethodFind
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 callersMethodFindFunction
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 callersMethodFindNative
(any)
common/types/map_test.go:1361
↓ 2 callersFunctionFindReverseBinaryOperator
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 callersMethodFindStructFieldType
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 callersMethodFoldKeyOnly
()
common/types/map_test.go:1953
↓ 2 callersFunctionFormatCELType
FormatCELType formats a cel.Type value to a string representation. The type formatting is identical to FormatType.
cel/env.go:134
↓ 2 callersMethodFunction
Function returns the name of the function being invoked.
interpreter/async.go:78
↓ 2 callersMethodFunctionEstimator
FunctionEstimator returns a FunctionEstimator implementing the cost model.
common/cost/model.go:1204
↓ 2 callersMethodGetBb
()
test/proto3pb/test_all_types.pb.go:829
↓ 2 callersMethodGetCols
GetCols returns the cols token list.
repl/parser/commands_parser.go:8718
↓ 2 callersMethodGetElems
GetElems returns the elems rule context list.
repl/parser/commands_parser.go:7994
↓ 2 callersMethodGetEnumDescription
GetEnumDescription returns an EnumDescription for a qualified enum value name declared within the .proto file.
common/types/pb/file.go:91
↓ 2 callersMethodGetLocation
(exprID int64)
parser/parser_test.go:2685
↓ 2 callersMethodGetNestedType
()
test/proto3pb/test_all_types.pb.go:443
↓ 2 callersMethodGetNestedType
()
test/proto2pb/test_all_types.pb.go:488
↓ 2 callersMethodGetSign
()
parser/gen/cel_parser.go:5899
↓ 2 callersMethodGetStopLocation
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 callersMethodHasExplanation
HasExplanation indicates whether the explanation field is set of the match.
policy/parser.go:378
↓ 2 callersMethodHasFunction
HasFunction returns whether a specific function has been configured in the environment
cel/env.go:725
↓ 2 callersMethodHasTrait
HasTrait implements the ref.Type interface method.
common/types/native.go:273
↓ 2 callersFunctionHeights
Heights computes the heights of all AST expressions and returns a map from expression id to height.
common/ast/ast.go:194
↓ 2 callersMethodID
ID implements the Interpretable interface method.
interpreter/async.go:73
↓ 2 callersMethodIdent
Ident creates an identifier Expr value.
cel/macro.go:121
↓ 2 callersFunctionIncludeOverloads
IncludeOverloads defines an OverloadSelector which allow-lists a set of overloads by their ids.
common/decls/decls.go:208
↓ 2 callersFunctionInitEmptyEscapeIdentContext
(p *EscapeIdentContext)
parser/gen/cel_parser.go:5122
↓ 2 callersFunctionInitEmptyEscapeIdentContext
(p *EscapeIdentContext)
repl/parser/commands_parser.go:9080
↓ 2 callersMethodInitVals
InitVals returns all the list elements, map key and values or struct field values.
interpreter/interpretable.go:139
↓ 2 callersFunctionInterruptableEval
InterruptableEval annotates comprehension loops with information that indicates they should check the `#interrupted` state within a custom Activation.
interpreter/interpreter.go:201
↓ 2 callersMethodIsList
IsList returns true if the YAML node is a list.
policy/yaml.go:25
↓ 2 callersMethodIsMap
IsMap returns true if the YAML node is a map.
policy/yaml.go:43
↓ 2 callersMethodIsMemberFunction
()
common/ast/expr.go:486
↓ 2 callersMethodIsNumber
IsNumber returns true if the YAML node is a number.
policy/yaml.go:77
↓ 2 callersMethodIsOneof
IsOneof returns true if the field is declared within a oneof block.
common/types/pb/type.go:358
↓ 2 callersFunctionIsTypeConversionFunction
IsTypeConversionFunction returns whether the input function is a standard library type conversion function.
common/overloads/overloads.go:335
↓ 2 callersMethodIsValidAt
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 callersMethodJSONFieldNames
JSONFieldNames indicates whether the database is configured for proto field accesses by JSON names.
common/types/pb/pb.go:121
↓ 2 callersMethodLiteral
()
parser/gen/cel_parser.go:5941
↓ 2 callersMethodLiteralInt
LiteralInt creates an Expr value for an int literal.
cel/macro.go:71
↓ 2 callersFunctionMacroDocs
MacroDocs configures a list of strings into a multiline description for the macro.
cel/macro.go:149
← previousnext →1,401–1,500 of 9,178, ranked by callers