Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,844 in github.com/cel-expr/cel-go
⨍
Functions
7,844
◇
Types & classes
931
↓ 7 callers
Function
assertUnshared
(t *testing.T, reg *Registry)
common/types/provider_test.go:81
↓ 7 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/solution/codelab.go:388
↓ 7 callers
Function
evalExpr
(t *testing.T, env *cel.Env, expr string, vars map[string]any)
ext/security/jwt/jwt_test.go:48
↓ 7 callers
Function
exprInternal
(factory ExprFactory, e *exprpb.Expr)
common/ast/conversion.go:125
↓ 7 callers
Function
fixedSizeEstimate
(val uint64)
ext/costs.go:94
↓ 7 callers
Method
getType
(e ast.Expr)
checker/checker.go:680
↓ 7 callers
Method
globalCallOrMacro
(exprID int64, function string, args ...ast.Expr)
parser/parser.go:953
↓ 7 callers
Function
mustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callers
Method
newExpr
(ctx any)
parser/helper.go:151
↓ 7 callers
Function
parsePolicy
(t testing.TB, name string, parseOpts []ParserOption)
policy/compiler_test.go:484
↓ 7 callers
Method
plan
(expr ast.Expr)
interpreter/planner.go:106
↓ 7 callers
Method
reportIssue
(e error)
repl/commands.go:159
↓ 7 callers
Function
sanitizeStructTypeName
(structType string)
common/types/provider.go:815
↓ 7 callers
Function
setLimit
(id limitID, limit int)
cel/options.go:986
↓ 7 callers
Function
substitute
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 callers
Function
testEvalWithCost
(t *testing.T, env *cel.Env, ast *cel.Ast, in any, wantCost uint64)
ext/sets_test.go:502
↓ 7 callers
Function
timestampOf
(t time.Time)
common/types/timestamp.go:43
↓ 7 callers
Method
verifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting_v2.go:551
↓ 7 callers
Method
verifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting.go:611
↓ 6 callers
Method
ActiveAsyncCalls
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 callers
Method
AddExcludedMacros
AddExcludedMacros deny-lists one or more macros by function name.
common/env/env.go:673
↓ 6 callers
Method
AddFeatures
AddFeatures appends one or more features to the config.
common/env/env.go:210
↓ 6 callers
Method
AddIncludedMacros
AddIncludedMacros allow-lists one or more macros by function name. Note, this option will override any excluded macros.
common/env/env.go:667
↓ 6 callers
Method
AddSerializableOption
AddSerializableOption adds an option to the basic environment that is flagged as YAML compatible.
repl/evaluator.go:680
↓ 6 callers
Method
AsCost
AsCost converts a size estimates to an equivalent cost estimate.
checker/cost.go:164
↓ 6 callers
Method
Attr
Attr returns the Attribute value.
interpreter/interpretable.go:86
↓ 6 callers
Method
Buffer
(e ast.Expr)
common/debug/debug.go:83
↓ 6 callers
Method
Children
Children returns a list of child expression nodes.
common/ast/navigable.go:37
↓ 6 callers
Method
Consume
Consume implements (antlr.CharStream).Consume.
parser/input.go:30
↓ 6 callers
Method
CopyExpr
CopyExpr creates a deep copy of the input Expr value.
common/ast/factory.go:22
↓ 6 callers
Function
CustomDecoratorV2
CustomDecoratorV2 configures a custom V2 interpretable decorator for the program.
interpreter/interpreter.go:173
↓ 6 callers
Method
Documentation
Documentation returns the documentation coded by the DocKind to assist with text formatting.
common/doc.go:183
↓ 6 callers
Function
ErrorRecoveryLimit
ErrorRecoveryLimit limits the number of attempts the parser will perform to recover from an error.
parser/options.go:66
↓ 6 callers
Function
EvalStateFactory
EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.
interpreter/interpreter.go:85
↓ 6 callers
Function
ExhaustiveEval
ExhaustiveEval replaces operations that short-circuit with versions that evaluate expressions and couples this behavior with the TrackState() decorato
interpreter/interpreter.go:185
↓ 6 callers
Method
Extensions
Extensions returns the set of extensions present in the source.
common/ast/ast.go:441
↓ 6 callers
Method
HasIterVar2
HasIterVar2 returns true if the second iteration variable is non-empty.
common/ast/expr.go:286
↓ 6 callers
Method
HasLateBinding
HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
common/decls/decls.go:326
↓ 6 callers
Function
JSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:121
↓ 6 callers
Method
Kind
Kind indicates general category of the type.
common/types/types.go:284
↓ 6 callers
Function
LateFunctionBinding
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 callers
Function
MaxRecursionDepth
MaxRecursionDepth limits the maximum depth the parser will attempt to parse the expression before giving up.
parser/options.go:38
↓ 6 callers
Function
MaybeNoSuchOverload
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 callers
Method
Member
()
parser/gen/cel_parser.go:2535
↓ 6 callers
Method
Name
Name returns the function name in human-readable terms, e.g. 'contains' of 'math.least'
common/decls/decls.go:115
↓ 6 callers
Method
NativeToValue
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 callers
Function
NewCheckedAST
NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
common/ast/ast.go:121
↓ 6 callers
Function
NewIdentReference
NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
common/ast/ast.go:483
↓ 6 callers
Method
NewMap
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 callers
Method
NewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
parser/macro.go:212
↓ 6 callers
Method
NewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
cel/macro.go:88
↓ 6 callers
Method
NewPresenceTest
NewPresenceTest creates a Select TestOnly Expr value for modelling has() semantics.
parser/macro.go:285
↓ 6 callers
Method
ObserveExec
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 callers
Method
OverloadID
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 callers
Method
Parent
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 callers
Method
Parse
Parse parses the expression represented by source and returns the result.
parser/parser.go:98
↓ 6 callers
Function
ParseStructField
ParseStructField configures how to parse Go struct fields. It can be used to customize struct field parsing.
common/types/native.go:83
↓ 6 callers
Function
ParseType
ParseType parses a human readable type string into the protobuf representation.
repl/typefmt.go:215
↓ 6 callers
Function
Protos
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 callers
Method
QualifyIfPresent
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 callers
Method
RecoverInline
(recognizer antlr.Parser)
parser/parser.go:300
↓ 6 callers
Function
SerializeTypeDesc
SerializeTypeDesc converts a CEL native *types.Type to a serializable TypeDesc.
common/env/env.go:969
↓ 6 callers
Method
SetContainer
SetContainer configures the container name for this configuration.
common/env/env.go:110
↓ 6 callers
Method
SetDisabled
SetDisabled disables or enables the library.
common/env/env.go:653
↓ 6 callers
Function
SingletonFunctionBinding
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 callers
Function
SingletonUnaryBinding
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 callers
Method
Source
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 callers
Method
Subtract
Subtract returns the result of subtracting the input from the current value.
common/types/traits/math.go:61
↓ 6 callers
Function
TestExpression
TestExpression returns a TestRunnerOption which configures a policy file, expression file, or raw expression for testing
tools/celtest/test_runner.go:436
↓ 6 callers
Function
ToAdornedDebugString
ToAdornedDebugString gives the adorned string representation of the Expr.
common/debug/debug.go:61
↓ 6 callers
Function
TwoVarComprehensions
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 callers
Function
Unparse
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 callers
Method
Unwrap
Unwrap returns the Activation which omits local state.
interpreter/interpreter.go:112
↓ 6 callers
Function
ValidateComprehensionNestingLimit
ValidateComprehensionNestingLimit ensures that comprehension nesting does not exceed the specified limit. This validator can be useful for preventing
cel/validator.go:247
↓ 6 callers
Method
WithJSONFieldNames
WithJSONFieldNames configures the registry with the JSON field name support enabled or disabled.
common/types/provider.go:257
↓ 6 callers
Function
awaitEval
awaitEval runs ConcurrentEval and returns the result or fails on timeout.
cel/program_async_test.go:919
↓ 6 callers
Function
buildZeroArgAsync
buildZeroArgAsync builds a zero-arity async overload from an option and returns its AsyncOp.
cel/async/async_test.go:43
↓ 6 callers
Method
childContext
()
common/types/size_calc.go:111
↓ 6 callers
Method
computeSize
(e ast.Expr)
checker/cost.go:913
↓ 6 callers
Function
estimateAllocatingListCall
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 callers
Function
evalExpr
(t *testing.T, env *cel.Env, expr string, vars map[string]any)
ext/security/hmac/hmac_test.go:34
↓ 6 callers
Function
extractIterVars
(mef cel.MacroExprFactory, arg0, arg1 ast.Expr)
ext/comprehensions.go:401
↓ 6 callers
Function
file_test_proto3pb_test_all_types_proto_rawDescGZIP
()
test/proto3pb/test_all_types.pb.go:1118
↓ 6 callers
Method
getOrCreate
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 callers
Method
getType
(e ast.Expr)
checker/cost.go:852
↓ 6 callers
Function
inRange
inRange reports whether s is all decimal digits and its value lies in [lo, hi].
common/types/timestamp.go:118
↓ 6 callers
Method
isAssignable
(t1, t2 *types.Type)
checker/checker.go:640
↓ 6 callers
Function
isDyn
isDyn returns true if the input t is either type DYN or a well-known ANY message.
checker/types.go:22
↓ 6 callers
Method
maybeCreateLiteral
(id int64, val ref.Val)
interpreter/prune.go:89
↓ 6 callers
Method
maybeValue
(id int64)
interpreter/prune.go:473
↓ 6 callers
Method
newLiteral
(ctx any, value ref.Val)
parser/helper.go:52
↓ 6 callers
Function
newNonOptionalCompositionStep
newNonOptionalCompositionStep returns an output step whose output is not optional.
policy/composer.go:492
↓ 6 callers
Function
newTestEnv
(t testing.TB, cont *containers.Container, reg *types.Registry)
interpreter/interpreter_test.go:2627
↓ 6 callers
Function
newTestStructTypeRegistry
(t *testing.T)
common/types/provider_test.go:1692
↓ 6 callers
Function
program
(t testing.TB, tst *testCase, opts ...PlannerOption)
interpreter/interpreter_test.go:2490
↓ 6 callers
Method
setup
(t testing.TB, env *cel.Env, ast *cel.Ast)
policy/compiler_test.go:326
↓ 6 callers
Method
skipWhitespace
()
common/env/io.go:236
↓ 6 callers
Function
testCompreEnv
(t *testing.T, opts ...cel.EnvOption)
ext/comprehensions_test.go:795
↓ 6 callers
Function
testMustParse
(t testing.TB, data any)
interpreter/interpreter_test.go:2605
↓ 6 callers
Method
typeMismatch
(id int64, l common.Location, expected, actual *types.Type)
checker/errors.go:73
← previous
next →
501–600 of 7,844, ranked by callers