MCPcopy Create free account

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

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

↓ 3 callersFunctionisAttributeChain
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 callersFunctionisBinaryOrTernaryOperator
Indicate whether this is a binary or ternary operator.
parser/unparser.go:583
↓ 3 callersFunctionisCELNamespace
(target ast.Expr)
conformance/conformance_test.go:404
↓ 3 callersMethodisConditional
isConditional returns true if the condition expression is not trivially true.
policy/composer.go:468
↓ 3 callersMethodisDefault
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 callersMethodisErrOrUnknown
isErrOrUnknown indicates whether the type is an error or unknown type.
common/types/types.go:432
↓ 3 callersFunctionisSamePrecedence
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 callersFunctionisStrictRFC3339
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 callersFunctionisUnknown
(val ref.Val)
interpreter/interpretable.go:2220
↓ 3 callersFunctionjsonParseWithType
(adapter types.Adapter, provider types.Provider, str string, targetType ref.Type)
ext/encoders.go:698
↓ 3 callersFunctionk8sParserOpts
()
tools/celtest/test_runner_test.go:100
↓ 3 callersFunctionliteralFlattenLength
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 callersFunctionloadFile
(path string)
tools/compiler/compiler.go:180
↓ 3 callersFunctionloadProtoFile
(path string, format FileFormat, out protoreflect.ProtoMessage)
tools/compiler/compiler.go:188
↓ 3 callersFunctionmakeMacroKey
(name string, args int, receiverStyle bool)
parser/macro.go:175
↓ 3 callersFunctionmakeOptQualifier
(t testing.TB, attrs AttributeFactory, fieldType *types.Type, qualID int64, val any)
interpreter/attributes_test.go:1538
↓ 3 callersFunctionmakeQuantifier
(kind quantifierKind, eh ExprHelper, target ast.Expr, args []ast.Expr)
parser/macro.go:558
↓ 3 callersFunctionmakeVarArgMacroKey
(name string, receiverStyle bool)
parser/macro.go:179
↓ 3 callersFunctionmarshalJSONNoEscape
(v any, indent string)
common/env/io.go:517
↓ 3 callersFunctionmatchOperandTrait
(trait int, arg ref.Val)
common/decls/decls.go:981
↓ 3 callersFunctionmatchRuntimeArgType
(nonStrict, disableTypeGuards bool, argType *types.Type, arg ref.Val)
common/decls/decls.go:974
↓ 3 callersMethodmayBeList
mayBeList reports whether a value at this level may be a list, which flattening expands.
ext/lists.go:912
↓ 3 callersFunctionmaybeInteropProvider
(provider any)
cel/options.go:1247
↓ 3 callersMethodmaybeQuoteIdent
(name string)
parser/unparser.go:73
↓ 3 callersFunctionmaybeSuffixError
(val ref.Val, suffix string)
ext/math.go:951
↓ 3 callersMethodmodelOptions
()
common/cost/version.go:52
↓ 3 callersFunctionmustNewCoster
(t *testing.T, checked *ast.AST, estimator Estimator, opts ...Option)
common/cost/version_test.go:129
↓ 3 callersFunctionmustNewFunction
(t *testing.T, name string, opts ...decls.FunctionOpt)
common/env/env_test.go:1591
↓ 3 callersMethodmutable
()
common/cost/version.go:114
↓ 3 callersFunctionnestedBindExpr
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 callersFunctionnetworkCIDRLength
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 callersFunctionnewBufferWithLimit
(data string, lines bool, limit int)
common/runes/buffer.go:159
↓ 3 callersFunctionnewCoster
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 callersMethodnewEntryExpr
(id int64, e entryExprKindCase)
common/ast/factory.go:323
↓ 3 callersMethodnewEstimateContext
()
common/cost/estimator.go:1206
↓ 3 callersMethodnewExecutionFrame
newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
cel/program.go:560
↓ 3 callersFunctionnewFormatValidator
(funcName string, argNum int, check argChecker)
cel/validator.go:275
↓ 3 callersFunctionnewGroup
newGroup creates a new Group with empty maps for identifiers and functions.
checker/scopes.go:146
↓ 3 callersFunctionnewIDGenerator
newIDGenerator ensures that new ids are only created the first time they are encountered.
cel/optimizer.go:211
↓ 3 callersMethodnewLiteralBool
(ctx any, value bool)
parser/helper.go:56
↓ 3 callersMethodnewLiteralDouble
(ctx any, value float64)
parser/helper.go:76
↓ 3 callersMethodnewLiteralInt
(ctx any, value int64)
parser/helper.go:68
↓ 3 callersFunctionnewMapping
()
checker/mapping.go:35
↓ 3 callersFunctionnewNativeType
(rawType reflect.Type, options NativeTypeOptions)
common/types/native.go:634
↓ 3 callersFunctionnewOverloadModel
(id string, isMember bool, opts []OverloadModelOption)
common/cost/model.go:1179
↓ 3 callersFunctionnewRunner
(name, expr string, parseOpts []ParserOption, envOpts ...cel.EnvOption)
policy/compiler_test.go:277
↓ 3 callersMethodnewTypeVar
()
checker/checker.go:642
↓ 3 callersMethodnext
next describes the values one level down: the elements of the lists at this level.
ext/lists.go:899
↓ 3 callersFunctionnormalizeAlgName
(alg string)
ext/security/hmac/hmac.go:394
↓ 3 callersMethodnormalizeIdent
(tok token, allowQuoted bool, isQuoted *bool)
parser/pratt_parser.go:401
↓ 3 callersFunctionnumericValueEquals
numericValueEquals uses CEL equality to determine whether two number values are
interpreter/attribute_patterns.go:175
↓ 3 callersFunctionownedSize
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 callersMethodparseSelectorChainTail
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 callersMethodpopLocalVar
popLocalVar pops the scope stack for a local variable name.
common/cost/estimator.go:340
↓ 3 callersMethodprogramOptions
programOptions generates the program options for planning. Assumes context has been planned.
repl/evaluator.go:521
↓ 3 callersFunctionquote
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 callersFunctionregexSearch
regexSearch is the cost of matching pattern against target: the product of their lengths.
ext/regex.go:393
↓ 3 callersMethodregisterAllTypes
(fd *pb.FileDescription)
common/types/provider.go:872
↓ 3 callersMethodrelease
(tracker *asyncCallStateTracker)
interpreter/async.go:425
↓ 3 callersFunctionrequest
request constructs a `google.rpc.context.AttributeContext.Request` message.
codelab/solution/codelab.go:505
↓ 3 callersFunctionresolveElemBounds
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 callersMethodresolvePrior
resolvePrior returns prior with any unset Cost or Size inherited from m.
common/cost/model.go:1155
↓ 3 callersFunctionsafeUint32FromBoxedInt
(v Int)
common/types/overflow.go:445
↓ 3 callersFunctionsanitize
sanitize replaces all invalid runes in the given string with utf8.RuneError.
ext/strings.go:853
↓ 3 callersFunctionsetsContains
(list, sublist ref.Val)
ext/sets.go:206
↓ 3 callersFunctionsubtractInt64Checked
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 callersMethodsynchronizeOnDelimiter
()
parser/pratt_parser.go:292
↓ 3 callersFunctiontestCost
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 callersFunctiontestCreateStruct
(t *testing.T, m map[string]any)
common/types/map_test.go:1202
↓ 3 callersFunctiontestData
(t testing.TB)
interpreter/interpreter_test.go:68
↓ 3 callersFunctiontestEncodersCostsEnv
(t *testing.T, version int, opts ...cel.EnvOption)
ext/encoders_test.go:587
↓ 3 callersFunctiontestFunction
(t testing.TB, name string, opts ...decls.FunctionOpt)
checker/checker_test.go:2907
↓ 3 callersMethodtoExpr
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 callersFunctiontrackWith
trackWith tracks an expression as a compiled model evaluates it.
common/cost/algebra_test.go:59
↓ 3 callersFunctionunpackAny
unpackAny extracts the raw runtime *_type and data pointers from an empty interface value.
common/types/provider.go:1129
↓ 3 callersFunctionupdateMetadata
(a *ast.AST, targetID, updatedID int64)
cel/folding.go:313
↓ 3 callersMethodvalidate
(inPrior bool)
common/cost/validate.go:52
↓ 3 callersMethodvalue
(id int64)
interpreter/prune.go:468
↓ 3 callersFunctionzeroValueOf
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 callersMethodActiveCalls
ActiveCalls returns the number of active asynchronous calls.
interpreter/async.go:530
↓ 2 callersMethodAdapt
Adapt implements StructTypeDescriptor.
common/types/native.go:222
↓ 2 callersMethodAddDeclFn
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 callersMethodAddDeclVar
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 callersMethodAddFunctionDecls
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 callersMethodAddMatch
AddMatch addes a Match to the rule.
policy/parser.go:272
↓ 2 callersMethodAddOption
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 callersMethodAddVariableDecls
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 callersMethodAggregateSize
AggregateSize implements the AggregateSizer interface by returning the computed size.
common/types/size_calc.go:174
↓ 2 callersMethodAggregateSize
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 callersMethodAppend
Append creates a new Errors object with the current and input errors.
common/errors.go:74
↓ 2 callersMethodArg
Arg returns the ref.Val at the given index, or an error if one occurred.
ext/formatting.go:775
↓ 2 callersMethodArg
Arg returns the size of the argument at the given 0-based index.
common/cost/model.go:67
↓ 2 callersMethodArgType
ArgType returns the deduced type of the argument at the given 0-based index.
common/cost/model.go:33
↓ 2 callersMethodArgVal
ArgVal returns the value of the argument at the given 0-based index, if present.
common/cost/model.go:88
↓ 2 callersMethodArgValue
ArgValue returns the uint64 value of the argument at index, or defaultVal.
common/cost/model.go:82
↓ 2 callersMethodAsCELFunction
AsCELFunction converts the serializable form of the Function into CEL environment declaration.
common/env/env.go:378
↓ 2 callersMethodAsCELVariable
AsCELVariable converts the serializable form of the Variable into a CEL environment declaration.
common/env/env.go:305
↓ 2 callersMethodAsFunctionOption
AsFunctionOption converts the serializable form of the Overload into a function declaration option.
common/env/env.go:441
↓ 2 callersFunctionBase64Decode
Base64Decode decodes a base64 encoded string into a byte slice.
ext/encoders.go:380
↓ 2 callersFunctionBypassAsyncProtection
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
← previousnext →1,301–1,400 of 9,178, ranked by callers