MCPcopy Create free account

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

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

↓ 7 callersMethodIsNonStrict
IsNonStrict returns whether the overload accepts errors and unknown values as arguments.
common/decls/decls.go:733
↓ 7 callersMethodIsOptional
IsOptional specifies whether the qualifier is optional. Instead of a direct qualification, an optional qualifier will be resolved via QualifyIfPresent
interpreter/attributes.go:75
↓ 7 callersFunctionJSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:123
↓ 7 callersMethodJSONName
JSONName returns the JSON name of the field, if present.
common/types/pb/type.go:385
↓ 7 callersMethodLT
LT mimics (*antlr.InputStream).LT.
parser/input.go:53
↓ 7 callersMethodLex
Lex scans and returns the next token from the source.
parser/lexer.go:545
↓ 7 callersMethodMacroCalls
MacroCalls returns the map of macro calls currently in the context.
cel/optimizer.go:317
↓ 7 callersFunctionMapSizeEstimate
MapSizeEstimate returns a SizeEstimate for a map with the given map size, key size, and value size.
common/cost/cost.go:216
↓ 7 callersFunctionMemoryTracking
MemoryTracking enables peak memory tracking during evaluation with an optional set of types.MemoryTrackerOption values to configure the tracker's size
cel/options.go:947
↓ 7 callersMethodNegate
Negate returns the complement of the current value.
common/types/traits/math.go:54
↓ 7 callersFunctionNewExtensionVersion
NewExtensionVersion creates a new extension version with a major, minor version.
common/ast/ast.go:564
↓ 7 callersFunctionNewFeature
NewFeature creates a new feature flag with a boolean enablement flag.
common/env/env.go:735
↓ 7 callersFunctionNewFunctionReference
NewFunctionReference creates a ReferenceInfo instance for a set of function overloads.
common/ast/ast.go:495
↓ 7 callersFunctionNewMemberOverload
NewMemberOverload returns a new serializable representation of a member (receiver) overload.
common/env/env.go:402
↓ 7 callersFunctionNewOverload
NewOverload returns a new serializable representation of a global overload.
common/env/env.go:397
↓ 7 callersMethodNewValue
NewValue creates a new type value from a qualified name and map of field name to value. Note, for each value, the Val.ConvertToNative function will b
common/types/provider.go:76
↓ 7 callersMethodOffsetLocation
OffsetLocation returns the Location of the expression identifier.
parser/macro.go:291
↓ 7 callersFunctionOverloadExamples
OverloadExamples configures example expressions for the overload.
common/decls/decls.go:989
↓ 7 callersMethodPeakMemory
PeakMemory returns the peak memory watermark observed through the course of execution when `MemoryTracking` is enabled. Otherwise, returns nil if memo
cel/program.go:216
↓ 7 callersMethodPlanProgram
PlanProgram generates an evaluable instance of the AST in the go-native representation within the environment (Env).
cel/env.go:800
↓ 7 callersMethodProtoReflect
()
test/proto3pb/test_all_types.pb.go:216
↓ 7 callersFunctionProtoToExpr
ProtoToExpr converts a protobuf Expr value to an ast.Expr value.
common/ast/conversion.go:108
↓ 7 callersMethodRangeMap
RangeMap iterates over the map and calls the provided function for each key-value pair. If the function returns false, the iteration will stop.
policy/yaml.go:49
↓ 7 callersMethodReceive
Receive implements traits.Receiver.Receive.
common/types/timestamp.go:214
↓ 7 callersMethodRegisterType
RegisterType registers a type value with the provider which ensures the provider is aware of how to map the type to an identifier. If a type is provi
common/types/ref/provider.go:80
↓ 7 callersMethodResultType
ResultType indicates the output type from calling the function.
common/decls/decls.go:766
↓ 7 callersMethodSetContainer
SetContainer configures the container name for this configuration.
common/env/env.go:110
↓ 7 callersMethodSetContextVariable
SetContextVariable configures the ContextVariable for this configuration.
common/env/env.go:138
↓ 7 callersMethodSetMacroCall
SetMacroCall sets the macro call metadata for the given macro id within the tracked source info metadata.
cel/optimizer.go:312
↓ 7 callersMethodSetStdLib
SetStdLib configures the LibrarySubset for the standard library.
common/env/env.go:186
↓ 7 callersFunctionSizeCalculatorMaxTraversal
SizeCalculatorMaxTraversal sets the maximum object traversal limit before saturating to math.MaxUint32.
common/types/size_calc.go:49
↓ 7 callersFunctionStdLibSubset
StdLibSubset configures the standard library to use a subset of its functions and macros. Since the StdLib is a singleton library, only the first ins
cel/library.go:133
↓ 7 callersFunctionStringSource
StringSource converts a string and location description to a model.Source.
policy/source.go:27
↓ 7 callersMethodToConfig
ToConfig converts the internal configuration of an ASTValidator into an env.Validator instance which minimally must include the validator name, but ma
cel/validator.go:150
↓ 7 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:45
↓ 7 callersFunctionadaptToProto
(e ast.Expr)
cel/macro.go:566
↓ 7 callersFunctionassertUnshared
(t *testing.T, reg *Registry)
common/types/provider_test.go:82
↓ 7 callersFunctioncompile
(t testing.TB, env *Env, expr string)
cel/cel_test.go:5212
↓ 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 callersFunctioncostBoundsEnv
costBoundsEnv builds an environment declaring the shared variables plus the given libraries.
common/cost/cost_bounds_test.go:242
↓ 7 callersFunctionevalExpr
(t *testing.T, env *cel.Env, expr string, vars map[string]any)
ext/security/jwt/jwt_test.go:48
↓ 7 callersMethodexpect
(kind tokenKind, msg string)
parser/pratt_parser.go:269
↓ 7 callersFunctionexprInternal
(factory ExprFactory, e *exprpb.Expr)
common/ast/conversion.go:125
↓ 7 callersMethodgetType
(e ast.Expr)
checker/checker.go:676
↓ 7 callersMethodglobalCallOrMacro
(exprID int64, function string, args ...ast.Expr)
parser/antlr_parser.go:858
↓ 7 callersFunctionmergeSizeEstimatePtr
mergeSizeEstimatePtr merges two optional SizeEstimate pointers using union.
common/cost/cost.go:295
↓ 7 callersFunctionmustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callersFunctionnewModelOptions
newModelOptions resolves the supplied options over the defaults.
common/cost/version.go:196
↓ 7 callersFunctionparsePolicy
(t testing.TB, name string, parseOpts []ParserOption)
policy/compiler_test.go:489
↓ 7 callersMethodplan
(expr ast.Expr)
interpreter/planner.go:114
↓ 7 callersMethodreportIssue
(e error)
repl/commands.go:159
↓ 7 callersFunctionsetLimit
(id limitID, limit int)
cel/options.go:1163
↓ 7 callersMethodsetup
(t testing.TB, env *cel.Env, ast *cel.Ast)
policy/compiler_test.go:326
↓ 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:315
↓ 7 callersFunctiontestEvalWithCost
testEvalWithCost asserts the tracked cost at the latest cost model revision and, for a checked ast, at ModelVersion0. wantCostV0 is omitted for the c
ext/sets_test.go:550
↓ 7 callersFunctiontestK8sCost
testK8sCost asserts the estimated cost at the latest cost model revision and at ModelVersion0, alongside the runtime cost. Kubernetes pins its publis
cel/cost_k8s_test.go:873
↓ 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:422
↓ 6 callersMethodAddExcludedMacros
AddExcludedMacros deny-lists one or more macros by function name.
common/env/env.go:675
↓ 6 callersMethodAddExtension
AddExtension adds an extension record into the SourceInfo.
common/ast/ast.go:463
↓ 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:669
↓ 6 callersMethodAddSerializableOption
AddSerializableOption adds an option to the basic environment that is flagged as YAML compatible.
repl/evaluator.go:680
↓ 6 callersMethodAsPartialActivation
AsPartialActivation converts the current activation to a PartialActivation
interpreter/activation.go:227
↓ 6 callersFunctionAstToParsedExpr
AstToParsedExpr converts an Ast to an protobuf ParsedExpr value.
cel/io.go:114
↓ 6 callersMethodBuffer
(e ast.Expr)
common/debug/debug.go:83
↓ 6 callersFunctionCatalog
Catalog configures the checker with a symbol catalog supplier used for error suggestions and refinement.
checker/options.go:36
↓ 6 callersFunctionCheckedExprToAst
CheckedExprToAst converts a checked expression proto message to an Ast.
cel/io.go:37
↓ 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 callersFunctionCopy
Copy creates a deep copy of the Expr and SourceInfo values in the input AST. Copies of the Expr value are generated using an internal default ExprFac
common/ast/ast.go:133
↓ 6 callersMethodCopyExpr
CopyExpr creates a deep copy of the input Expr value.
common/ast/factory.go:22
↓ 6 callersFunctionCostEstimatorOptions
CostEstimatorOptions configure type-check time options for estimating expression cost.
cel/options.go:871
↓ 6 callersFunctionCostLimit
CostLimit enables cost tracking and sets configures program evaluation to exit early with a "runtime cost limit exceeded" error if the runtime cost ex
cel/options.go:973
↓ 6 callersFunctionCustomDecoratorV2
CustomDecoratorV2 configures a custom V2 interpretable decorator for the program.
interpreter/interpreter.go:180
↓ 6 callersMethodDocumentation
Documentation returns the documentation coded by the DocKind to assist with text formatting.
common/doc.go:183
↓ 6 callersFunctionEnableIdentEscapeSyntax
EnableIdentEscapeSyntax enables backtick (`) escaped field identifiers. This supports extended types of characters in identifiers, e.g. foo.`baz-bar`.
parser/options.go:149
↓ 6 callersFunctionErrorRecoveryLookaheadTokenLimit
ErrorRecoveryLookaheadTokenLimit limits the number of lexer tokens that may be considered during error recovery. Error recovery often involves lookin
parser/options.go:57
↓ 6 callersMethodEstimator
Estimator returns the runtime ActualCostEstimator, if configured.
common/cost/model.go:76
↓ 6 callersFunctionEvalStateFactory
EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.
interpreter/interpreter.go:89
↓ 6 callersFunctionExtendedValidations
ExtendedValidations collects a set of common AST validations which reduce the likelihood of runtime errors. - Validate duration and timestamp literal
cel/validator.go:216
↓ 6 callersFunctionFindFunctionActivation
FindFunctionActivation returns the activation which supplies the late-bound function implementations for a hierarchy, or nil when the hierarchy suppli
interpreter/activation.go:344
↓ 6 callersFunctionFormat
Format formats the value as a string. The result is only intended for human consumption and ignores errors. Do not depend on the output being stable.
common/types/format.go:17
↓ 6 callersMethodFunctionTrackerWithOptions
FunctionTrackerWithOptions returns a FunctionTracker implementing the cost model, configured by the supplied options. ModelVersion applies to trackin
common/cost/model.go:1268
↓ 6 callersMethodFunctions
Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.
cel/env.go:731
↓ 6 callersMethodGetArgs
GetArgs returns the args token list.
repl/parser/commands_parser.go:2268
↓ 6 callersMethodGetEntries
()
parser/gen/cel_parser.go:2998
↓ 6 callersMethodHasLibrary
HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.
cel/env.go:710
↓ 6 callersFunctionIntTarget
IntTarget creates an expression referencing the integer value of the receiver/target object, with the same runtime and estimation rules as IntArg.
common/cost/model.go:561
↓ 6 callersMethodIsUnknown
IsUnknown returns true if the size estimate represents an unknown size (0 to math.MaxUint64 with no key or element sizes).
common/cost/cost.go:312
↓ 6 callersFunctionKeyTotal
KeyTotal creates an expression referencing the combined size of every key of a map. A value which is not a map has no keys. The operand must be Arg,
common/cost/model.go:427
↓ 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:1086
↓ 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:461
↓ 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 callersFunctionNewCostTracker
NewCostTracker creates a new CostTracker with a given estimator and a set of functional CostTrackerOption values. Deprecated: use cost.NewCostTracker
interpreter/runtimecost.go:75
↓ 6 callersFunctionNewErrWithNodeID
NewErrWithNodeID creates a new Err described by the format string and args. TODO: Audit the use of this function and standardize the error messages an
common/types/err.go:73
↓ 6 callersFunctionNewFunctionActivation
NewFunctionActivation returns an Activation which supplies implementations for late-bound functions in addition to the variables provided by the `vars
interpreter/activation.go:291
← previousnext →601–700 of 9,178, ranked by callers