MCPcopy Create free account

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

Functions7,844 in github.com/cel-expr/cel-go

↓ 7 callersFunctionassertUnshared
(t *testing.T, reg *Registry)
common/types/provider_test.go:81
↓ 7 callersFunctioncompile
Functions to assist with CEL execution. compile will parse and check an expression `expr` against a given environment `env` and determine whether the
codelab/solution/codelab.go:388
↓ 7 callersFunctionevalExpr
(t *testing.T, env *cel.Env, expr string, vars map[string]any)
ext/security/jwt/jwt_test.go:48
↓ 7 callersFunctionexprInternal
(factory ExprFactory, e *exprpb.Expr)
common/ast/conversion.go:125
↓ 7 callersFunctionfixedSizeEstimate
(val uint64)
ext/costs.go:94
↓ 7 callersMethodgetType
(e ast.Expr)
checker/checker.go:680
↓ 7 callersMethodglobalCallOrMacro
(exprID int64, function string, args ...ast.Expr)
parser/parser.go:953
↓ 7 callersFunctionmustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callersMethodnewExpr
(ctx any)
parser/helper.go:151
↓ 7 callersFunctionparsePolicy
(t testing.TB, name string, parseOpts []ParserOption)
policy/compiler_test.go:484
↓ 7 callersMethodplan
(expr ast.Expr)
interpreter/planner.go:106
↓ 7 callersMethodreportIssue
(e error)
repl/commands.go:159
↓ 7 callersFunctionsanitizeStructTypeName
(structType string)
common/types/provider.go:815
↓ 7 callersFunctionsetLimit
(id limitID, limit int)
cel/options.go:986
↓ 7 callersFunctionsubstitute
substitute replaces all direct and indirect occurrences of bound type parameters. Unbound type parameters are replaced by DYN if typeParamToDyn is tru
checker/types.go:277
↓ 7 callersFunctiontestEvalWithCost
(t *testing.T, env *cel.Env, ast *cel.Ast, in any, wantCost uint64)
ext/sets_test.go:502
↓ 7 callersFunctiontimestampOf
(t time.Time)
common/types/timestamp.go:43
↓ 7 callersMethodverifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting_v2.go:551
↓ 7 callersMethodverifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting.go:611
↓ 6 callersMethodActiveAsyncCalls
ActiveAsyncCalls returns the number of async function calls that have been launched but whose completions have not yet been drained.
interpreter/frame.go:267
↓ 6 callersMethodAddExcludedMacros
AddExcludedMacros deny-lists one or more macros by function name.
common/env/env.go:673
↓ 6 callersMethodAddFeatures
AddFeatures appends one or more features to the config.
common/env/env.go:210
↓ 6 callersMethodAddIncludedMacros
AddIncludedMacros allow-lists one or more macros by function name. Note, this option will override any excluded macros.
common/env/env.go:667
↓ 6 callersMethodAddSerializableOption
AddSerializableOption adds an option to the basic environment that is flagged as YAML compatible.
repl/evaluator.go:680
↓ 6 callersMethodAsCost
AsCost converts a size estimates to an equivalent cost estimate.
checker/cost.go:164
↓ 6 callersMethodAttr
Attr returns the Attribute value.
interpreter/interpretable.go:86
↓ 6 callersMethodBuffer
(e ast.Expr)
common/debug/debug.go:83
↓ 6 callersMethodChildren
Children returns a list of child expression nodes.
common/ast/navigable.go:37
↓ 6 callersMethodConsume
Consume implements (antlr.CharStream).Consume.
parser/input.go:30
↓ 6 callersMethodCopyExpr
CopyExpr creates a deep copy of the input Expr value.
common/ast/factory.go:22
↓ 6 callersFunctionCustomDecoratorV2
CustomDecoratorV2 configures a custom V2 interpretable decorator for the program.
interpreter/interpreter.go:173
↓ 6 callersMethodDocumentation
Documentation returns the documentation coded by the DocKind to assist with text formatting.
common/doc.go:183
↓ 6 callersFunctionErrorRecoveryLimit
ErrorRecoveryLimit limits the number of attempts the parser will perform to recover from an error.
parser/options.go:66
↓ 6 callersFunctionEvalStateFactory
EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.
interpreter/interpreter.go:85
↓ 6 callersFunctionExhaustiveEval
ExhaustiveEval replaces operations that short-circuit with versions that evaluate expressions and couples this behavior with the TrackState() decorato
interpreter/interpreter.go:185
↓ 6 callersMethodExtensions
Extensions returns the set of extensions present in the source.
common/ast/ast.go:441
↓ 6 callersMethodHasIterVar2
HasIterVar2 returns true if the second iteration variable is non-empty.
common/ast/expr.go:286
↓ 6 callersMethodHasLateBinding
HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
common/decls/decls.go:326
↓ 6 callersFunctionJSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:121
↓ 6 callersMethodKind
Kind indicates general category of the type.
common/types/types.go:284
↓ 6 callersFunctionLateFunctionBinding
LateFunctionBinding indicates that the function has a binding which is not known at compile time. This is useful for functions which have side-effects
common/decls/decls.go:998
↓ 6 callersFunctionMaxRecursionDepth
MaxRecursionDepth limits the maximum depth the parser will attempt to parse the expression before giving up.
parser/options.go:38
↓ 6 callersFunctionMaybeNoSuchOverload
MaybeNoSuchOverload determines whether to propagate an error if one is provided as an argument, or to return an unknown set, or to produce a new error
common/decls/decls.go:440
↓ 6 callersMethodMember
()
parser/gen/cel_parser.go:2535
↓ 6 callersMethodName
Name returns the function name in human-readable terms, e.g. 'contains' of 'math.least'
common/decls/decls.go:115
↓ 6 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:569
↓ 6 callersFunctionNewCheckedAST
NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
common/ast/ast.go:121
↓ 6 callersFunctionNewIdentReference
NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
common/ast/ast.go:483
↓ 6 callersMethodNewMap
NewMap creates a CreateStruct instruction for a map where the map is comprised of the optional set of key, value entries.
cel/macro.go:85
↓ 6 callersMethodNewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
parser/macro.go:212
↓ 6 callersMethodNewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
cel/macro.go:88
↓ 6 callersMethodNewPresenceTest
NewPresenceTest creates a Select TestOnly Expr value for modelling has() semantics.
parser/macro.go:285
↓ 6 callersMethodObserveExec
ObserveExec evaluates an interpretable and performs per-evaluation state-tracking. This method is concurrency safe and the expectation is that the ob
interpreter/interpretable.go:179
↓ 6 callersMethodOverloadID
OverloadID returns the overload id associated with the function specialization. Overload ids are stable across language boundaries and can be treated
interpreter/interpretable.go:126
↓ 6 callersMethodParent
Parent returns the parent of the current activation, may be nil. If non-nil, the parent will be searched during resolve calls.
interpreter/activation.go:34
↓ 6 callersMethodParse
Parse parses the expression represented by source and returns the result.
parser/parser.go:98
↓ 6 callersFunctionParseStructField
ParseStructField configures how to parse Go struct fields. It can be used to customize struct field parsing.
common/types/native.go:83
↓ 6 callersFunctionParseType
ParseType parses a human readable type string into the protobuf representation.
repl/typefmt.go:215
↓ 6 callersFunctionProtos
Protos returns a cel.EnvOption to configure extended macros and functions for proto manipulation. Note, all macros use the 'proto' namespace; however
ext/protos.go:54
↓ 6 callersMethodQualifyIfPresent
QualifyIfPresent qualifies the object if the qualifier is declared or defined on the object. The 'presenceOnly' flag indicates that the value is not n
interpreter/interpretable.go:106
↓ 6 callersMethodRecoverInline
(recognizer antlr.Parser)
parser/parser.go:300
↓ 6 callersFunctionSerializeTypeDesc
SerializeTypeDesc converts a CEL native *types.Type to a serializable TypeDesc.
common/env/env.go:969
↓ 6 callersMethodSetContainer
SetContainer configures the container name for this configuration.
common/env/env.go:110
↓ 6 callersMethodSetDisabled
SetDisabled disables or enables the library.
common/env/env.go:653
↓ 6 callersFunctionSingletonFunctionBinding
SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is
common/decls/decls.go:541
↓ 6 callersFunctionSingletonUnaryBinding
SingletonUnaryBinding creates a singleton function definition to be used for all function overloads. Note, this approach works well if operand is exp
cel/decls.go:255
↓ 6 callersMethodSource
Source returns a view of the input used to create the Ast. This source may be complete or constructed from the SourceInfo.
cel/env.go:116
↓ 6 callersMethodSubtract
Subtract returns the result of subtracting the input from the current value.
common/types/traits/math.go:61
↓ 6 callersFunctionTestExpression
TestExpression returns a TestRunnerOption which configures a policy file, expression file, or raw expression for testing
tools/celtest/test_runner.go:436
↓ 6 callersFunctionToAdornedDebugString
ToAdornedDebugString gives the adorned string representation of the Expr.
common/debug/debug.go:61
↓ 6 callersFunctionTwoVarComprehensions
TwoVarComprehensions introduces support for two-variable comprehensions. The two-variable form of comprehensions looks similar to the one-variable co
ext/comprehensions.go:163
↓ 6 callersFunctionUnparse
Unparse takes an input expression and source position information and generates a human-readable expression. Note, unparsing an AST will often genera
parser/unparser.go:44
↓ 6 callersMethodUnwrap
Unwrap returns the Activation which omits local state.
interpreter/interpreter.go:112
↓ 6 callersFunctionValidateComprehensionNestingLimit
ValidateComprehensionNestingLimit ensures that comprehension nesting does not exceed the specified limit. This validator can be useful for preventing
cel/validator.go:247
↓ 6 callersMethodWithJSONFieldNames
WithJSONFieldNames configures the registry with the JSON field name support enabled or disabled.
common/types/provider.go:257
↓ 6 callersFunctionawaitEval
awaitEval runs ConcurrentEval and returns the result or fails on timeout.
cel/program_async_test.go:919
↓ 6 callersFunctionbuildZeroArgAsync
buildZeroArgAsync builds a zero-arity async overload from an option and returns its AsyncOp.
cel/async/async_test.go:43
↓ 6 callersMethodchildContext
()
common/types/size_calc.go:111
↓ 6 callersMethodcomputeSize
(e ast.Expr)
checker/cost.go:913
↓ 6 callersFunctionestimateAllocatingListCall
estimateAllocatingListCall computes cost as a function of the size of the result list with a baseline cost for the call dispatch and the associated li
ext/lists.go:831
↓ 6 callersFunctionevalExpr
(t *testing.T, env *cel.Env, expr string, vars map[string]any)
ext/security/hmac/hmac_test.go:34
↓ 6 callersFunctionextractIterVars
(mef cel.MacroExprFactory, arg0, arg1 ast.Expr)
ext/comprehensions.go:401
↓ 6 callersFunctionfile_test_proto3pb_test_all_types_proto_rawDescGZIP
()
test/proto3pb/test_all_types.pb.go:1118
↓ 6 callersMethodgetOrCreate
getOrCreate returns the existing call state for the (node id, args) tuple, or registers and returns a new one. A newly registered call is assigned a u
interpreter/async.go:218
↓ 6 callersMethodgetType
(e ast.Expr)
checker/cost.go:852
↓ 6 callersFunctioninRange
inRange reports whether s is all decimal digits and its value lies in [lo, hi].
common/types/timestamp.go:118
↓ 6 callersMethodisAssignable
(t1, t2 *types.Type)
checker/checker.go:640
↓ 6 callersFunctionisDyn
isDyn returns true if the input t is either type DYN or a well-known ANY message.
checker/types.go:22
↓ 6 callersMethodmaybeCreateLiteral
(id int64, val ref.Val)
interpreter/prune.go:89
↓ 6 callersMethodmaybeValue
(id int64)
interpreter/prune.go:473
↓ 6 callersMethodnewLiteral
(ctx any, value ref.Val)
parser/helper.go:52
↓ 6 callersFunctionnewNonOptionalCompositionStep
newNonOptionalCompositionStep returns an output step whose output is not optional.
policy/composer.go:492
↓ 6 callersFunctionnewTestEnv
(t testing.TB, cont *containers.Container, reg *types.Registry)
interpreter/interpreter_test.go:2627
↓ 6 callersFunctionnewTestStructTypeRegistry
(t *testing.T)
common/types/provider_test.go:1692
↓ 6 callersFunctionprogram
(t testing.TB, tst *testCase, opts ...PlannerOption)
interpreter/interpreter_test.go:2490
↓ 6 callersMethodsetup
(t testing.TB, env *cel.Env, ast *cel.Ast)
policy/compiler_test.go:326
↓ 6 callersMethodskipWhitespace
()
common/env/io.go:236
↓ 6 callersFunctiontestCompreEnv
(t *testing.T, opts ...cel.EnvOption)
ext/comprehensions_test.go:795
↓ 6 callersFunctiontestMustParse
(t testing.TB, data any)
interpreter/interpreter_test.go:2605
↓ 6 callersMethodtypeMismatch
(id int64, l common.Location, expected, actual *types.Type)
checker/errors.go:73
← previousnext →501–600 of 7,844, ranked by callers