MCPcopy Create free account

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

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

↓ 9 callersMethodSetKindCase
SetKindCase replaces the contents of the current expression with the contents of the other. The SetKindCase takes ownership of any expression instanc
common/ast/expr.go:113
↓ 9 callersMethodSetOffsetRange
SetOffsetRange sets the OffsetRange for the given expression id.
common/ast/ast.go:369
↓ 9 callersFunctionSingletonUnaryBinding
SingletonUnaryBinding creates a singleton function definition to be used for all function overloads. Note, this approach works well if operand is exp
common/decls/decls.go:518
↓ 9 callersMethodState
State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
cel/program.go:197
↓ 9 callersFunctionTypeDescs
TypeDescs adds type declarations from any protoreflect.FileDescriptor, protoregistry.Files, google.protobuf.FileDescriptorProto or google.protobuf.Fil
cel/options.go:436
↓ 9 callersMethodTypeName
TypeName returns the type-erased fully qualified runtime type name. TypeName implements the ref.Type interface method.
common/types/types.go:372
↓ 9 callersFunctionUnion
Union creates an expression representing the union interval of multiple expressions.
common/cost/model.go:838
↓ 9 callersMethodappend
(s string)
common/debug/debug.go:276
↓ 9 callersFunctionargumentsOnly
argumentsOnly marks the model of a short-circuiting operator, which is exempt from minCallCost.
common/cost/model.go:1604
↓ 9 callersFunctionbenchmarkMemoryTracker
(b *testing.B, expr string, vars []*decls.VariableDecl, in any, enableTracking bool, memOpts ...types.MemoryTr
interpreter/runtimememory_test.go:331
↓ 9 callersMethodcopy
()
repl/evaluator.go:400
↓ 9 callersFunctioncostV0
costV0 records the estimate a case produces under cost.ModelVersion0, for the cost tables' estimatedCostV0 fields. It exists because the constructors
ext/sets_test.go:493
↓ 9 callersFunctionevalExpr
(t *testing.T, env *cel.Env, expr string, vars map[string]any)
ext/security/hmac/hmac_test.go:35
↓ 9 callersMethodisLegacyTracked
isLegacyTracked reports whether the legacy cost model derived the element size of the container from the shape of the expression, rather than from a s
common/cost/estimator.go:635
↓ 9 callersFunctionisTypeTag
(node *yaml.Node, wantTag yamlNodeType)
policy/yaml.go:96
↓ 9 callersFunctionnewTestFrame
newTestFrame creates an ExecutionFrame with an evaluation context attached.
interpreter/async_test.go:53
↓ 9 callersFunctionnilTestExpr
(t testing.TB)
common/ast/expr_test.go:495
↓ 9 callersFunctionsanitizeStructTypeName
(structType string)
common/types/provider.go:895
↓ 9 callersFunctionupdateContextPlans
Attempt to update context in place after an update. This is done eagerly to help avoid introducing an invalid 'let' expression. The planned expression
repl/evaluator.go:550
↓ 9 callersFunctionversionOf
versionOf reports the cost model version of an EstimateContext.
common/cost/model.go:1301
↓ 8 callersMethodAddImports
AddImports appends a set of imports to the config.
common/env/env.go:192
↓ 8 callersFunctionArgKey
ArgKey creates an expression referencing the key size of the argument at the given index.
common/cost/model.go:238
↓ 8 callersMethodAsCost
AsCost converts a size estimate to an equivalent cost estimate.
common/cost/cost.go:307
↓ 8 callersFunctionBinaryBinding
BinaryBinding provides the implementation of a binary overload. The provided function is protected by a runtime type-guard which ensures runtime type
common/decls/decls.go:1016
↓ 8 callersMethodComputeResult
ComputeResult tracks and computes the result of the given asynchronous function. The first invocation for a given (node id, args) tuple registers the
interpreter/frame.go:395
↓ 8 callersMethodConcurrentEval
ConcurrentEval evaluates the program concurrently, returning a channel that will receive the final EvalResult when all asynchronous operations complet
cel/program.go:74
↓ 8 callersFunctionCost
Cost estimates the cost of the parsed and type checked CEL expression.
common/cost/estimator.go:149
↓ 8 callersFunctionCostSizingStrategy
CostSizingStrategy configures a SizingStrategy for both cost estimation and runtime cost tracking.
cel/options.go:893
↓ 8 callersMethodCreateEnv
CreateEnv creates a singleton CEL environment with the configured environment options.
tools/compiler/compiler.go:95
↓ 8 callersFunctionEagerlyValidateDeclarations
EagerlyValidateDeclarations ensures that any collisions between configured declarations are caught at the time of the `NewEnv` call. Eagerly validati
cel/options.go:240
↓ 8 callersFunctionEncodersVersion
EncodersVersion sets the library version for encoder extensions.
ext/encoders.go:168
↓ 8 callersMethodError
Error returns the error message for LimitExceededError.
common/cost/tracker.go:118
↓ 8 callersFunctionErrorRecoveryLimit
ErrorRecoveryLimit limits the number of attempts the parser will perform to recover from an error.
parser/options.go:68
↓ 8 callersFunctionEvalStateObserver
EvalStateObserver provides an observer which records the value associated with the given expression id. EvalState must be provided to the observer.
interpreter/interpreter.go:98
↓ 8 callersFunctionFromConfig
FromConfig produces and applies a set of EnvOption values derived from an env.Config object. For configuration elements which refer to features outsi
cel/options.go:607
↓ 8 callersFunctionFunctionDocs
FunctionDocs configures documentation from a list of strings separated by newlines.
common/decls/decls.go:484
↓ 8 callersMethodGetExpr
()
fuzzing/cel_go_lpm.pb.go:76
↓ 8 callersMethodGetStartLocation
GetStartLocation calculates the human-readable 1-based line and 0-based column of the first character of the expression node at the id.
common/ast/ast.go:385
↓ 8 callersMethodHasIterVar2
HasIterVar2 returns true if the second iteration variable is non-empty.
common/ast/expr.go:286
↓ 8 callersFunctionInferFileFormat
InferFileFormat infers the file format from the file path.
tools/compiler/compiler.go:201
↓ 8 callersFunctionInitEmptyLiteralContext
(p *LiteralContext)
parser/gen/cel_parser.go:5499
↓ 8 callersFunctionInitEmptyLiteralContext
(p *LiteralContext)
repl/parser/commands_parser.go:9457
↓ 8 callersMethodIsList
IsList returns true if the field is a repeated value. This method will also return true for map values, so check whether the field is also a map.
common/types/pb/type.go:366
↓ 8 callersMethodIsMap
IsMap returns true if the field is of map type.
common/types/pb/type.go:347
↓ 8 callersFunctionJSONFieldNames
JSONFieldNames configures the Db to support proto field accesses by their JSON names.
common/types/pb/pb.go:91
↓ 8 callersMethodJSONFieldNames
JSONFieldNames returns whether json field names are enabled in this registry.
common/types/provider.go:268
↓ 8 callersFunctionKeyOf
KeyOf creates an expression referencing the key size of another expression.
common/cost/model.go:604
↓ 8 callersMethodKind
Kind indicates general category of the type.
common/types/types.go:284
↓ 8 callersMethodKind
()
common/ast/expr.go:329
↓ 8 callersFunctionMax
Max creates an expression representing the maximum of two quantities.
common/cost/model.go:809
↓ 8 callersFunctionMaxRecursionDepth
MaxRecursionDepth limits the maximum depth the parser will attempt to parse the expression before giving up.
parser/options.go:40
↓ 8 callersMethodNativeToValue
NativeToValue converts various "native" types to ref.Val with this specific implementation providing support for custom proto-based types. This metho
common/types/provider.go:612
↓ 8 callersFunctionNewActivation
NewActivation returns an activation based on a map-based binding where the map keys are expected to be qualified names used with ResolveName calls. T
cel/program.go:95
↓ 8 callersFunctionNewEvalState
NewEvalState returns an EvalState instanced used to observe the intermediate evaluations of an expression.
interpreter/evalstate.go:44
↓ 8 callersFunctionNewListCallEstimate
NewListCallEstimate creates a CallEstimate for a call that allocates a list, adding CallCost and ListCreateBaseCost to work and setting ResultSize to
common/cost/cost.go:401
↓ 8 callersMethodNewMap
NewMap creates a CreateStruct instruction for a map where the map is comprised of the optional set of key, value entries.
parser/macro.go:209
↓ 8 callersMethodOffsetRanges
OffsetRanges returns a map of expression id to OffsetRange values where the range indicates either: the start and end position in the input stream whe
common/ast/ast.go:352
↓ 8 callersFunctionOptionalTypesVersion
OptionalTypesVersion configures the version of the optional type library. The version limits which functions are available. Only functions introduced
cel/library.go:434
↓ 8 callersMethodRegisterMessage
RegisterMessage registers a protocol buffer message and its dependencies.
common/types/ref/provider.go:73
↓ 8 callersMethodResidualAst
ResidualAst takes an Ast and its EvalDetails to produce a new Ast which only contains the attribute references which are unknown. Residual expression
cel/env.go:931
↓ 8 callersFunctionSafeSubtract
SafeSubtract returns the difference of x - y, saturating at zero. If x is saturated (math.MaxUint64), it remains saturated.
common/cost/cost.go:95
↓ 8 callersFunctionSets
Sets returns a cel.EnvOption to configure namespaced set relationship functions. There is no set type within CEL, and while one may be introduced in
ext/sets.go:77
↓ 8 callersFunctionTargetElem
TargetElem creates an expression referencing the element size of the receiver / target object.
common/cost/model.go:303
↓ 8 callersMethodType
Type returns the type constructed.
interpreter/interpretable.go:142
↓ 8 callersFunctionUnknownCostEstimate
UnknownCostEstimate returns a cost with an unknown impact.
common/cost/cost.go:328
↓ 8 callersFunctionValidateHomogeneousAggregateLiterals
ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e. no mixed list element types or mixed map
cel/validator.go:245
↓ 8 callersFunctionaddFunctionBindings
(t testing.TB, dispatcher Dispatcher)
interpreter/interpreter_test.go:2860
↓ 8 callersFunctionassertShared
(t *testing.T, reg *Registry)
common/types/provider_test.go:75
↓ 8 callersFunctioncacheableAggregateSize
cacheableAggregateSize reports whether a size computed with the given sizer is safe to memoize on the value. Only totals from computations which verif
common/types/size_calc.go:145
↓ 8 callersFunctioncreateTestJWT
(t *testing.T, header, payload map[string]any)
ext/security/jwt/jwt_test.go:31
↓ 8 callersFunctiondurationOf
(d time.Duration)
common/types/duration.go:39
↓ 8 callersFunctioneval
eval will evaluate a given program `prg` against a set of variables `vars` and return the output, eval details (optional), or error that results from
codelab/solution/codelab.go:404
↓ 8 callersFunctionfile_test_proto2pb_test_all_types_proto_rawDescGZIP
()
test/proto2pb/test_all_types.pb.go:1256
↓ 8 callersMethodgetElem
(ind int)
common/types/list.go:841
↓ 8 callersMethodstructPtrFrom
(obj any, expectedPtrTyp, expectedStructTyp unsafe.Pointer)
common/types/native.go:855
↓ 8 callersMethodtypeOf
(id int64)
ext/formatting_v2.go:547
↓ 8 callersMethodtypeOf
(id int64)
ext/formatting.go:607
↓ 8 callersFunctionunwrapStruct
(obj any)
common/types/native.go:869
↓ 8 callersMethodvisit
(expr ast.Expr)
parser/unparser.go:123
↓ 7 callersMethodAccuIdentName
AccuIdentName reports the name of the accumulator variable to be used within a comprehension.
common/ast/factory.go:47
↓ 7 callersMethodAddIncludedFunctions
AddIncludedFunctions allow-lists one or more functions from the subset. Note, this option will override any excluded functions.
common/env/env.go:683
↓ 7 callersFunctionAsPartialActivation
AsPartialActivation walks the activation hierarchy and returns the first PartialActivation, if found.
interpreter/activation.go:247
↓ 7 callersFunctionAsyncBinding
AsyncBinding provides the implementation of an asynchronous overload. The provided function is called in its own goroutine with the provided context.
common/decls/decls.go:1053
↓ 7 callersMethodCollectMetadata
CollectMetadata records the source position information of a given YAML node, and returns the id associated with the source metadata which is returned
policy/parser.go:724
↓ 7 callersMethodConditionalAttribute
ConditionalAttribute creates an attribute with two Attribute branches, where the Attribute that is resolved depends on the boolean evaluation of the i
interpreter/attributes.go:43
↓ 7 callersFunctionContextProtoVars
ContextProtoVars uses the fields of the input proto.Messages as top-level variables within an Activation. Consider using with `DeclareContextProto` t
cel/options.go:1065
↓ 7 callersMethodCopyASTAndMetadata
CopyASTAndMetadata copies the input AST and propagates the macro metadata into the AST being optimized.
cel/optimizer.go:294
↓ 7 callersMethodCreateList
CreateList records list literal construction cost.
common/cost/tracker.go:191
↓ 7 callersFunctionCustomTypeProvider
CustomTypeProvider replaces the types.Provider implementation with a custom one. The `provider` variable type may either be types.Provider or ref.Typ
cel/options.go:187
↓ 7 callersFunctionEquivAST
EquivAST determines whether two ASTs are structurally equivalent. The comparison ignores numeric IDs except for resolving references and types. If bo
common/ast/equiv.go:101
↓ 7 callersFunctionExhaustiveEval
ExhaustiveEval replaces operations that short-circuit with versions that evaluate expressions and couples this behavior with the TrackState() decorato
interpreter/interpreter.go:192
↓ 7 callersMethodExpr
()
parser/gen/cel_parser.go:600
↓ 7 callersMethodExtensions
Extensions returns the set of extensions present in the source.
common/ast/ast.go:441
↓ 7 callersMethodFindFieldType
FieldFieldType returns the field type for a checked type value. Returns false if the field could not be found.
common/types/ref/provider.go:40
↓ 7 callersMethodFindIdent
(identName string)
cel/options.go:1241
↓ 7 callersMethodGetE
GetE returns the e rule contexts.
repl/parser/commands_parser.go:955
↓ 7 callersMethodGetName
()
test/proto2pb/test_all_types.pb.go:780
↓ 7 callersMethodHasLateBinding
HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
common/decls/decls.go:343
↓ 7 callersFunctionInitEmptyPrimaryContext
(p *PrimaryContext)
parser/gen/cel_parser.go:2810
↓ 7 callersFunctionInitEmptyPrimaryContext
(p *PrimaryContext)
repl/parser/commands_parser.go:6768
← previousnext →501–600 of 9,178, ranked by callers