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
↓ 4 callers
Function
SizeCalculatorMaxDepth
SizeCalculatorMaxDepth sets the maximum object depth limit before saturating to math.MaxUint32.
common/types/size_calc.go:42
↓ 4 callers
Function
SizeCalculatorStringUnitLength
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 callers
Method
Source
Source returns the policy file contents as a CEL source object.
policy/parser.go:78
↓ 4 callers
Method
SourceID
SourceID returns the expression id associated with the output expression.
policy/compiler.go:186
↓ 4 callers
Function
StandardOverloadTrackers
StandardOverloadTrackers returns the map of FunctionTracker instances for standard overloads.
common/cost/standard.go:238
↓ 4 callers
Method
Subset
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 callers
Function
ToAST
ToAST converts a CheckedExpr protobuf to an AST instance.
common/ast/conversion.go:78
↓ 4 callers
Function
ToDebugStringWithIDs
ToDebugStringWithIDs returns a string representation with AST node IDs.
common/debug/debug.go:327
↓ 4 callers
Function
ToFoldableMap
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 callers
Function
ToProto
ToProto converts an AST to a CheckedExpr protobouf.
common/ast/conversion.go:44
↓ 4 callers
Method
Track
Track observes a value as a watermark, returning its aggregate size with saturation at math.MaxUint32.
common/types/memory_tracker.go:108
↓ 4 callers
Method
TrackSize
TrackSize computes the actual runtime size of a value during cost tracking.
common/cost/strategy.go:28
↓ 4 callers
Function
TrackerLimit
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 callers
Function
Traversal
Traversal creates an expression representing the traversal and optional allocation cost over an expression.
common/cost/model.go:946
↓ 4 callers
Method
Unary
Getter signatures
repl/parser/commands_parser.go:5410
↓ 4 callers
Function
UnparseType
UnparseType pretty-prints a type for the REPL.
repl/typefmt.go:41
↓ 4 callers
Function
ValToConstant
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 callers
Function
ValidateDurationLiterals
ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
cel/validator.go:226
↓ 4 callers
Function
ValidateOverloadModels
ValidateOverloadModels reports the first model which is not well-formed.
common/cost/validate.go:129
↓ 4 callers
Method
VersionNumber
VersionNumber returns the parsed version string, or an error if the version cannot be parsed.
common/env/env.go:502
↓ 4 callers
Method
Visit
(tree antlr.ParseTree)
repl/typefmt.go:65
↓ 4 callers
Function
actualV0
actualV0 returns a ModelVersion0 runtime cost expectation for a cost table entry.
ext/sets_test.go:499
↓ 4 callers
Function
adaptToV2
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 callers
Method
adapterFrom
()
common/types/native.go:503
↓ 4 callers
Function
addInt64Checked
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 callers
Method
applyContext
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 callers
Function
boundsOf
(s SizeEstimate)
common/cost/algebra_test.go:63
↓ 4 callers
Function
combineListSize
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 callers
Function
combineMapSize
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 callers
Function
computeTypeSize
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 callers
Function
constructActivation
(t testing.TB, in any)
common/cost/cost_test.go:690
↓ 4 callers
Function
convertProto
(src, dst proto.Message)
cel/io.go:390
↓ 4 callers
Function
describeQuantityExpr
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 callers
Function
doubleToUint64Lossless
(v float64)
common/types/overflow.go:399
↓ 4 callers
Method
ensureMutable
()
common/types/provider.go:243
↓ 4 callers
Function
estimateConditionalSize
estimateConditionalSize computes the union SizeEstimate of the branches in a conditional call.
common/cost/default_strategy.go:330
↓ 4 callers
Function
estimateScalarOrFallback
estimateScalarOrFallback returns size estimates using custom estimator hints or primitive type sizes.
common/cost/default_strategy.go:449
↓ 4 callers
Function
estimateWith
estimateWith estimates an expression as a compiled model evaluates it.
common/cost/algebra_test.go:54
↓ 4 callers
Method
eval
(expr string)
tools/celtest/test_runner.go:857
↓ 4 callers
Function
expectNativeToValue
(t *testing.T, in any, out ref.Val)
common/types/provider_test.go:1243
↓ 4 callers
Method
find
(from *types.Type)
checker/mapping.go:70
↓ 4 callers
Function
formatTo
(sb *strings.Builder, val ref.Val)
common/types/format.go:23
↓ 4 callers
Function
getElem
(t *testing.T, list traits.Indexer, index ref.Val)
common/types/list_test.go:868
↓ 4 callers
Function
int64ToUint64Lossless
(v int64)
common/types/overflow.go:421
↓ 4 callers
Function
isDigit
(r rune)
parser/lexer.go:203
↓ 4 callers
Method
isDyn
isDyn indicates whether the type is dynamic in any way.
common/types/types.go:421
↓ 4 callers
Function
isNumericArgType
(arg ast.Expr)
ext/math.go:917
↓ 4 callers
Function
isQualifyRawStructType
(rt reflect.Type)
common/types/provider.go:1246
↓ 4 callers
Function
jsonParseDynamic
(str string)
ext/encoders.go:645
↓ 4 callers
Function
jsonUnmarshalExact
(str string, out any)
ext/encoders.go:614
↓ 4 callers
Function
jsonUnmarshalNative
(str string, rt reflect.Type)
ext/encoders.go:923
↓ 4 callers
Method
keyToRefVal
(k K)
common/types/map.go:598
↓ 4 callers
Function
lateBoundComprehensionEnv
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 callers
Function
ledgerV0
ledgerV0 passes an optional ModelVersion0 runtime cost expectation to testEvalWithCost.
ext/sets_test.go:504
↓ 4 callers
Method
locationByID
(id int64)
checker/checker.go:710
↓ 4 callers
Method
markLegacyTracked
(e ast.Expr)
common/cost/estimator.go:626
↓ 4 callers
Function
matchOperandTrait
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 callers
Function
matchSlot
(name string, slotCount int)
ext/bindings.go:355
↓ 4 callers
Function
maybeUnwrapOptional
(t *types.Type)
checker/types.go:49
↓ 4 callers
Function
mustActivation
(t *testing.T, vars map[string]any)
interpreter/activation_test.go:429
↓ 4 callers
Function
mustFunctionVars
(t *testing.T, vars any, funcs map[string]functions.LateBoundOp)
interpreter/activation_test.go:438
↓ 4 callers
Function
networkCIDRCompareCost
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 callers
Function
newConcatList
(adapter Adapter, prevList, nextList traits.Lister)
common/types/list.go:522
↓ 4 callers
Function
newFolder
newFolder creates or initializes a pooled folder instance.
interpreter/interpretable.go:1945
↓ 4 callers
Function
newIdent
(name string, t *exprpb.Type, v *exprpb.Constant, desc string)
checker/decls/decls.go:115
↓ 4 callers
Function
newOptionalCompositionStep
newOptionalCompositionStep returns an output step with an optional policy output.
policy/composer.go:559
↓ 4 callers
Function
normalize
(s string)
policy/compiler_test.go:533
↓ 4 callers
Function
normalize
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 callers
Function
optimizerEnv
(t *testing.T)
cel/optimizer_test.go:323
↓ 4 callers
Function
optionalSizeOf
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 callers
Function
parseCIDR
(raw string)
ext/network.go:480
↓ 4 callers
Method
parseElementExpr
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 callers
Method
parseExpr
()
parser/pratt_parser.go:456
↓ 4 callers
Function
parseStructTag
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 callers
Method
push
push adds a variable name to the scope stack with its path and size estimates.
common/cost/estimator.go:237
↓ 4 callers
Method
pushLocalVar
pushLocalVar records a local variable binding with its path and size estimates.
common/cost/estimator.go:324
↓ 4 callers
Method
recordCallCost
(call Call, args []ref.Val, result ref.Val)
common/cost/tracker.go:222
↓ 4 callers
Function
releaseFolder
releaseFolder resets and releases a pooled folder instance.
interpreter/interpretable.go:1953
↓ 4 callers
Method
resolveHash
(alg string)
ext/security/hmac/hmac.go:405
↓ 4 callers
Function
runtimeTypePtr
runtimeTypePtr returns the Go runtime *_type pointer for the given reflect.Type.
common/types/provider.go:1139
↓ 4 callers
Function
safeUint32FromInt
(n int)
common/types/overflow.go:438
↓ 4 callers
Method
setError
(start, end int32, msg string)
parser/lexer.go:256
↓ 4 callers
Method
setSize
setSize stores a computed size estimate for an expression ID.
common/cost/estimator.go:1147
↓ 4 callers
Function
strategyOf
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 callers
Function
stringTransformEvalCost
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 callers
Function
testProtosEnv
testProtosEnv initializes the test environment common to all tests.
ext/protos_test.go:213
↓ 4 callers
Function
testRegexEnv
(t *testing.T, opts ...cel.EnvOption)
ext/regex_test.go:264
↓ 4 callers
Function
trackModelCost
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 callers
Method
undeclaredReference
(id int64, l common.Location, container string, name string)
checker/errors.go:98
↓ 4 callers
Function
unescape
Unescape takes a quoted string, unquotes, and unescapes it. This function performs escaping compatible with GoogleSQL.
parser/unescape.go:26
↓ 4 callers
Function
unionBounds
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 callers
Function
yamlToJSON
(str string)
ext/encoders.go:1014
↓ 3 callers
Method
Adapter
Adapter returns the type adapter to be used for adapting resolved Attribute values.
interpreter/interpretable.go:89
↓ 3 callers
Method
Add
Add adds one or more symbols to the catalog.
common/env/catalog.go:71
↓ 3 callers
Method
AddOverload
AddOverload appends a function overload ID to the ReferenceInfo.
common/ast/ast.go:504
↓ 3 callers
Method
AddOverload
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 callers
Method
AddQualifier
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 callers
Function
Alias
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 callers
Method
AsyncCall
AsyncCall returns the state of an async call by its callID, or nil if not found.
interpreter/frame.go:430
↓ 3 callers
Function
AuthoringPrompt
AuthoringPrompt creates a prompt template from a CEL environment for the purpose of AI-assisted authoring.
cel/prompt.go:64
← previous
next →
1,001–1,100 of 9,178, ranked by callers