MCPcopy Create free account

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

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

↓ 1 callersFunctioncheckInvalidArgLiteral
(funcName string, arg ast.Expr)
ext/math.go:910
↓ 1 callersMethodcheckMatchOutputTypesAgree
(rule *CompiledRule, iss *cel.Issues)
policy/compiler.go:439
↓ 1 callersFunctioncheckNoFunctionActivation
checkNoFunctionActivation returns an error if the hierarchy already supplies late-bound function implementations.
interpreter/activation.go:322
↓ 1 callersMethodcheckOptSelect
(e ast.Expr)
checker/checker.go:191
↓ 1 callersMethodcheckSelect
(e ast.Expr)
checker/checker.go:134
↓ 1 callersMethodcheckUnreachableCode
(rule *CompiledRule, iss *cel.Issues)
policy/compiler.go:468
↓ 1 callersFunctioncheckWellKnown
(name string)
repl/typefmt.go:92
↓ 1 callersFunctioncheckedMessageType
(name string)
common/types/pb/type.go:438
↓ 1 callersFunctioncheckedPrimitive
(primitive exprpb.Type_PrimitiveType)
common/types/pb/type.go:443
↓ 1 callersFunctioncheckedWellKnown
(wellKnown exprpb.Type_WellKnownType)
common/types/pb/type.go:448
↓ 1 callersFunctioncheckedWrap
(t *exprpb.Type)
common/types/pb/type.go:453
↓ 1 callersFunctioncleanYAMLObj
(val any)
ext/encoders.go:1065
↓ 1 callersFunctioncleanupMacroRefs
(expr ast.Expr, info *ast.SourceInfo)
cel/optimizer.go:179
↓ 1 callersMethodclearSlots
(sa *dynamicSlotActivation)
ext/bindings.go:241
↓ 1 callersFunctionclonePolicyMetadata
(p *policy.Policy)
tools/compiler/compiler.go:547
↓ 1 callersFunctioncmdMatches
(t testing.TB, got Cmder, expected Cmder)
repl/commands_test.go:25
↓ 1 callersFunctioncollectCoverageStats
collectCoverageStats collects the coverage stats from the EvalDetails and stores them in the CoverageStats map of the Program.
tools/celtest/test_runner.go:1047
↓ 1 callersFunctioncollectFileMetadata
collectFileMetadata traverses the proto file object graph to collect message types and enum values and index them by their fully qualified names.
common/types/pb/file.go:148
↓ 1 callersFunctioncollectMsgTypes
collectMsgTypes recursively collects messages, nested messages, and nested enums into a map of fully qualified protobuf names to descriptors.
common/types/pb/file.go:164
↓ 1 callersMethodcombineAggregate
(ctx *cel.OptimizerContext, step, accumulatedStep compositionStep)
policy/composer.go:269
↓ 1 callersFunctioncombineMeta
combineMeta attaches the operands' metadata, as mergeMeta merges it, to a combined estimate.
common/cost/helper.go:548
↓ 1 callersFunctioncompareInt
(a, b Int)
common/types/compare.go:79
↓ 1 callersFunctioncompareUint
(a, b Uint)
common/types/compare.go:89
↓ 1 callersFunctioncomprehensionSubExprIDs
(e ast.NavigableExpr)
policy/composer.go:647
↓ 1 callersMethodcompute
(msg, secret []byte, alg string)
ext/security/hmac/hmac.go:294
↓ 1 callersFunctioncomputeCost
(t *testing.T, expr string, vars []*decls.VariableDecl, hints map[string]uint64, ctx cel.Activation, options [
common/cost/cost_test.go:745
↓ 1 callersFunctioncomputeDigest
(msg []byte, hType crypto.Hash)
ext/security/hmac/hmac.go:425
↓ 1 callersMethodcomputeQualifiers
computeQualifiers computes the qualified names parts of a select expression.
checker/checker.go:169
↓ 1 callersFunctionconditionalBranchCost
conditionalBranchCost is the cost of a conditional's branch from cost model version 1. A branch which is an attribute chain rooted at an identifier,
common/cost/estimator.go:892
↓ 1 callersFunctionconfigFromEnvProto
(t *testing.T, pbEnv *configpb.Environment)
tools/compiler/compiler_test.go:339
↓ 1 callersFunctionconfigToEnvOptions
configToEnvOptions generates a set of EnvOption values (or error) based on a config, a type provider, and an optional set of environment options.
cel/options.go:628
↓ 1 callersMethodconfiguredExpressionNodeLimit
configuredExpressionNodeLimit returns the effective expression node limit. A zero value means "use default".
cel/env.go:548
↓ 1 callersFunctionconformanceTest
(t *testing.T, name string, pb *testpb.SimpleTest)
conformance/conformance_test.go:192
↓ 1 callersFunctionconstantCallMatcher
constantCallMatcher identifies strict and non-strict calls which can be folded.
cel/folding.go:615
↓ 1 callersFunctionconstantConflictError
(name string)
checker/env.go:370
↓ 1 callersMethodconstantExprMatcher
constantExprMatcher matches calls, select statements, and comprehensions whose arguments are all constant scalar or aggregate literal values. Only co
cel/folding.go:575
↓ 1 callersMethodconsume
(c rune)
parser/lexer.go:288
↓ 1 callersMethodconsumeDigits
()
parser/lexer.go:334
↓ 1 callersMethodconsumeHexDigits
()
parser/lexer.go:347
↓ 1 callersMethodconsumeIdent
()
parser/lexer.go:527
↓ 1 callersMethodconsumeIf
(predicate func(rune) bool)
parser/lexer.go:304
↓ 1 callersMethodconsumeIntegralSuffix
()
parser/lexer.go:360
↓ 1 callersMethodconsumeLine
()
parser/lexer.go:312
↓ 1 callersMethodconsumeNumericLiteral
()
parser/lexer.go:482
↓ 1 callersMethodconsumePrefixedStringLiteral
()
parser/lexer.go:455
↓ 1 callersMethodconsumeQuotedIdent
()
parser/lexer.go:415
↓ 1 callersMethodconsumeUntilAfterTriple
(quote rune, isRaw bool)
parser/lexer.go:391
↓ 1 callersMethodconsumeWhitespace
()
parser/lexer.go:322
↓ 1 callersFunctionconvertMacroCallsToString
(source *ast.SourceInfo)
parser/parser_test.go:2763
↓ 1 callersFunctionconvertProto
(src, dst proto.Message)
common/ast/conversion.go:701
↓ 1 callersFunctionconvertToCelType
(refType reflect.Type)
common/types/native.go:1610
↓ 1 callersFunctionconvertToType
(t ref.Type)
common/stdlib/standard.go:962
↓ 1 callersMethodcopy
()
cel/env.go:205
↓ 1 callersMethodcostBind
costBind estimates the cost of a cel.bind() variable declaration macro.
common/cost/estimator.go:921
↓ 1 callersMethodcostBlock
costBlock estimates the cost of a cel.@block([slot0, slot1, ...], resultExpr) call, binding each slot expression to @index0, @index1, ... while evalua
common/cost/estimator.go:741
↓ 1 callersMethodcostCall
costCall estimates the cost of evaluating a function call expression.
common/cost/estimator.go:487
↓ 1 callersMethodcostComprehension
costComprehension estimates the cost of evaluating a comprehension loop.
common/cost/estimator.go:798
↓ 1 callersMethodcostCreateList
costCreateList estimates the cost of constructing a list literal.
common/cost/estimator.go:765
↓ 1 callersMethodcostCreateMap
costCreateMap estimates the cost of constructing a map literal.
common/cost/estimator.go:775
↓ 1 callersMethodcostCreateStruct
costCreateStruct estimates the cost of constructing a struct or message literal.
common/cost/estimator.go:787
↓ 1 callersMethodcostIdent
costIdent estimates the cost of evaluating an identifier and tracks its path.
common/cost/estimator.go:375
↓ 1 callersMethodcostSelect
costSelect estimates the cost of a field selection or map key access.
common/cost/estimator.go:386
↓ 1 callersFunctioncostV0
costV0 records the estimate a case produces under cost.ModelVersion0, for the expectEstimatedCostV0 field. It exists because the constructors return v
cel/cost_k8s_test.go:934
↓ 1 callersFunctioncountRemainingCodePoints
(data string, idx int, count int)
common/runes/buffer.go:150
↓ 1 callersMethodcreateBaseStep
(ctx *cel.OptimizerContext, returnList, hasOptionalOutput bool)
policy/composer.go:259
↓ 1 callersFunctioncreateNestedCustomList
(adapter Adapter, depth, width int)
common/types/size_calc_test.go:802
↓ 1 callersFunctioncreateNestedList
(adapter Adapter, depth, width int)
common/types/size_calc_test.go:787
↓ 1 callersMethodcreateResultMatcher
(t *testing.T, testOutput *test.Output)
tools/celtest/test_runner.go:945
↓ 1 callersMethodcreateResultMatcherFromPB
(t *testing.T, testCase *conformancepb.TestCase)
tools/celtest/test_runner.go:720
↓ 1 callersMethodcreateTestInput
(t *testing.T, testCase *test.Case)
tools/celtest/test_runner.go:900
↓ 1 callersMethodcreateTestInputFromPB
(t *testing.T, testCase *conformancepb.TestCase)
tools/celtest/test_runner.go:659
↓ 1 callersMethodcreateTestsFromTextproto
(t *testing.T, testSuite *conformancepb.TestSuite)
tools/celtest/test_runner.go:639
↓ 1 callersMethodcreateTestsFromYAML
(t *testing.T, testSuite *test.Suite)
tools/celtest/test_runner.go:881
↓ 1 callersFunctiondecDisableShortcircuits
decDisableShortcircuits ensures that all branches of an expression will be evaluated, no short-circuiting.
interpreter/decorators.go:79
↓ 1 callersFunctiondecInterruptFolds
decInterruptFolds creates an intepretable decorator which marks comprehensions as interruptable where the interrupt state is communicated via a hidden
interpreter/decorators.go:67
↓ 1 callersFunctiondecObserveEval
decObserveEval records evaluation state into an EvalState object.
interpreter/decorators.go:35
↓ 1 callersFunctiondecOptimize
decOptimize optimizes the program plan by looking for common evaluation patterns and conditionally precomputing the result. - build list and map value
interpreter/decorators.go:113
↓ 1 callersFunctiondecRegexOptimizer
decRegexOptimizer compiles regex pattern string constants.
interpreter/decorators.go:133
↓ 1 callersFunctiondecRegexProgramSizeLimit
(limit int)
interpreter/decorators.go:174
↓ 1 callersFunctiondecodeBase64Segment
(seg string)
ext/security/jwt/jwt.go:441
↓ 1 callersFunctiondecodeBase64StdSegment
decodeBase64StdSegment decodes a standard base64 string with or without padding.
ext/security/hmac/hmac.go:444
↓ 1 callersFunctiondecodeBase64URLSegment
decodeBase64URLSegment decodes a URL-safe base64 string with or without padding.
ext/security/hmac/hmac.go:435
↓ 1 callersMethoddecrementRecursionDepth
()
parser/antlr_parser.go:923
↓ 1 callersFunctiondeepBoolExpr
deepBoolExpr builds a synthetic deeply nested proto Expr by stacking `depth` unary `!` calls on top of a boolean literal. A depth well above the 250 d
cel/io_test.go:364
↓ 1 callersMethoddefaultIsAssignableRuntimeType
defaultIsAssignableRuntimeType inspects the type and in the case of list and map elements, the key and element types to determine whether a ref.Val is
common/types/types.go:471
↓ 1 callersMethoddefaultIsAssignableType
defaultIsAssignableType provides the standard definition of what it means for one type to be assignable to another where any of the following may retu
common/types/types.go:447
↓ 1 callersMethoddelLetFn
(name string)
repl/evaluator.go:426
↓ 1 callersMethoddelLetVar
(name string)
repl/evaluator.go:412
↓ 1 callersFunctiondeps
(d protoreflect.FileDescriptor)
repl/evaluator.go:1250
↓ 1 callersFunctiondiffType
(want proto.Message, t *cel.Type)
conformance/conformance_test.go:175
↓ 1 callersFunctiondiffValue
(want *valuepb.Value, got *valuepb.ExprValue)
conformance/conformance_test.go:184
↓ 1 callersMethoddigest
(msg []byte, alg string)
ext/security/hmac/hmac.go:302
↓ 1 callersFunctiondiscoverTestDirs
(absTestdataDir string)
conformance/policy/policy_conformance_test.go:110
↓ 1 callersFunctiondistinctList
(adapt types.Adapter, list traits.Lister)
ext/lists.go:685
↓ 1 callersFunctiondivideInt64Checked
divideInt64Checked performs division with overflow detection of two int64 values, as well as a division by zero check. If the operation fails the err
common/types/overflow.go:82
↓ 1 callersFunctiondivideUint64Checked
divideUint64Checked performs division with a test for division by zero. If the operation fails the error return value will be non-nil.
common/types/overflow.go:143
↓ 1 callersMethoddoIndent
()
common/debug/debug.go:285
↓ 1 callersFunctiondoublePackAny
(t *testing.T, m proto.Message)
common/types/pb/equal_test.go:366
↓ 1 callersFunctiondoublingStringBindExpr
doublingStringBindExpr doubles the input string s through nested cel.bind calls: cel.bind(a0, s, cel.bind(a1, a0 + a0, ... cel.bind(aN, aN-1 + aN-1,
ext/bindings_test.go:433
↓ 1 callersMethoddynAggregateLiteralElementTypesEnabled
()
checker/checker.go:638
← previousnext →2,901–3,000 of 9,178, ranked by callers