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
Function
isAttributeChain
isAttributeChain reports whether an expression is resolved as part of a single attribute during evaluation. A chain begins at an identifier, or at a t
common/cost/estimator.go:473
↓ 3 callers
Function
isBinaryOrTernaryOperator
Indicate whether this is a binary or ternary operator.
parser/unparser.go:583
↓ 3 callers
Function
isCELNamespace
(target ast.Expr)
conformance/conformance_test.go:404
↓ 3 callers
Method
isConditional
isConditional returns true if the condition expression is not trivially true.
policy/composer.go:468
↓ 3 callers
Method
isDefault
isDefault reports whether the rules are those the package-level and per-model-set caches are compiled under, so that the cached functions may be share
common/cost/version.go:48
↓ 3 callers
Method
isErrOrUnknown
isErrOrUnknown indicates whether the type is an error or unknown type.
common/types/types.go:432
↓ 3 callers
Function
isSamePrecedence
isSamePrecedence indicates whether the precedence of the input operator is the same as the precedence of the (possible) operation represented in the i
parser/unparser.go:520
↓ 3 callers
Function
isStrictRFC3339
isStrictRFC3339 reports whether s matches strictRFC3339Pattern, hand-rolled to keep the conversion path off the regexp engine and its per-call cost.
common/types/timestamp.go:74
↓ 3 callers
Function
isUnknown
(val ref.Val)
interpreter/interpretable.go:2220
↓ 3 callers
Function
jsonParseWithType
(adapter types.Adapter, provider types.Provider, str string, targetType ref.Type)
ext/encoders.go:698
↓ 3 callers
Function
k8sParserOpts
()
tools/celtest/test_runner_test.go:100
↓ 3 callers
Function
literalFlattenLength
literalFlattenLength bounds the flattened length of a list literal when all expanded elements up to depth are literals or list literals. An optional e
ext/lists.go:1027
↓ 3 callers
Function
loadFile
(path string)
tools/compiler/compiler.go:180
↓ 3 callers
Function
loadProtoFile
(path string, format FileFormat, out protoreflect.ProtoMessage)
tools/compiler/compiler.go:188
↓ 3 callers
Function
makeMacroKey
(name string, args int, receiverStyle bool)
parser/macro.go:175
↓ 3 callers
Function
makeOptQualifier
(t testing.TB, attrs AttributeFactory, fieldType *types.Type, qualID int64, val any)
interpreter/attributes_test.go:1538
↓ 3 callers
Function
makeQuantifier
(kind quantifierKind, eh ExprHelper, target ast.Expr, args []ast.Expr)
parser/macro.go:558
↓ 3 callers
Function
makeVarArgMacroKey
(name string, receiverStyle bool)
parser/macro.go:179
↓ 3 callers
Function
marshalJSONNoEscape
(v any, indent string)
common/env/io.go:517
↓ 3 callers
Function
matchOperandTrait
(trait int, arg ref.Val)
common/decls/decls.go:981
↓ 3 callers
Function
matchRuntimeArgType
(nonStrict, disableTypeGuards bool, argType *types.Type, arg ref.Val)
common/decls/decls.go:974
↓ 3 callers
Method
mayBeList
mayBeList reports whether a value at this level may be a list, which flattening expands.
ext/lists.go:912
↓ 3 callers
Function
maybeInteropProvider
(provider any)
cel/options.go:1247
↓ 3 callers
Method
maybeQuoteIdent
(name string)
parser/unparser.go:73
↓ 3 callers
Function
maybeSuffixError
(val ref.Val, suffix string)
ext/math.go:951
↓ 3 callers
Method
modelOptions
()
common/cost/version.go:52
↓ 3 callers
Function
mustNewCoster
(t *testing.T, checked *ast.AST, estimator Estimator, opts ...Option)
common/cost/version_test.go:129
↓ 3 callers
Function
mustNewFunction
(t *testing.T, name string, opts ...decls.FunctionOpt)
common/env/env_test.go:1591
↓ 3 callers
Method
mutable
()
common/cost/version.go:114
↓ 3 callers
Function
nestedBindExpr
nestedBindExpr produces an exponentially amplified value through nested cel.bind calls: cel.bind(a0, [0,1,2,3,4,5,6,7,8,9], cel.bind(a1, [a0,a0,a
ext/bindings_test.go:299
↓ 3 callers
Function
networkCIDRLength
networkCIDRLength returns the bounded length of a CIDR receiver (at most 16 bytes), which bounds the estimate for a receiver of unknown size without c
ext/network.go:839
↓ 3 callers
Function
newBufferWithLimit
(data string, lines bool, limit int)
common/runes/buffer.go:159
↓ 3 callers
Function
newCoster
newCoster returns a coster configured by the options. Its configuration is fixed once it is returned; only the per-expression state gathered while cos
common/cost/estimator.go:159
↓ 3 callers
Method
newEntryExpr
(id int64, e entryExprKindCase)
common/ast/factory.go:323
↓ 3 callers
Method
newEstimateContext
()
common/cost/estimator.go:1206
↓ 3 callers
Method
newExecutionFrame
newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
cel/program.go:560
↓ 3 callers
Function
newFormatValidator
(funcName string, argNum int, check argChecker)
cel/validator.go:275
↓ 3 callers
Function
newGroup
newGroup creates a new Group with empty maps for identifiers and functions.
checker/scopes.go:146
↓ 3 callers
Function
newIDGenerator
newIDGenerator ensures that new ids are only created the first time they are encountered.
cel/optimizer.go:211
↓ 3 callers
Method
newLiteralBool
(ctx any, value bool)
parser/helper.go:56
↓ 3 callers
Method
newLiteralDouble
(ctx any, value float64)
parser/helper.go:76
↓ 3 callers
Method
newLiteralInt
(ctx any, value int64)
parser/helper.go:68
↓ 3 callers
Function
newMapping
()
checker/mapping.go:35
↓ 3 callers
Function
newNativeType
(rawType reflect.Type, options NativeTypeOptions)
common/types/native.go:634
↓ 3 callers
Function
newOverloadModel
(id string, isMember bool, opts []OverloadModelOption)
common/cost/model.go:1179
↓ 3 callers
Function
newRunner
(name, expr string, parseOpts []ParserOption, envOpts ...cel.EnvOption)
policy/compiler_test.go:277
↓ 3 callers
Method
newTypeVar
()
checker/checker.go:642
↓ 3 callers
Method
next
next describes the values one level down: the elements of the lists at this level.
ext/lists.go:899
↓ 3 callers
Function
normalizeAlgName
(alg string)
ext/security/hmac/hmac.go:394
↓ 3 callers
Method
normalizeIdent
(tok token, allowQuoted bool, isQuoted *bool)
parser/pratt_parser.go:401
↓ 3 callers
Function
numericValueEquals
numericValueEquals uses CEL equality to determine whether two number values are
interpreter/attribute_patterns.go:175
↓ 3 callers
Function
ownedSize
ownedSize returns a size estimate pointer which the caller may retain or modify. computeSize returns the shared unitSizeEstimate and zeroSizeEstimate
common/cost/estimator.go:1138
↓ 3 callers
Method
parseSelectorChainTail
parseSelectorChainTail parses the field selections, member calls, indexes and struct creations following lhs, which is lhsDepth deep, and leaves the d
parser/pratt_parser.go:579
↓ 3 callers
Method
popLocalVar
popLocalVar pops the scope stack for a local variable name.
common/cost/estimator.go:340
↓ 3 callers
Method
programOptions
programOptions generates the program options for planning. Assumes context has been planned.
repl/evaluator.go:521
↓ 3 callers
Function
quote
quote implements a string quoting function. The string will be wrapped in double quotes, and all valid CEL escape sequences will be escaped to show up
ext/strings.go:822
↓ 3 callers
Function
regexSearch
regexSearch is the cost of matching pattern against target: the product of their lengths.
ext/regex.go:393
↓ 3 callers
Method
registerAllTypes
(fd *pb.FileDescription)
common/types/provider.go:872
↓ 3 callers
Method
release
(tracker *asyncCallStateTracker)
interpreter/async.go:425
↓ 3 callers
Function
request
request constructs a `google.rpc.context.AttributeContext.Request` message.
codelab/solution/codelab.go:505
↓ 3 callers
Function
resolveElemBounds
resolveElemBounds returns the [min, max] bounds for a child element/key/value in aggregate size calculation. Every value has aggregate size at least 1
common/cost/aggregate_strategy.go:233
↓ 3 callers
Method
resolvePrior
resolvePrior returns prior with any unset Cost or Size inherited from m.
common/cost/model.go:1155
↓ 3 callers
Function
safeUint32FromBoxedInt
(v Int)
common/types/overflow.go:445
↓ 3 callers
Function
sanitize
sanitize replaces all invalid runes in the given string with utf8.RuneError.
ext/strings.go:853
↓ 3 callers
Function
setsContains
(list, sublist ref.Val)
ext/sets.go:206
↓ 3 callers
Function
subtractInt64Checked
subtractInt64Checked performs subtraction with overflow detection of two int64 values. If the operation fails the error return value will be non-nil.
common/types/overflow.go:39
↓ 3 callers
Method
synchronizeOnDelimiter
()
parser/pratt_parser.go:292
↓ 3 callers
Function
testCost
testCost asserts the estimated cost at the latest cost model revision and at ModelVersion0, alongside the runtime cost. estimatedCostV0 is supplied o
ext/network_test.go:912
↓ 3 callers
Function
testCreateStruct
(t *testing.T, m map[string]any)
common/types/map_test.go:1202
↓ 3 callers
Function
testData
(t testing.TB)
interpreter/interpreter_test.go:68
↓ 3 callers
Function
testEncodersCostsEnv
(t *testing.T, version int, opts ...cel.EnvOption)
ext/encoders_test.go:587
↓ 3 callers
Function
testFunction
(t testing.TB, name string, opts ...decls.FunctionOpt)
checker/checker_test.go:2907
↓ 3 callers
Method
toExpr
toExpr renders the logic graph into an Expr value, either balancing a tree of logical operations or creating a variadic representation of the logical
parser/helper.go:335
↓ 3 callers
Function
trackWith
trackWith tracks an expression as a compiled model evaluates it.
common/cost/algebra_test.go:59
↓ 3 callers
Function
unpackAny
unpackAny extracts the raw runtime *_type and data pointers from an empty interface value.
common/types/provider.go:1129
↓ 3 callers
Function
updateMetadata
(a *ast.AST, targetID, updatedID int64)
cel/folding.go:313
↓ 3 callers
Method
validate
(inPrior bool)
common/cost/validate.go:52
↓ 3 callers
Method
value
(id int64)
interpreter/prune.go:468
↓ 3 callers
Function
zeroValueOf
zeroValueOf will return the strongest possible proto.Message representing the default protobuf message value of the input msg type.
common/types/pb/type.go:646
↓ 2 callers
Method
ActiveCalls
ActiveCalls returns the number of active asynchronous calls.
interpreter/async.go:530
↓ 2 callers
Method
Adapt
Adapt implements StructTypeDescriptor.
common/types/native.go:222
↓ 2 callers
Method
AddDeclFn
AddDeclFn declares a function in the environment but doesn't register an expr with it. This allows planning to succeed, but with no value for the func
repl/evaluator.go:654
↓ 2 callers
Method
AddDeclVar
AddDeclVar declares a variable in the environment but doesn't register an expr with it. This allows planning to succeed, but with no value for the var
repl/evaluator.go:641
↓ 2 callers
Method
AddFunctionDecls
AddFunctionDecls adds one or more functions to the config, converting them to serializable values first. FunctionDecl inputs are expected to be well-
common/env/env.go:146
↓ 2 callers
Method
AddMatch
AddMatch addes a Match to the rule.
policy/parser.go:272
↓ 2 callers
Method
AddOption
AddOption adds an option to the basic environment. Options are applied before evaluating any of the let statements. Returns an error if setting the op
repl/evaluator.go:668
↓ 2 callers
Method
AddVariableDecls
AddVariableDecls adds one or more variables to the config, converting them to serializable values first. VariableDecl inputs are expected to be well-
common/env/env.go:118
↓ 2 callers
Method
AggregateSize
AggregateSize implements the AggregateSizer interface by returning the computed size.
common/types/size_calc.go:174
↓ 2 callers
Method
AggregateSize
AggregateSize implements the ref.Val interface and allows for the generation of nested child context values which are necessary for correct traversal
common/types/size_calc.go:189
↓ 2 callers
Method
Append
Append creates a new Errors object with the current and input errors.
common/errors.go:74
↓ 2 callers
Method
Arg
Arg returns the ref.Val at the given index, or an error if one occurred.
ext/formatting.go:775
↓ 2 callers
Method
Arg
Arg returns the size of the argument at the given 0-based index.
common/cost/model.go:67
↓ 2 callers
Method
ArgType
ArgType returns the deduced type of the argument at the given 0-based index.
common/cost/model.go:33
↓ 2 callers
Method
ArgVal
ArgVal returns the value of the argument at the given 0-based index, if present.
common/cost/model.go:88
↓ 2 callers
Method
ArgValue
ArgValue returns the uint64 value of the argument at index, or defaultVal.
common/cost/model.go:82
↓ 2 callers
Method
AsCELFunction
AsCELFunction converts the serializable form of the Function into CEL environment declaration.
common/env/env.go:378
↓ 2 callers
Method
AsCELVariable
AsCELVariable converts the serializable form of the Variable into a CEL environment declaration.
common/env/env.go:305
↓ 2 callers
Method
AsFunctionOption
AsFunctionOption converts the serializable form of the Overload into a function declaration option.
common/env/env.go:441
↓ 2 callers
Function
Base64Decode
Base64Decode decodes a base64 encoded string into a byte slice.
ext/encoders.go:380
↓ 2 callers
Function
BypassAsyncProtection
BypassAsyncProtection allows for the bypass of hasAsync protection in Eval and ContextEval if present. By default, expressions in an environment with
cel/options.go:863
← previous
next →
1,301–1,400 of 9,178, ranked by callers