Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
9,178 in github.com/cel-expr/cel-go
⨍
Functions
9,178
◇
Types & classes
1,189
↓ 2 callers
Method
Type
()
common/types/object.go:164
↓ 2 callers
Method
TypeName
TypeName implements the ref.Type interface method.
common/types/native.go:288
↓ 2 callers
Method
TypeProvider
TypeProvider returns the `ref.TypeProvider` configured for the environment. Deprecated: use CELTypeProvider()
cel/env.go:866
↓ 2 callers
Function
TypeVariable
TypeVariable creates a new type identifier for use within a types.Provider
common/decls/decls.go:1190
↓ 2 callers
Function
Types
Types returns the set of standard library types for CEL.
common/stdlib/standard.go:914
↓ 2 callers
Function
UnparseExprType
UnparseExprType pretty-prints a type (proto representation) for the REPL.
repl/typefmt.go:32
↓ 2 callers
Function
UnsupportedRefValConversionErr
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 callers
Function
ValidateTimes
ValidateTimes enables automatic time validation (iat, nbf, exp) during token parsing with an optional clock leeway.
ext/security/jwt/jwt.go:71
↓ 2 callers
Method
Validators
Validators returns a shallow copy of the set of ASTValidators configured on the environment.
cel/env.go:756
↓ 2 callers
Method
Value
Value returns the constant value of the instruction.
interpreter/interpretable.go:78
↓ 2 callers
Method
Value
Value implements the ref.Val interface method.
common/types/native.go:293
↓ 2 callers
Function
VariableDeclToExprDecl
VariableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.
common/decls/decls.go:1195
↓ 2 callers
Function
VariableWithDoc
VariableWithDoc creates an instance of a variable declaration with a variable name, type, and doc string.
cel/decls.go:149
↓ 2 callers
Method
Variables
Variables returns a shallow copy of the variables associated with the environment.
cel/env.go:736
↓ 2 callers
Function
WrapOnOperators
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 callers
Method
adapterFrom
(obj any)
common/types/native.go:933
↓ 2 callers
Method
addLetFn
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:493
↓ 2 callers
Method
addLetVar
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:441
↓ 2 callers
Method
addMacroCall
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 callers
Method
addModelSet
addModelSet binds the functions the models of cm compile to under the given rules.
common/cost/version.go:133
↓ 2 callers
Method
addOption
(opt Optioner, isYAML bool)
repl/evaluator.go:509
↓ 2 callers
Function
addTimeDurationChecked
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 callers
Function
aliasAs
(kind, qualifiedName, alias string, requireQualified bool)
common/containers/container.go:249
↓ 2 callers
Method
applyContextOptions
(env *cel.Env)
repl/evaluator.go:369
↓ 2 callers
Function
assertFuncEquals
(t *testing.T, got, want *decls.FunctionDecl)
common/env/env_test.go:1600
↓ 2 callers
Function
astValidatorFactories
()
cel/validator.go:53
↓ 2 callers
Method
attempt
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 callers
Function
attributeChainRoot
attributeChainRoot returns the expression an attribute chain starts from, past the selections and index operations which extend it.
common/cost/estimator.go:433
↓ 2 callers
Function
awaitResult
awaitResult re-evaluates ComputeResult until it returns a non-Unknown value or the deadline fires.
interpreter/async_test.go:66
↓ 2 callers
Function
binaryFormatError
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting.go:667
↓ 2 callers
Function
binaryFormatErrorV2
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting_v2.go:607
↓ 2 callers
Method
buildEstimator
(strategy SizingStrategy, version uint32)
common/cost/model.go:1216
↓ 2 callers
Method
buildTracker
(strategy SizingStrategy, version uint32)
common/cost/model.go:1273
↓ 2 callers
Method
calc
(_p int)
parser/gen/cel_parser.go:1613
↓ 2 callers
Method
calc
(_p int)
repl/parser/commands_parser.go:5571
↓ 2 callers
Function
captureCostTracker
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 callers
Method
checkAttempts
(recognizer antlr.Parser)
parser/antlr_parser.go:200
↓ 2 callers
Function
checkInvalidArgs
(meh cel.MacroExprFactory, funcName string, args []ast.Expr)
ext/math.go:900
↓ 2 callers
Function
checkLoadedASTDepth
checkLoadedASTDepth guards ASTs that enter through the proto conversion helpers (ParsedExprToAst / CheckedExprToAst) against nesting deeper than the p
cel/io.go:106
↓ 2 callers
Function
checkOptionArgs
(idx int, args []string)
repl/evaluator.go:1172
↓ 2 callers
Method
checkSelectField
(e, operand ast.Expr, field string, optional bool)
checker/checker.go:219
↓ 2 callers
Method
checkUndeclaredFunction
(env *Env, id int64, l common.Location, qualifiedPrefix, fnName string)
checker/errors.go:122
↓ 2 callers
Method
checkUndeclaredIdent
(env *Env, id int64, l common.Location, qualifiers ...string)
checker/errors.go:115
↓ 2 callers
Method
checkUndeclaredReference
(env *Env, id int64, l common.Location, qualifiedName string)
checker/errors.go:130
↓ 2 callers
Function
clauseForType
(argType ref.Type)
ext/formatting.go:39
↓ 2 callers
Function
cloneSizeEstimate
cloneSizeEstimate makes a copy of a SizeEstimate to prevent in-place mutation of cached/shared estimates.
common/cost/default_strategy.go:238
↓ 2 callers
Method
cloneWithDecls
cloneWithDecls creates a copy of the Env with a new declaration scope stack.
checker/env.go:343
↓ 2 callers
Function
collectEnumValues
collectEnumValues accumulates the enum values within an enum declaration.
common/types/pb/file.go:187
↓ 2 callers
Function
collectExtensions
(extensions protoreflect.ExtensionDescriptors, msgExtensionMap map[string][]protoreflect.ExtensionDescriptor)
common/types/pb/file.go:199
↓ 2 callers
Function
collectParamNames
(paramNames map[string]struct{}, arg *types.Type)
common/decls/decls.go:1256
↓ 2 callers
Function
collectionContainsNeedle
(needle, haystack ast.Expr)
cel/folding.go:691
↓ 2 callers
Method
combine
combine assembles two output expressions into a single output step.
policy/composer.go:474
↓ 2 callers
Function
compareIntDouble
(i Int, d Double)
common/types/compare.go:33
↓ 2 callers
Function
compareUintDouble
(u Uint, d Double)
common/types/compare.go:47
↓ 2 callers
Function
compareUintInt
(u Uint, i Int)
common/types/compare.go:65
↓ 2 callers
Function
compareUnknownIDs
(expectedUnknownIDs, actualUnknownIDs []int64)
tools/celtest/test_runner.go:813
↓ 2 callers
Function
compile
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 callers
Method
compile
(t testing.TB, envOpts []cel.EnvOption, compilerOpts []CompilerOption)
policy/compiler_test.go:294
↓ 2 callers
Method
compileRule
(r *Rule, p *Policy, ruleEnv *cel.Env, iss *cel.Issues, hasAggregateAncestor bool)
policy/compiler.go:327
↓ 2 callers
Method
computeUnknownVars
computeUnknownVars determines a set of missing variables based on the input activation and the environment's configured declaration set.
cel/env.go:1157
↓ 2 callers
Method
configure
configure applies a series of EnvOptions to the current environment.
cel/env.go:965
↓ 2 callers
Method
configuredExpressionSizeLimit
configuredExpressionSizeLimit returns the effective expression size code point limit. A zero value means "use the parser default".
cel/env.go:539
↓ 2 callers
Method
consumeIgnoreCase
(c rune)
parser/lexer.go:296
↓ 2 callers
Method
consumeStringLiteral
(start int32, quote rune, isBytes, isRaw bool)
parser/lexer.go:424
↓ 2 callers
Method
consumeUntilAfter
(c rune, isRaw bool)
parser/lexer.go:367
↓ 2 callers
Function
containerSize
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 callers
Function
containerSizeFor
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 callers
Function
convertListToNative
(l traits.Lister, val any, typeDesc reflect.Type)
common/types/list.go:283
↓ 2 callers
Function
convertMapToNative
(m traits.Mapper, val any, typeDesc reflect.Type)
common/types/map.go:160
↓ 2 callers
Function
convertProto
(src, dst proto.Message)
common/types/types.go:842
↓ 2 callers
Function
costGoldenV0
(t *testing.T)
ext/cost_golden_test.go:86
↓ 2 callers
Function
countBounds
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 callers
Method
create
()
interpreter/async.go:421
↓ 2 callers
Function
customPolicyParserOption
()
tools/celtest/test_runner_test.go:124
↓ 2 callers
Function
decimalFormatError
(id int64, badType string)
ext/formatting.go:671
↓ 2 callers
Function
decimalFormatErrorV2
(id int64, badType string)
ext/formatting_v2.go:611
↓ 2 callers
Method
decorate
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 callers
Function
defaultModelRules
()
common/cost/version.go:42
↓ 2 callers
Function
doubleToUint64Checked
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 callers
Function
eachElement
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 callers
Function
eachKey
eachKey calls fn with each key of a map. Values which are not maps have no keys.
common/cost/model.go:175
↓ 2 callers
Function
eachValueOf
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 callers
Function
embeddedAncestors
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 callers
Method
ensureMutableFunctions
()
cel/env.go:667
↓ 2 callers
Method
enterScope
enterScope creates a new Env instance with a new innermost declaration scope.
checker/env.go:357
↓ 2 callers
Function
envOptionToConfig
(t *testing.T, name string, opts ...cel.EnvOption)
tools/compiler/compiler_test.go:359
↓ 2 callers
Function
envProtoToConfig
(pbEnv *configpb.Environment)
tools/compiler/compiler.go:270
↓ 2 callers
Function
equalMessage
(mx, my protoreflect.Message)
common/types/pb/equal.go:54
↓ 2 callers
Function
estimateAggregateListSize
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 callers
Function
estimateAggregateMapSize
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 callers
Function
estimateDefaultListSize
estimateDefaultListSize calculates the size and element size of a list AST node.
common/cost/default_strategy.go:67
↓ 2 callers
Function
estimateDefaultMapSize
estimateDefaultMapSize calculates the size, key size, and value size of a map AST node.
common/cost/default_strategy.go:75
↓ 2 callers
Function
estimateEncodeSize
(sz cost.SizeEstimate)
ext/encoders.go:431
↓ 2 callers
Function
estimateFlattenByContainerSizing
estimateFlattenByContainerSizing estimates flatten when container sizes are not lengths. flatten(depth) cannot be described by an OverloadModel, whos
ext/lists.go:837
↓ 2 callers
Function
estimateLegacySelfCompareCost
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 callers
Function
estimateListExpr
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 callers
Function
estimateListFlatten
estimateListFlatten estimates l.flatten() and l.flatten(depth) under cost model version 0.
ext/lists.go:794
↓ 2 callers
Function
estimateMapExpr
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 callers
Function
eval
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 callers
Method
eval
(t testing.TB, expr string)
policy/compiler_test.go:464
← previous
next →
1,601–1,700 of 9,178, ranked by callers