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
↓ 7 callers
Method
IsNonStrict
IsNonStrict returns whether the overload accepts errors and unknown values as arguments.
common/decls/decls.go:733
↓ 7 callers
Method
IsOptional
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 callers
Function
JSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:123
↓ 7 callers
Method
JSONName
JSONName returns the JSON name of the field, if present.
common/types/pb/type.go:385
↓ 7 callers
Method
LT
LT mimics (*antlr.InputStream).LT.
parser/input.go:53
↓ 7 callers
Method
Lex
Lex scans and returns the next token from the source.
parser/lexer.go:545
↓ 7 callers
Method
MacroCalls
MacroCalls returns the map of macro calls currently in the context.
cel/optimizer.go:317
↓ 7 callers
Function
MapSizeEstimate
MapSizeEstimate returns a SizeEstimate for a map with the given map size, key size, and value size.
common/cost/cost.go:216
↓ 7 callers
Function
MemoryTracking
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 callers
Method
Negate
Negate returns the complement of the current value.
common/types/traits/math.go:54
↓ 7 callers
Function
NewExtensionVersion
NewExtensionVersion creates a new extension version with a major, minor version.
common/ast/ast.go:564
↓ 7 callers
Function
NewFeature
NewFeature creates a new feature flag with a boolean enablement flag.
common/env/env.go:735
↓ 7 callers
Function
NewFunctionReference
NewFunctionReference creates a ReferenceInfo instance for a set of function overloads.
common/ast/ast.go:495
↓ 7 callers
Function
NewMemberOverload
NewMemberOverload returns a new serializable representation of a member (receiver) overload.
common/env/env.go:402
↓ 7 callers
Function
NewOverload
NewOverload returns a new serializable representation of a global overload.
common/env/env.go:397
↓ 7 callers
Method
NewValue
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 callers
Method
OffsetLocation
OffsetLocation returns the Location of the expression identifier.
parser/macro.go:291
↓ 7 callers
Function
OverloadExamples
OverloadExamples configures example expressions for the overload.
common/decls/decls.go:989
↓ 7 callers
Method
PeakMemory
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 callers
Method
PlanProgram
PlanProgram generates an evaluable instance of the AST in the go-native representation within the environment (Env).
cel/env.go:800
↓ 7 callers
Method
ProtoReflect
()
test/proto3pb/test_all_types.pb.go:216
↓ 7 callers
Function
ProtoToExpr
ProtoToExpr converts a protobuf Expr value to an ast.Expr value.
common/ast/conversion.go:108
↓ 7 callers
Method
RangeMap
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 callers
Method
Receive
Receive implements traits.Receiver.Receive.
common/types/timestamp.go:214
↓ 7 callers
Method
RegisterType
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 callers
Method
ResultType
ResultType indicates the output type from calling the function.
common/decls/decls.go:766
↓ 7 callers
Method
SetContainer
SetContainer configures the container name for this configuration.
common/env/env.go:110
↓ 7 callers
Method
SetContextVariable
SetContextVariable configures the ContextVariable for this configuration.
common/env/env.go:138
↓ 7 callers
Method
SetMacroCall
SetMacroCall sets the macro call metadata for the given macro id within the tracked source info metadata.
cel/optimizer.go:312
↓ 7 callers
Method
SetStdLib
SetStdLib configures the LibrarySubset for the standard library.
common/env/env.go:186
↓ 7 callers
Function
SizeCalculatorMaxTraversal
SizeCalculatorMaxTraversal sets the maximum object traversal limit before saturating to math.MaxUint32.
common/types/size_calc.go:49
↓ 7 callers
Function
StdLibSubset
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 callers
Function
StringSource
StringSource converts a string and location description to a model.Source.
policy/source.go:27
↓ 7 callers
Method
ToConfig
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 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:45
↓ 7 callers
Function
adaptToProto
(e ast.Expr)
cel/macro.go:566
↓ 7 callers
Function
assertUnshared
(t *testing.T, reg *Registry)
common/types/provider_test.go:82
↓ 7 callers
Function
compile
(t testing.TB, env *Env, expr string)
cel/cel_test.go:5212
↓ 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
costBoundsEnv
costBoundsEnv builds an environment declaring the shared variables plus the given libraries.
common/cost/cost_bounds_test.go:242
↓ 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
Method
expect
(kind tokenKind, msg string)
parser/pratt_parser.go:269
↓ 7 callers
Function
exprInternal
(factory ExprFactory, e *exprpb.Expr)
common/ast/conversion.go:125
↓ 7 callers
Method
getType
(e ast.Expr)
checker/checker.go:676
↓ 7 callers
Method
globalCallOrMacro
(exprID int64, function string, args ...ast.Expr)
parser/antlr_parser.go:858
↓ 7 callers
Function
mergeSizeEstimatePtr
mergeSizeEstimatePtr merges two optional SizeEstimate pointers using union.
common/cost/cost.go:295
↓ 7 callers
Function
mustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callers
Function
newModelOptions
newModelOptions resolves the supplied options over the defaults.
common/cost/version.go:196
↓ 7 callers
Function
parsePolicy
(t testing.TB, name string, parseOpts []ParserOption)
policy/compiler_test.go:489
↓ 7 callers
Method
plan
(expr ast.Expr)
interpreter/planner.go:114
↓ 7 callers
Method
reportIssue
(e error)
repl/commands.go:159
↓ 7 callers
Function
setLimit
(id limitID, limit int)
cel/options.go:1163
↓ 7 callers
Method
setup
(t testing.TB, env *cel.Env, ast *cel.Ast)
policy/compiler_test.go:326
↓ 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:315
↓ 7 callers
Function
testEvalWithCost
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 callers
Function
testK8sCost
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 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:422
↓ 6 callers
Method
AddExcludedMacros
AddExcludedMacros deny-lists one or more macros by function name.
common/env/env.go:675
↓ 6 callers
Method
AddExtension
AddExtension adds an extension record into the SourceInfo.
common/ast/ast.go:463
↓ 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:669
↓ 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
AsPartialActivation
AsPartialActivation converts the current activation to a PartialActivation
interpreter/activation.go:227
↓ 6 callers
Function
AstToParsedExpr
AstToParsedExpr converts an Ast to an protobuf ParsedExpr value.
cel/io.go:114
↓ 6 callers
Method
Buffer
(e ast.Expr)
common/debug/debug.go:83
↓ 6 callers
Function
Catalog
Catalog configures the checker with a symbol catalog supplier used for error suggestions and refinement.
checker/options.go:36
↓ 6 callers
Function
CheckedExprToAst
CheckedExprToAst converts a checked expression proto message to an Ast.
cel/io.go:37
↓ 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
Function
Copy
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 callers
Method
CopyExpr
CopyExpr creates a deep copy of the input Expr value.
common/ast/factory.go:22
↓ 6 callers
Function
CostEstimatorOptions
CostEstimatorOptions configure type-check time options for estimating expression cost.
cel/options.go:871
↓ 6 callers
Function
CostLimit
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 callers
Function
CustomDecoratorV2
CustomDecoratorV2 configures a custom V2 interpretable decorator for the program.
interpreter/interpreter.go:180
↓ 6 callers
Method
Documentation
Documentation returns the documentation coded by the DocKind to assist with text formatting.
common/doc.go:183
↓ 6 callers
Function
EnableIdentEscapeSyntax
EnableIdentEscapeSyntax enables backtick (`) escaped field identifiers. This supports extended types of characters in identifiers, e.g. foo.`baz-bar`.
parser/options.go:149
↓ 6 callers
Function
ErrorRecoveryLookaheadTokenLimit
ErrorRecoveryLookaheadTokenLimit limits the number of lexer tokens that may be considered during error recovery. Error recovery often involves lookin
parser/options.go:57
↓ 6 callers
Method
Estimator
Estimator returns the runtime ActualCostEstimator, if configured.
common/cost/model.go:76
↓ 6 callers
Function
EvalStateFactory
EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.
interpreter/interpreter.go:89
↓ 6 callers
Function
ExtendedValidations
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 callers
Function
FindFunctionActivation
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 callers
Function
Format
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 callers
Method
FunctionTrackerWithOptions
FunctionTrackerWithOptions returns a FunctionTracker implementing the cost model, configured by the supplied options. ModelVersion applies to trackin
common/cost/model.go:1268
↓ 6 callers
Method
Functions
Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.
cel/env.go:731
↓ 6 callers
Method
GetArgs
GetArgs returns the args token list.
repl/parser/commands_parser.go:2268
↓ 6 callers
Method
GetEntries
()
parser/gen/cel_parser.go:2998
↓ 6 callers
Method
HasLibrary
HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.
cel/env.go:710
↓ 6 callers
Function
IntTarget
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 callers
Method
IsUnknown
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 callers
Function
KeyTotal
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 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:1086
↓ 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:461
↓ 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
Function
NewCostTracker
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 callers
Function
NewErrWithNodeID
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 callers
Function
NewFunctionActivation
NewFunctionActivation returns an Activation which supplies implementations for late-bound functions in addition to the variables provided by the `vars
interpreter/activation.go:291
← previous
next →
601–700 of 9,178, ranked by callers