MCPcopy Create free account

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

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

↓ 4 callersFunctionSizeCalculatorMaxDepth
SizeCalculatorMaxDepth sets the maximum object depth limit before saturating to math.MaxUint32.
common/types/size_calc.go:42
↓ 4 callersFunctionSizeCalculatorStringUnitLength
SizeCalculatorStringUnitLength sets the number of string or bytes value bytes which count as a single element (default 10). Values less than 1 are tre
common/types/size_calc.go:62
↓ 4 callersMethodSource
Source returns the policy file contents as a CEL source object.
policy/parser.go:78
↓ 4 callersMethodSourceID
SourceID returns the expression id associated with the output expression.
policy/compiler.go:186
↓ 4 callersFunctionStandardOverloadTrackers
StandardOverloadTrackers returns the map of FunctionTracker instances for standard overloads.
common/cost/standard.go:238
↓ 4 callersMethodSubset
Subset returns a new function declaration which contains only the overloads with the specified IDs. If the subset function contains no overloads, then
common/decls/decls.go:234
↓ 4 callersFunctionToAST
ToAST converts a CheckedExpr protobuf to an AST instance.
common/ast/conversion.go:78
↓ 4 callersFunctionToDebugStringWithIDs
ToDebugStringWithIDs returns a string representation with AST node IDs.
common/debug/debug.go:327
↓ 4 callersFunctionToFoldableMap
ToFoldableMap will create a Foldable version of a map suitable for key-value pair iteration. For values which are already Foldable, this call is a no
common/types/map.go:1462
↓ 4 callersFunctionToProto
ToProto converts an AST to a CheckedExpr protobouf.
common/ast/conversion.go:44
↓ 4 callersMethodTrack
Track observes a value as a watermark, returning its aggregate size with saturation at math.MaxUint32.
common/types/memory_tracker.go:108
↓ 4 callersMethodTrackSize
TrackSize computes the actual runtime size of a value during cost tracking.
common/cost/strategy.go:28
↓ 4 callersFunctionTrackerLimit
TrackerLimit sets the runtime limit on the evaluation cost during execution and will terminate the expression evaluation if the limit is exceeded.
common/cost/tracker.go:74
↓ 4 callersFunctionTraversal
Traversal creates an expression representing the traversal and optional allocation cost over an expression.
common/cost/model.go:946
↓ 4 callersMethodUnary
Getter signatures
repl/parser/commands_parser.go:5410
↓ 4 callersFunctionUnparseType
UnparseType pretty-prints a type for the REPL.
repl/typefmt.go:41
↓ 4 callersFunctionValToConstant
ValToConstant converts a CEL-native ref.Val to a protobuf Constant. Only simple scalar types are supported by this method.
common/ast/conversion.go:640
↓ 4 callersFunctionValidateDurationLiterals
ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
cel/validator.go:226
↓ 4 callersFunctionValidateOverloadModels
ValidateOverloadModels reports the first model which is not well-formed.
common/cost/validate.go:129
↓ 4 callersMethodVersionNumber
VersionNumber returns the parsed version string, or an error if the version cannot be parsed.
common/env/env.go:502
↓ 4 callersMethodVisit
(tree antlr.ParseTree)
repl/typefmt.go:65
↓ 4 callersFunctionactualV0
actualV0 returns a ModelVersion0 runtime cost expectation for a cost table entry.
ext/sets_test.go:499
↓ 4 callersFunctionadaptToV2
adaptToV2 adapts a V1 Interpretable implementation to the V2 interface. This adapter is used to bridge the legacy Interpretable interface to the mode
interpreter/interpretable.go:54
↓ 4 callersMethodadapterFrom
()
common/types/native.go:503
↓ 4 callersFunctionaddInt64Checked
addInt64Checked performs addition with overflow detection of two int64 values. If the operation fails the error return value will be non-nil.
common/types/overflow.go:29
↓ 4 callersMethodapplyContext
applyContext evaluates the let expressions in the context to build an activation for the given expression. returns the environment for compiling and p
repl/evaluator.go:1010
↓ 4 callersFunctionboundsOf
(s SizeEstimate)
common/cost/algebra_test.go:63
↓ 4 callersFunctioncombineListSize
combineListSize constructs a list SizeEstimate combining container length and element size. A list that can be non-empty (Max > 0) whose element size
common/cost/default_strategy.go:474
↓ 4 callersFunctioncombineMapSize
combineMapSize constructs a map SizeEstimate combining map size, key size, and value size. As with combineListSize, a map that can be non-empty (Max
common/cost/default_strategy.go:497
↓ 4 callersFunctioncomputeTypeSize
computeTypeSize returns a fixed unit size estimate if the type is a constant-size scalar. computeTypeSize returns the size every value of a type has a
common/cost/estimator.go:1309
↓ 4 callersFunctionconstructActivation
(t testing.TB, in any)
common/cost/cost_test.go:690
↓ 4 callersFunctionconvertProto
(src, dst proto.Message)
cel/io.go:390
↓ 4 callersFunctiondescribeQuantityExpr
describeQuantityExpr reports the constructor name of a quantity expression and its operands. Every expression type must be listed: an omission makes
common/cost/validate.go:224
↓ 4 callersFunctiondoubleToUint64Lossless
(v float64)
common/types/overflow.go:399
↓ 4 callersMethodensureMutable
()
common/types/provider.go:243
↓ 4 callersFunctionestimateConditionalSize
estimateConditionalSize computes the union SizeEstimate of the branches in a conditional call.
common/cost/default_strategy.go:330
↓ 4 callersFunctionestimateScalarOrFallback
estimateScalarOrFallback returns size estimates using custom estimator hints or primitive type sizes.
common/cost/default_strategy.go:449
↓ 4 callersFunctionestimateWith
estimateWith estimates an expression as a compiled model evaluates it.
common/cost/algebra_test.go:54
↓ 4 callersMethodeval
(expr string)
tools/celtest/test_runner.go:857
↓ 4 callersFunctionexpectNativeToValue
(t *testing.T, in any, out ref.Val)
common/types/provider_test.go:1243
↓ 4 callersMethodfind
(from *types.Type)
checker/mapping.go:70
↓ 4 callersFunctionformatTo
(sb *strings.Builder, val ref.Val)
common/types/format.go:23
↓ 4 callersFunctiongetElem
(t *testing.T, list traits.Indexer, index ref.Val)
common/types/list_test.go:868
↓ 4 callersFunctionint64ToUint64Lossless
(v int64)
common/types/overflow.go:421
↓ 4 callersFunctionisDigit
(r rune)
parser/lexer.go:203
↓ 4 callersMethodisDyn
isDyn indicates whether the type is dynamic in any way.
common/types/types.go:421
↓ 4 callersFunctionisNumericArgType
(arg ast.Expr)
ext/math.go:917
↓ 4 callersFunctionisQualifyRawStructType
(rt reflect.Type)
common/types/provider.go:1246
↓ 4 callersFunctionjsonParseDynamic
(str string)
ext/encoders.go:645
↓ 4 callersFunctionjsonUnmarshalExact
(str string, out any)
ext/encoders.go:614
↓ 4 callersFunctionjsonUnmarshalNative
(str string, rt reflect.Type)
ext/encoders.go:923
↓ 4 callersMethodkeyToRefVal
(k K)
common/types/map.go:598
↓ 4 callersFunctionlateBoundComprehensionEnv
lateBoundComprehensionEnv declares the late-bound functions exercised by the comprehension tests. Comprehensions install a nested scope (a folder) on
cel/cel_test.go:6423
↓ 4 callersFunctionledgerV0
ledgerV0 passes an optional ModelVersion0 runtime cost expectation to testEvalWithCost.
ext/sets_test.go:504
↓ 4 callersMethodlocationByID
(id int64)
checker/checker.go:710
↓ 4 callersMethodmarkLegacyTracked
(e ast.Expr)
common/cost/estimator.go:626
↓ 4 callersFunctionmatchOperandTrait
matchOperandTrait returns true if the operand satisfies the trait required by the function implementation, or if the implementation does not require a
interpreter/interpretable.go:1012
↓ 4 callersFunctionmatchSlot
(name string, slotCount int)
ext/bindings.go:355
↓ 4 callersFunctionmaybeUnwrapOptional
(t *types.Type)
checker/types.go:49
↓ 4 callersFunctionmustActivation
(t *testing.T, vars map[string]any)
interpreter/activation_test.go:429
↓ 4 callersFunctionmustFunctionVars
(t *testing.T, vars any, funcs map[string]functions.LateBoundOp)
interpreter/activation_test.go:438
↓ 4 callersFunctionnetworkCIDRCompareCost
networkCIDRCompareCost returns the address comparison cost for a CIDR receiver, which reads the CIDR twice and therefore scans at twice StringCostFact
ext/network.go:845
↓ 4 callersFunctionnewConcatList
(adapter Adapter, prevList, nextList traits.Lister)
common/types/list.go:522
↓ 4 callersFunctionnewFolder
newFolder creates or initializes a pooled folder instance.
interpreter/interpretable.go:1945
↓ 4 callersFunctionnewIdent
(name string, t *exprpb.Type, v *exprpb.Constant, desc string)
checker/decls/decls.go:115
↓ 4 callersFunctionnewOptionalCompositionStep
newOptionalCompositionStep returns an output step with an optional policy output.
policy/composer.go:559
↓ 4 callersFunctionnormalize
(s string)
policy/compiler_test.go:533
↓ 4 callersFunctionnormalize
normalize moves scale factors outward so that each product and each uniformly scaled sum is rounded once: Scale(Scale(a, f), g) -> Scale(
common/cost/helper.go:358
↓ 4 callersFunctionoptimizerEnv
(t *testing.T)
cel/optimizer_test.go:323
↓ 4 callersFunctionoptionalSizeOf
optionalSizeOf returns the size of an optional which holds a value of size v, from cost model version 1: 1 plus the value, whose size is the optional'
common/cost/estimator.go:1330
↓ 4 callersFunctionparseCIDR
(raw string)
ext/network.go:480
↓ 4 callersMethodparseElementExpr
parseElementExpr parses one element of a delimited construct (list, map, struct or argument list), accumulating lastParsedDepth to the deepest element
parser/pratt_parser.go:473
↓ 4 callersMethodparseExpr
()
parser/pratt_parser.go:456
↓ 4 callersFunctionparseStructTag
parseStructTag parses a struct field's tag for the given tagName (e.g. "cel" or "json"). If the tag name or leading comma-separated segment is "-" (s
common/types/native.go:431
↓ 4 callersMethodpush
push adds a variable name to the scope stack with its path and size estimates.
common/cost/estimator.go:237
↓ 4 callersMethodpushLocalVar
pushLocalVar records a local variable binding with its path and size estimates.
common/cost/estimator.go:324
↓ 4 callersMethodrecordCallCost
(call Call, args []ref.Val, result ref.Val)
common/cost/tracker.go:222
↓ 4 callersFunctionreleaseFolder
releaseFolder resets and releases a pooled folder instance.
interpreter/interpretable.go:1953
↓ 4 callersMethodresolveHash
(alg string)
ext/security/hmac/hmac.go:405
↓ 4 callersFunctionruntimeTypePtr
runtimeTypePtr returns the Go runtime *_type pointer for the given reflect.Type.
common/types/provider.go:1139
↓ 4 callersFunctionsafeUint32FromInt
(n int)
common/types/overflow.go:438
↓ 4 callersMethodsetError
(start, end int32, msg string)
parser/lexer.go:256
↓ 4 callersMethodsetSize
setSize stores a computed size estimate for an expression ID.
common/cost/estimator.go:1147
↓ 4 callersFunctionstrategyOf
strategyOf returns the sizing strategy of a context. A context which does not report one, such as a third-party EstimateContext, is sized by the defau
common/cost/helper.go:69
↓ 4 callersFunctionstringTransformEvalCost
stringTransformEvalCost is the EvalCost of the O(n) string transforms: a scan of the receiver and the result's length.
ext/strings.go:905
↓ 4 callersFunctiontestProtosEnv
testProtosEnv initializes the test environment common to all tests.
ext/protos_test.go:213
↓ 4 callersFunctiontestRegexEnv
(t *testing.T, opts ...cel.EnvOption)
ext/regex_test.go:264
↓ 4 callersFunctiontrackModelCost
trackModelCost compiles a single-argument global model and returns its tracked cost for the given argument value. The model is exempt from minCallCost
common/cost/totals_test.go:41
↓ 4 callersMethodundeclaredReference
(id int64, l common.Location, container string, name string)
checker/errors.go:98
↓ 4 callersFunctionunescape
Unescape takes a quoted string, unquotes, and unescapes it. This function performs escaping compatible with GoogleSQL.
parser/unescape.go:26
↓ 4 callersFunctionunionBounds
unionBounds returns an estimate covering both a, which may be nil, and b, along with the union of their metadata.
ext/lists.go:1102
↓ 4 callersFunctionyamlToJSON
(str string)
ext/encoders.go:1014
↓ 3 callersMethodAdapter
Adapter returns the type adapter to be used for adapting resolved Attribute values.
interpreter/interpretable.go:89
↓ 3 callersMethodAdd
Add adds one or more symbols to the catalog.
common/env/catalog.go:71
↓ 3 callersMethodAddOverload
AddOverload appends a function overload ID to the ReferenceInfo.
common/ast/ast.go:504
↓ 3 callersMethodAddOverload
AddOverload ensures that the new overload does not collide with an existing overload signature; however, if the function signatures are identical, the
common/decls/decls.go:268
↓ 3 callersMethodAddQualifier
AddQualifier proxies the Attribute.AddQualifier method. Note, this method may mutate the current attribute state. If the desire is to clone the Attri
interpreter/interpretable.go:97
↓ 3 callersFunctionAlias
Alias associates a name with a user-defined alias. In general, Abbrevs is preferred to Alias since the names generated from the Abbrevs option are mo
common/containers/container.go:245
↓ 3 callersMethodAsyncCall
AsyncCall returns the state of an async call by its callID, or nil if not found.
interpreter/frame.go:430
↓ 3 callersFunctionAuthoringPrompt
AuthoringPrompt creates a prompt template from a CEL environment for the purpose of AI-assisted authoring.
cel/prompt.go:64
← previousnext →1,001–1,100 of 9,178, ranked by callers