MCPcopy Create free account

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

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

↓ 2 callersMethodType
()
common/types/object.go:164
↓ 2 callersMethodTypeName
TypeName implements the ref.Type interface method.
common/types/native.go:288
↓ 2 callersMethodTypeProvider
TypeProvider returns the `ref.TypeProvider` configured for the environment. Deprecated: use CELTypeProvider()
cel/env.go:866
↓ 2 callersFunctionTypeVariable
TypeVariable creates a new type identifier for use within a types.Provider
common/decls/decls.go:1190
↓ 2 callersFunctionTypes
Types returns the set of standard library types for CEL.
common/stdlib/standard.go:914
↓ 2 callersFunctionUnparseExprType
UnparseExprType pretty-prints a type (proto representation) for the REPL.
repl/typefmt.go:32
↓ 2 callersFunctionUnsupportedRefValConversionErr
UnsupportedRefValConversionErr returns a types.NewErr instance with a no such conversion message that indicates that the native value could not be con
common/types/err.go:95
↓ 2 callersFunctionValidateTimes
ValidateTimes enables automatic time validation (iat, nbf, exp) during token parsing with an optional clock leeway.
ext/security/jwt/jwt.go:71
↓ 2 callersMethodValidators
Validators returns a shallow copy of the set of ASTValidators configured on the environment.
cel/env.go:756
↓ 2 callersMethodValue
Value returns the constant value of the instruction.
interpreter/interpretable.go:78
↓ 2 callersMethodValue
Value implements the ref.Val interface method.
common/types/native.go:293
↓ 2 callersFunctionVariableDeclToExprDecl
VariableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.
common/decls/decls.go:1195
↓ 2 callersFunctionVariableWithDoc
VariableWithDoc creates an instance of a variable declaration with a variable name, type, and doc string.
cel/decls.go:149
↓ 2 callersMethodVariables
Variables returns a shallow copy of the variables associated with the environment.
cel/env.go:736
↓ 2 callersFunctionWrapOnOperators
WrapOnOperators specifies which operators to perform word wrapping on an output expression when its string length exceeds the column limit set by Wrap
parser/unparser.go:694
↓ 2 callersMethodadapterFrom
(obj any)
common/types/native.go:933
↓ 2 callersMethodaddLetFn
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:493
↓ 2 callersMethodaddLetVar
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:441
↓ 2 callersMethodaddMacroCall
addMacroCall adds the macro the the MacroCalls map in source info. If a macro has args/subargs/target that are macros, their ID will be stored instead
parser/helper.go:268
↓ 2 callersMethodaddModelSet
addModelSet binds the functions the models of cm compile to under the given rules.
common/cost/version.go:133
↓ 2 callersMethodaddOption
(opt Optioner, isYAML bool)
repl/evaluator.go:509
↓ 2 callersFunctionaddTimeDurationChecked
addDurationChecked performs addition with overflow detection of a time.Time and time.Duration. If the operation fails due to overflow the error retur
common/types/overflow.go:196
↓ 2 callersFunctionaliasAs
(kind, qualifiedName, alias string, requireQualified bool)
common/containers/container.go:249
↓ 2 callersMethodapplyContextOptions
(env *cel.Env)
repl/evaluator.go:369
↓ 2 callersFunctionassertFuncEquals
(t *testing.T, got, want *decls.FunctionDecl)
common/env/env_test.go:1600
↓ 2 callersFunctionastValidatorFactories
()
cel/validator.go:53
↓ 2 callersMethodattempt
attempt runs f against m in place, rolling back what f added if it reports false. Attempts do not nest.
checker/mapping.go:52
↓ 2 callersFunctionattributeChainRoot
attributeChainRoot returns the expression an attribute chain starts from, past the selections and index operations which extend it.
common/cost/estimator.go:433
↓ 2 callersFunctionawaitResult
awaitResult re-evaluates ComputeResult until it returns a non-Unknown value or the deadline fires.
interpreter/async_test.go:66
↓ 2 callersFunctionbinaryFormatError
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting.go:667
↓ 2 callersFunctionbinaryFormatErrorV2
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting_v2.go:607
↓ 2 callersMethodbuildEstimator
(strategy SizingStrategy, version uint32)
common/cost/model.go:1216
↓ 2 callersMethodbuildTracker
(strategy SizingStrategy, version uint32)
common/cost/model.go:1273
↓ 2 callersMethodcalc
(_p int)
parser/gen/cel_parser.go:1613
↓ 2 callersMethodcalc
(_p int)
repl/parser/commands_parser.go:5571
↓ 2 callersFunctioncaptureCostTracker
captureCostTracker records the frame's cost tracker within the evaluation details, allocating the details when cost tracking is enabled and no details
cel/program.go:236
↓ 2 callersMethodcheckAttempts
(recognizer antlr.Parser)
parser/antlr_parser.go:200
↓ 2 callersFunctioncheckInvalidArgs
(meh cel.MacroExprFactory, funcName string, args []ast.Expr)
ext/math.go:900
↓ 2 callersFunctioncheckLoadedASTDepth
checkLoadedASTDepth guards ASTs that enter through the proto conversion helpers (ParsedExprToAst / CheckedExprToAst) against nesting deeper than the p
cel/io.go:106
↓ 2 callersFunctioncheckOptionArgs
(idx int, args []string)
repl/evaluator.go:1172
↓ 2 callersMethodcheckSelectField
(e, operand ast.Expr, field string, optional bool)
checker/checker.go:219
↓ 2 callersMethodcheckUndeclaredFunction
(env *Env, id int64, l common.Location, qualifiedPrefix, fnName string)
checker/errors.go:122
↓ 2 callersMethodcheckUndeclaredIdent
(env *Env, id int64, l common.Location, qualifiers ...string)
checker/errors.go:115
↓ 2 callersMethodcheckUndeclaredReference
(env *Env, id int64, l common.Location, qualifiedName string)
checker/errors.go:130
↓ 2 callersFunctionclauseForType
(argType ref.Type)
ext/formatting.go:39
↓ 2 callersFunctioncloneSizeEstimate
cloneSizeEstimate makes a copy of a SizeEstimate to prevent in-place mutation of cached/shared estimates.
common/cost/default_strategy.go:238
↓ 2 callersMethodcloneWithDecls
cloneWithDecls creates a copy of the Env with a new declaration scope stack.
checker/env.go:343
↓ 2 callersFunctioncollectEnumValues
collectEnumValues accumulates the enum values within an enum declaration.
common/types/pb/file.go:187
↓ 2 callersFunctioncollectExtensions
(extensions protoreflect.ExtensionDescriptors, msgExtensionMap map[string][]protoreflect.ExtensionDescriptor)
common/types/pb/file.go:199
↓ 2 callersFunctioncollectParamNames
(paramNames map[string]struct{}, arg *types.Type)
common/decls/decls.go:1256
↓ 2 callersFunctioncollectionContainsNeedle
(needle, haystack ast.Expr)
cel/folding.go:691
↓ 2 callersMethodcombine
combine assembles two output expressions into a single output step.
policy/composer.go:474
↓ 2 callersFunctioncompareIntDouble
(i Int, d Double)
common/types/compare.go:33
↓ 2 callersFunctioncompareUintDouble
(u Uint, d Double)
common/types/compare.go:47
↓ 2 callersFunctioncompareUintInt
(u Uint, i Int)
common/types/compare.go:65
↓ 2 callersFunctioncompareUnknownIDs
(expectedUnknownIDs, actualUnknownIDs []int64)
tools/celtest/test_runner.go:813
↓ 2 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/codelab.go:147
↓ 2 callersMethodcompile
(t testing.TB, envOpts []cel.EnvOption, compilerOpts []CompilerOption)
policy/compiler_test.go:294
↓ 2 callersMethodcompileRule
(r *Rule, p *Policy, ruleEnv *cel.Env, iss *cel.Issues, hasAggregateAncestor bool)
policy/compiler.go:327
↓ 2 callersMethodcomputeUnknownVars
computeUnknownVars determines a set of missing variables based on the input activation and the environment's configured declaration set.
cel/env.go:1157
↓ 2 callersMethodconfigure
configure applies a series of EnvOptions to the current environment.
cel/env.go:965
↓ 2 callersMethodconfiguredExpressionSizeLimit
configuredExpressionSizeLimit returns the effective expression size code point limit. A zero value means "use the parser default".
cel/env.go:539
↓ 2 callersMethodconsumeIgnoreCase
(c rune)
parser/lexer.go:296
↓ 2 callersMethodconsumeStringLiteral
(start int32, quote rune, isBytes, isRaw bool)
parser/lexer.go:424
↓ 2 callersMethodconsumeUntilAfter
(c rune, isRaw bool)
parser/lexer.go:367
↓ 2 callersFunctioncontainerSize
containerSize returns the size the context's sizing strategy assigns to a container of n entries, each of the given size; see containerSizeFor.
common/cost/helper.go:576
↓ 2 callersFunctioncontainerSizeFor
containerSizeFor returns the size a strategy assigns to a container of n entries, each of the given size. The default strategy sizes a container by i
common/cost/helper.go:586
↓ 2 callersFunctionconvertListToNative
(l traits.Lister, val any, typeDesc reflect.Type)
common/types/list.go:283
↓ 2 callersFunctionconvertMapToNative
(m traits.Mapper, val any, typeDesc reflect.Type)
common/types/map.go:160
↓ 2 callersFunctionconvertProto
(src, dst proto.Message)
common/types/types.go:842
↓ 2 callersFunctioncostGoldenV0
(t *testing.T)
ext/cost_golden_test.go:86
↓ 2 callersFunctioncountBounds
countBounds bounds the element count of a container from its size estimate under a strategy. It bounds comprehension iteration counts; see costCompreh
common/cost/helper.go:200
↓ 2 callersMethodcreate
()
interpreter/async.go:421
↓ 2 callersFunctioncustomPolicyParserOption
()
tools/celtest/test_runner_test.go:124
↓ 2 callersFunctiondecimalFormatError
(id int64, badType string)
ext/formatting.go:671
↓ 2 callersFunctiondecimalFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:611
↓ 2 callersMethoddecorate
decorate applies the InterpretableDecorator functions to the given Interpretable. Both the Interpretable and error generated by a Plan step are accept
interpreter/planner.go:139
↓ 2 callersFunctiondefaultModelRules
()
common/cost/version.go:42
↓ 2 callersFunctiondoubleToUint64Checked
doubleToInt64Checked converts a double to a uint64 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:312
↓ 2 callersFunctioneachElement
eachElement calls fn with each element of a list, each value of a map, or the value an optional holds. Values which are not containers have no element
common/cost/model.go:157
↓ 2 callersFunctioneachKey
eachKey calls fn with each key of a map. Values which are not maps have no keys.
common/cost/model.go:175
↓ 2 callersFunctioneachValueOf
eachValueOf calls fn with each value denoted by expr, and makes no calls if expr does not denote a value.
common/cost/model.go:149
↓ 2 callersFunctionembeddedAncestors
embeddedAncestors returns the chain of embedded struct fields through which a promoted field is reached, from outermost to innermost. The result is em
common/types/native.go:744
↓ 2 callersMethodensureMutableFunctions
()
cel/env.go:667
↓ 2 callersMethodenterScope
enterScope creates a new Env instance with a new innermost declaration scope.
checker/env.go:357
↓ 2 callersFunctionenvOptionToConfig
(t *testing.T, name string, opts ...cel.EnvOption)
tools/compiler/compiler_test.go:359
↓ 2 callersFunctionenvProtoToConfig
(pbEnv *configpb.Environment)
tools/compiler/compiler.go:270
↓ 2 callersFunctionequalMessage
(mx, my protoreflect.Message)
common/types/pb/equal.go:54
↓ 2 callersFunctionestimateAggregateListSize
estimateAggregateListSize computes list aggregate size: 1 (header) + listSize * elemSize. Calls (e.g. `+` or `? :`) already hold aggregate sub-expres
common/cost/aggregate_strategy.go:154
↓ 2 callersFunctionestimateAggregateMapSize
estimateAggregateMapSize computes map aggregate size: 1 (header) + mapSize * (keySize + valSize). Calls (e.g. `? :`) already hold aggregate sub-expre
common/cost/aggregate_strategy.go:198
↓ 2 callersFunctionestimateDefaultListSize
estimateDefaultListSize calculates the size and element size of a list AST node.
common/cost/default_strategy.go:67
↓ 2 callersFunctionestimateDefaultMapSize
estimateDefaultMapSize calculates the size, key size, and value size of a map AST node.
common/cost/default_strategy.go:75
↓ 2 callersFunctionestimateEncodeSize
(sz cost.SizeEstimate)
ext/encoders.go:431
↓ 2 callersFunctionestimateFlattenByContainerSizing
estimateFlattenByContainerSizing estimates flatten when container sizes are not lengths. flatten(depth) cannot be described by an OverloadModel, whos
ext/lists.go:837
↓ 2 callersFunctionestimateLegacySelfCompareCost
estimateLegacySelfCompareCost is the lists v3 ModelVersion0 estimate of comparing every pair of keysNode's elements at the given factor per pair. Its
ext/lists.go:1176
↓ 2 callersFunctionestimateListExpr
estimateListExpr computes the list and element size estimates for literal list expressions or container call operations (e.g. Add, Conditional).
common/cost/default_strategy.go:341
↓ 2 callersFunctionestimateListFlatten
estimateListFlatten estimates l.flatten() and l.flatten(depth) under cost model version 0.
ext/lists.go:794
↓ 2 callersFunctionestimateMapExpr
estimateMapExpr computes map, key, and value size estimates for literal map expressions or container call operations (e.g. Conditional).
common/cost/default_strategy.go:394
↓ 2 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/codelab.go:163
↓ 2 callersMethodeval
(t testing.TB, expr string)
policy/compiler_test.go:464
← previousnext →1,601–1,700 of 9,178, ranked by callers