MCPcopy Create free account

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

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

↓ 1 callersFunctiondynMsg
(t *testing.T, msg proto.Message)
common/types/pb/type_test.go:629
↓ 1 callersMethodeachValue
eachValue calls fn with each value the expression denotes in the given context. An expression which denotes no value in the context makes no calls.
common/cost/model.go:144
↓ 1 callersMethodeachValue
(ctx TrackContext, fn func(ref.Val))
common/cost/model.go:333
↓ 1 callersMethodeachValue
(ctx TrackContext, fn func(ref.Val))
common/cost/model.go:593
↓ 1 callersFunctionelemTypePtrForType
elemTypePtrForType is the reflect.Type equivalent of elemTypePtrFor.
common/types/provider.go:1163
↓ 1 callersFunctionenableOptionalSyntax
()
cel/library.go:965
↓ 1 callersMethodensureMutableAppliedFeatures
()
cel/env.go:688
↓ 1 callersMethodensureMutableFeatures
()
cel/env.go:681
↓ 1 callersMethodensureMutableLibraries
()
cel/env.go:674
↓ 1 callersMethodensureMutableLimits
()
cel/env.go:695
↓ 1 callersMethodenterScope
()
policy/composer.go:153
↓ 1 callersMethodentryExprEquiv
(e1, e2 EntryExpr)
common/ast/equiv.go:351
↓ 1 callersFunctionenumerateExprIDs
(exprs ...ast.NavigableExpr)
policy/composer.go:658
↓ 1 callersFunctionenvToFeatures
(pbEnv *configpb.Environment)
tools/compiler/compiler.go:313
↓ 1 callersFunctionenvToStdLib
(pbEnv *configpb.Environment)
tools/compiler/compiler.go:361
↓ 1 callersFunctionenvToValidators
(pbEnv *configpb.Environment)
tools/compiler/compiler.go:324
↓ 1 callersFunctionequalField
(fd protoreflect.FieldDescriptor, x, y protoreflect.Value)
common/types/pb/equal.go:114
↓ 1 callersFunctionequalList
(fd protoreflect.FieldDescriptor, x, y protoreflect.List)
common/types/pb/equal.go:138
↓ 1 callersFunctionequalMap
(fd protoreflect.FieldDescriptor, x, y protoreflect.Map)
common/types/pb/equal.go:125
↓ 1 callersFunctionequalUnknown
(x, y protoreflect.RawFields)
common/types/pb/equal.go:176
↓ 1 callersFunctionequivLiteral
(l1, l2 ref.Val)
common/ast/equiv.go:444
↓ 1 callersMethoderrorCount
errorCount indicates the number of errors reported.
parser/errors.go:27
↓ 1 callersFunctionestPtr
(e cost.CostEstimate)
common/cost/cost_test.go:702
↓ 1 callersFunctionestimateAggregateDynSize
estimateAggregateDynSize calculates the aggregate size estimate for a dynamically typed AST node, folding nested container hints ("@items", "@keys", "
common/cost/aggregate_strategy.go:94
↓ 1 callersMethodestimateAggregateSize
estimateAggregateSize evaluates the aggregate size using this context and resets state.
common/types/size_calc.go:265
↓ 1 callersFunctionestimateCostBound
estimateCostBound compiles and estimates an expression against the shared hints.
common/cost/cost_bounds_test.go:482
↓ 1 callersFunctionestimateDecode
(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode)
ext/encoders.go:421
↓ 1 callersFunctionestimateDecodeSize
(sz cost.SizeEstimate)
ext/encoders.go:440
↓ 1 callersFunctionestimateDefaultDynSize
estimateDefaultDynSize calculates the size estimate for a dynamically typed AST node. For variable/path nodes, the nesting of hints ("@items", "@keys"
common/cost/default_strategy.go:85
↓ 1 callersFunctionestimateElementEqualityCost
(elemType *types.Type, itemSize cost.SizeEstimate)
ext/lists.go:1197
↓ 1 callersFunctionestimateEncode
(estimator cost.Estimator, target *cost.AstNode, args []cost.AstNode)
ext/encoders.go:411
↓ 1 callersFunctionestimateFlattenSize
(sz cost.SizeEstimate, tType *types.Type, depth uint64)
ext/lists.go:853
↓ 1 callersFunctionestimateFlattenedList
estimateFlattenedList bounds the list target.flatten(depth) produces when sizes are lengths. anyDepth reports a non-literal depth, which may take any
ext/lists.go:932
↓ 1 callersFunctionestimateItemSize
(estimator cost.Estimator, node cost.AstNode)
ext/lists.go:1183
↓ 1 callersFunctionestimateListDistinct
estimateListDistinct estimates l.distinct() in the legacy cost model. When legacy is true (ModelVersion(0)), lists v3 estimates a flat factor of 2 pe
ext/lists.go:1120
↓ 1 callersFunctionestimateListFlattenDepth
estimateListFlattenDepth estimates l.flatten(depth) under cost model version 1+.
ext/lists.go:767
↓ 1 callersFunctionestimateListSort
estimateListSort estimates l.sort() under ModelVersion0.
ext/lists.go:1137
↓ 1 callersFunctionestimateListSortBy
estimateListSortBy estimates l.sortBy() under ModelVersion0.
ext/lists.go:1147
↓ 1 callersFunctionestimatePtr
(est cost.CostEstimate)
cel/cost_k8s_test.go:967
↓ 1 callersFunctionestimateSetsCost
(costFactor float64)
ext/sets.go:234
↓ 1 callersFunctionestimateSize
(estimator cost.Estimator, node cost.AstNode)
common/cost/cost_test.go:725
↓ 1 callersFunctionestimatorCompiler
(opts ...ModelOption)
common/cost/version.go:150
↓ 1 callersMethodestimators
()
common/cost/version.go:86
↓ 1 callersFunctionevalCostAndState
evalCostAndState evaluates the ast and reports the tracked cost along with whether evaluation state was recorded.
cel/cel_test.go:1754
↓ 1 callersFunctionevalWithCEL
(input string, expectedRuntimeCost uint64, expectedEstimatedCost cost.CostEstimate, t *testing.T)
ext/strings_test.go:698
↓ 1 callersFunctionevaluateExpr
(ctx *OptimizerContext, a *ast.AST, navigableExpr ast.NavigableExpr, activation Activation)
cel/folding.go:169
↓ 1 callersFunctionexactSizeEstimate
exactSizeEstimate reports the size estimate of a list or map value under a strategy, with element and key sizes bounded by the smallest and largest pr
common/cost/totals_test.go:184
↓ 1 callersFunctionexercise1
exercise1 evaluates a simple literal expression: "Hello, World!" Compile, eval, profit!
codelab/codelab.go:56
↓ 1 callersFunctionexercise1
exercise1 evaluates a simple literal expression: "Hello, World!" Compile, eval, profit!
codelab/solution/codelab.go:56
↓ 1 callersFunctionexercise2
exercise2 shows how to declare and use variables in expressions. Given a `request` of type `google.rpc.context.AttributeContext.Request` determine wh
codelab/codelab.go:66
↓ 1 callersFunctionexercise2
exercise2 shows how to declare and use variables in expressions. Given a `request` of type `google.rpc.context.AttributeContext.Request` determine wh
codelab/solution/codelab.go:95
↓ 1 callersFunctionexercise3
exercise3 demonstrates how CEL's commutative logical operators work. Construct an expression which checks whether the `request.auth.claims.group` val
codelab/codelab.go:81
↓ 1 callersFunctionexercise3
exercise3 demonstrates how CEL's commutative logical operators work. Construct an expression which checks whether the `request.auth.claims.group` val
codelab/solution/codelab.go:127
↓ 1 callersFunctionexercise4
exercise4 demonstrates how to extend CEL with custom functions. Declare a `contains` member function on map types that returns a boolean indicating w
codelab/codelab.go:91
↓ 1 callersFunctionexercise4
exercise4 demonstrates how to extend CEL with custom functions. Declare a `contains` member function on map types that returns a boolean indicating w
codelab/solution/codelab.go:156
↓ 1 callersFunctionexercise5
exercise5 covers how to build complex objects as CEL literals. Given the input `now`, construct a JWT with an expiry of 5 minutes.
codelab/codelab.go:100
↓ 1 callersFunctionexercise5
exercise5 covers how to build complex objects as CEL literals. Given the input `now`, construct a JWT with an expiry of 5 minutes.
codelab/solution/codelab.go:202
↓ 1 callersFunctionexercise6
exercise6 describes how to build proto message types within CEL. Given an input `jwt` and time `now` construct a `google.rpc.context.AttributeContext
codelab/codelab.go:111
↓ 1 callersFunctionexercise6
exercise6 describes how to build proto message types within CEL. Given an input `jwt` and time `now` construct a `google.rpc.context.AttributeContext
codelab/solution/codelab.go:240
↓ 1 callersFunctionexercise7
exercise7 introduces macros for dealing with repeated fields and maps. Determine whether the `jwt.extra_claims` has at least one key that starts with
codelab/codelab.go:122
↓ 1 callersFunctionexercise7
exercise7 introduces macros for dealing with repeated fields and maps. Determine whether the `jwt.extra_claims` has at least one key that starts with
codelab/solution/codelab.go:307
↓ 1 callersFunctionexercise8
exercise8 covers some useful features of CEL-Go which can be used to improve performance and better understand evaluation behavior. Turn on the optim
codelab/codelab.go:136
↓ 1 callersFunctionexercise8
exercise8 covers some useful features of CEL-Go which can be used to improve performance and better understand evaluation behavior. Turn on the optim
codelab/solution/codelab.go:343
↓ 1 callersMethodexitScope
()
policy/composer.go:157
↓ 1 callersMethodexpandFieldPaths
(celType *Type, paths []*fieldPath)
cel/fieldpaths.go:67
↓ 1 callersMethodexpectUnparameterized
(p typeParams, id string)
repl/typefmt.go:86
↓ 1 callersFunctionexpectValueToNative
(t *testing.T, in ref.Val, out any)
common/types/provider_test.go:1220
↓ 1 callersFunctionexprCall
(factory ExprFactory, id int64, call *exprpb.Expr_Call)
common/ast/conversion.go:150
↓ 1 callersFunctionexprComprehension
(factory ExprFactory, id int64, comp *exprpb.Expr_Comprehension)
common/ast/conversion.go:170
↓ 1 callersFunctionexprEqualsNeedle
(needle, target ast.Expr)
cel/folding.go:681
↓ 1 callersFunctionexprIdent
(factory ExprFactory, id int64, i *exprpb.Expr_Ident)
common/ast/conversion.go:210
↓ 1 callersFunctionexprLinesFromPolicy
exprLinesFromPolicy returns a set of line numbers within a policy where expressions (variables, conditions, etc.) are defined.
policy/compiler_test.go:582
↓ 1 callersFunctionexprList
(factory ExprFactory, id int64, l *exprpb.Expr_CreateList)
common/ast/conversion.go:214
↓ 1 callersFunctionexprLiteral
(factory ExprFactory, id int64, c *exprpb.Constant)
common/ast/conversion.go:202
↓ 1 callersFunctionexprMap
(factory ExprFactory, id int64, s *exprpb.Expr_CreateStruct)
common/ast/conversion.go:226
↓ 1 callersFunctionexprSelect
(factory ExprFactory, id int64, s *exprpb.Expr_Select)
common/ast/conversion.go:250
↓ 1 callersFunctionexprStruct
(factory ExprFactory, id int64, s *exprpb.Expr_CreateStruct)
common/ast/conversion.go:261
↓ 1 callersFunctionexprValueToRefValue
(adapter types.Adapter, ev *valuepb.ExprValue)
conformance/conformance_test.go:149
↓ 1 callersFunctionextAliases
()
ext/extension_option_factory.go:64
↓ 1 callersFunctionextFactories
()
ext/extension_option_factory.go:59
↓ 1 callersFunctionextensionOpt
()
tools/compiler/compiler.go:145
↓ 1 callersFunctionextractIterVar
(mef cel.MacroExprFactory, target ast.Expr)
ext/comprehensions.go:422
↓ 1 callersFunctionextractSourceText
extractSourceText extracts original text from a parse rule match. Preserves original whitespace if possible.
repl/commands.go:165
↓ 1 callersMethodextractStructName
extractStructName converts a chain of pre-parsed AST nodes representing field selections, such as "a.b.Msg", into a qualified struct type name.
parser/pratt_parser.go:688
↓ 1 callersFunctionfeatureIDByName
(name string)
cel/options.go:98
↓ 1 callersFunctionfeatureNameByID
(id int)
cel/options.go:93
↓ 1 callersFunctionfieldDescToCELType
(field *pb.FieldDescription)
common/types/provider.go:971
↓ 1 callersFunctionfieldNameByTag
(structTagToParse string)
common/types/native.go:156
↓ 1 callersFunctionfieldTesterFor
(t *NativeType, refField reflect.StructField, offset uintptr, expectedPtrTyp, expectedStructTyp unsafe.Pointer
common/types/native.go:879
↓ 1 callersFunctionfieldToCELType
(field protoreflect.FieldDescriptor)
cel/options.go:981
↓ 1 callersMethodfieldTypeMismatch
(id int64, l common.Location, name string, field, value *types.Type)
checker/errors.go:40
↓ 1 callersFunctionfileDescriptorSet
(path string)
tools/celtest/test_runner.go:521
↓ 1 callersFunctionfile_fuzzing_cel_go_lpm_proto_init
()
fuzzing/cel_go_lpm.pb.go:137
↓ 1 callersFunctionfile_fuzzing_cel_go_lpm_proto_rawDescGZIP
()
fuzzing/cel_go_lpm.pb.go:115
↓ 1 callersFunctionfile_fuzzing_interpreter_fuzz_proto_init
()
fuzzing/interpreter_fuzz.pb.go:158
↓ 1 callersFunctionfile_fuzzing_interpreter_fuzz_proto_rawDescGZIP
()
fuzzing/interpreter_fuzz.pb.go:132
↓ 1 callersFunctionfile_test_proto2pb_test_extensions_proto_init
()
test/proto2pb/test_extensions.pb.go:183
↓ 1 callersFunctionfile_test_proto2pb_test_extensions_proto_rawDescGZIP
()
test/proto2pb/test_extensions.pb.go:155
↓ 1 callersFunctionfile_test_proto3pb_test_all_types_proto_init
()
test/proto3pb/test_all_types.pb.go:1187
↓ 1 callersFunctionfile_test_proto3pb_test_import_proto_rawDescGZIP
()
test/proto3pb/test_import.pb.go:94
← previousnext →3,001–3,100 of 9,178, ranked by callers