Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,701 in github.com/cel-expr/cel-go
⨍
Functions
7,701
◇
Types & classes
905
↓ 11 callers
Method
NewQualifier
NewQualifier creates a qualifier on the target object with a given value. The 'val' may be an Attribute or any proto-supported map key type: bool, in
interpreter/attributes.go:62
↓ 11 callers
Function
NewTypeParam
NewTypeParam describe a type-param type.
common/env/env.go:783
↓ 11 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:73
↓ 11 callers
Function
OverloadCostEstimate
OverloadCostEstimate binds a FunctionCoster to a specific function overload ID. When a OverloadCostEstimate is provided, it will override the cost ca
checker/cost.go:277
↓ 11 callers
Function
OverloadCostTracker
OverloadCostTracker binds an overload ID to a runtime FunctionTracker implementation. OverloadCostTracker instances augment or override ActualCostEst
interpreter/runtimecost.go:218
↓ 11 callers
Method
Pop
Pop returns the parent frame, releasing the current frame back to the pool.
interpreter/frame.go:166
↓ 11 callers
Method
SetConfig
SetConfig sets the set of map key-value pairs associated with this validator's configuration.
common/env/env.go:718
↓ 11 callers
Method
SetContext
SetContext sets the context for the execution frame.
interpreter/frame.go:98
↓ 11 callers
Function
TypeToExprType
TypeToExprType converts a CEL-native type representation to a protobuf CEL Type representation.
common/types/types.go:602
↓ 11 callers
Function
UnaryBinding
UnaryBinding provides the implementation of a unary overload. The provided function is protected by a runtime type-guard which ensures runtime type ag
common/decls/decls.go:913
↓ 11 callers
Function
duration
(seconds, nanos int64)
common/types/duration_test.go:267
↓ 11 callers
Method
newExpr
(id int64, e exprKindCase)
common/ast/factory.go:316
↓ 11 callers
Function
newStandardInterpreter
newStandardInterpreter builds a Dispatcher and TypeProvider with support for all of the CEL builtins defined in the language definition.
interpreter/interpreter_test.go:2664
↓ 11 callers
Function
testIDGen
(seed int64)
common/ast/expr_test.go:506
↓ 10 callers
Function
Abbrevs
Abbrevs configures a set of simple names as abbreviations for fully-qualified names. An abbreviation (abbrev for short) is a simple name that expands
cel/options.go:320
↓ 10 callers
Method
Content
Content returns the source content represented as a string. Examples contents are the single file contents, textbox field, or url parameter.
common/source.go:28
↓ 10 callers
Method
ContextEval
ContextEval evaluates the program with a set of input variables and a context object in order to support cancellation and timeouts. This method must b
cel/program.go:57
↓ 10 callers
Function
CostEstimatorOptions
CostEstimatorOptions configure type-check time options for estimating expression cost.
cel/options.go:795
↓ 10 callers
Function
CostTrackerOptions
CostTrackerOptions configures a set of options for cost-tracking. Note, CostTrackerOptions is a no-op unless CostTracking is also enabled.
cel/options.go:805
↓ 10 callers
Method
FoldEntry
FoldEntry indicates the key, value pair associated with the entry. If the output is true, continue folding. Otherwise, terminate the fold.
common/types/traits/iterator.go:48
↓ 10 callers
Function
FormatCELType
FormatCELType formats a types.Type value to a string representation. The type formatting is identical to FormatCheckedType.
checker/format.go:109
↓ 10 callers
Function
FunctionBinding
FunctionBinding provides the implementation of a variadic overload. The provided function is protected by a runtime type-guard which ensures runtime t
common/decls/decls.go:949
↓ 10 callers
Method
GetOffsetRange
GetOffsetRange retrieves an OffsetRange for the given expression id if one exists.
common/ast/ast.go:360
↓ 10 callers
Method
GetOp
GetOp returns the op token.
repl/parser/commands_parser.go:4377
↓ 10 callers
Method
IsEquivalentType
IsEquivalentType indicates whether two types are equivalent. This check ignores type parameter type names.
common/types/types.go:279
↓ 10 callers
Function
KindMatcher
KindMatcher returns an ExprMatcher which will return true if the input NavigableExpr.Kind() matches the specified `kind`.
common/ast/navigable.go:78
↓ 10 callers
Method
Line
()
common/location.go:19
↓ 10 callers
Method
NewAccuIdent
NewAccuIdent returns an accumulator identifier for use with comprehension results.
parser/macro.go:273
↓ 10 callers
Method
NewComprehensionTwoVar
NewComprehensionTwoVar creates a new two-variable comprehension instruction. - iterRange represents the expression that resolves to a list or map whe
parser/macro.go:260
↓ 10 callers
Function
NewEmptyRegistry
NewEmptyRegistry returns a registry which is completely unconfigured.
common/types/provider.go:187
↓ 10 callers
Function
NewNativeType
NewNativeType constructs a NativeType instance for a Go struct reflect.Type.
common/types/native.go:46
↓ 10 callers
Method
NewStructField
NewStructField creates a StructField with a given field name, value, and a flag indicating whether the field is optionally set.
common/ast/factory.go:76
↓ 10 callers
Function
NewVariable
NewVariable returns a serializable variable from a name and type definition
common/env/env.go:244
↓ 10 callers
Function
Optimize
Optimize will pre-compute operations such as list and map construction and optimize call arguments to set membership tests. The set of optimizations w
interpreter/interpreter.go:201
↓ 10 callers
Method
PartialVars
PartialVars returns a PartialActivation where all variables not in the input variable set, but which have been configured in the environment, are mark
cel/env.go:830
↓ 10 callers
Function
PopulateMacroCalls
PopulateMacroCalls ensures that the original call signatures replaced by expanded macros are preserved in the `SourceInfo` of parse result.
parser/options.go:130
↓ 10 callers
Method
Push
Push pushes the given activation onto the activation stack and returns the new frame. This operation is internal to the interpreter and is used to ha
interpreter/frame.go:157
↓ 10 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 the `ref.Type`
common/types/provider.go:496
↓ 10 callers
Method
SetCompletions
SetCompletions configures a channel to receive callIDs when asynchronous evaluations finish.
interpreter/frame.go:287
↓ 10 callers
Method
assertYAMLType
(id int64, node *yaml.Node, nodeTypes ...yamlNodeType)
policy/parser.go:890
↓ 10 callers
Method
check
(e ast.Expr)
checker/checker.go:82
↓ 10 callers
Function
inTimeZone
(ts, tz ref.Val)
common/stdlib/standard.go:1044
↓ 10 callers
Function
interpret
(t testing.TB, env *Env, expr string, vars any)
cel/cel_test.go:4410
↓ 10 callers
Method
setType
(e ast.Expr, t *types.Type)
checker/checker.go:672
↓ 10 callers
Function
timeZone
(tz ref.Val, visitor timestampVisitor)
common/types/timestamp.go:355
↓ 9 callers
Method
Add
Add adds the costs and returns the sum. If add would result in an uint64 overflow for the min or max, the value is set to math.MaxUint64.
checker/cost.go:185
↓ 9 callers
Method
AddLetFn
AddLetFn adds a let function to the evaluation context.
repl/evaluator.go:626
↓ 9 callers
Method
AddVariables
AddVariables adds one or more variables to the config.
common/env/env.go:132
↓ 9 callers
Function
AttributePattern
AttributePattern returns an AttributePattern that matches a top-level variable. The pattern is mutable, and its methods support the specification of o
cel/program.go:130
↓ 9 callers
Method
CollectMetadata
CollectMetadata records the source position information of a given YAML node, and returns the id associated with the source metadata which is returned
policy/parser.go:392
↓ 9 callers
Method
DispatchPendingAsyncCalls
DispatchPendingAsyncCalls launches pending asynchronous calls for the specified required call IDs.
interpreter/frame.go:253
↓ 9 callers
Function
EnvironmentFile
EnvironmentFile returns an EnvOption which loads a serialized CEL environment from a file. The file must be in one of the following formats: - Textpro
tools/compiler/compiler.go:224
↓ 9 callers
Method
EstimateCost
EstimateCost estimates the cost of a type checked CEL expression using the length estimates of input data and extension functions provided by estimato
cel/env.go:884
↓ 9 callers
Method
FindStructFieldNames
FindStructFieldNames returns the field names associated with the type, if the type is found.
common/types/provider.go:61
↓ 9 callers
Method
HasBinding
HasBinding indicates whether the overload already has a definition.
common/decls/decls.go:796
↓ 9 callers
Method
Is
Is implements errors.Is.
common/types/err.go:160
↓ 9 callers
Method
MacroCalls
MacroCalls returns a map of expression id to ast.Expr value where the id represents the expression node where the macro was inserted into the AST, and
common/ast/ast.go:318
↓ 9 callers
Function
MergeUnknowns
MergeUnknowns combines two unknown values into a new unknown value.
common/types/unknown.go:291
↓ 9 callers
Method
NewAST
NewAST creates an AST from the current expression using the tracked source info which is modified and managed by the OptimizerContext.
cel/optimizer.go:273
↓ 9 callers
Function
NewContextVariable
NewContextVariable returns a serializable context variable with a specific type name.
common/env/env.go:317
↓ 9 callers
Function
NewExprVisitor
NewExprVisitor creates a visitor which only visits expression nodes.
common/ast/navigable.go:167
↓ 9 callers
Function
NewFunction
NewFunction creates a serializable function and overload set.
common/env/env.go:341
↓ 9 callers
Function
NewImport
NewImport returns a serializable import value from the qualified type name.
common/env/env.go:222
↓ 9 callers
Method
NewList
NewList creates a CreateList instruction where the list is comprised of the optional set of elements provided as arguments.
cel/macro.go:81
↓ 9 callers
Function
NewParser
NewParser creates a new Parser object with a set of functional options.
policy/parser.go:514
↓ 9 callers
Method
NewString
NewString creates a new ValueString from the YAML node.
policy/parser.go:407
↓ 9 callers
Function
ParseStructTags
ParseStructTags configures if native types field names should be overridable by CEL struct tags. This is equivalent to ParseStructTag("cel").
common/types/native.go:70
↓ 9 callers
Method
QualString
QualString adds a string qualifier pattern to the AttributePattern. The string may be a valid identifier, or string map key including empty string.
interpreter/attribute_patterns.go:63
↓ 9 callers
Method
Receive
Receive accepts a function name, overload id, and arguments and returns a value.
common/types/traits/receiver.go:23
↓ 9 callers
Method
RegisterDescriptor
RegisterDescriptor registers the contents of a protocol buffer `FileDescriptor`.
common/types/ref/provider.go:70
↓ 9 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
common/decls/decls.go:497
↓ 9 callers
Method
SourceInfo
SourceInfo returns the policy file metadata about expression positions.
policy/parser.go:65
↓ 9 callers
Function
TypeDescs
TypeDescs adds type declarations from any protoreflect.FileDescriptor, protoregistry.Files, google.protobuf.FileDescriptorProto or google.protobuf.Fil
cel/options.go:385
↓ 9 callers
Method
TypeName
TypeName returns the type-erased fully qualified runtime type name. TypeName implements the ref.Type interface method.
common/types/types.go:372
↓ 9 callers
Method
append
(s string)
common/debug/debug.go:276
↓ 9 callers
Method
copy
()
repl/evaluator.go:400
↓ 9 callers
Method
cost
(e ast.Expr)
checker/cost.go:464
↓ 9 callers
Function
features
features sets the given feature flags. See list of Feature constants above.
cel/options.go:978
↓ 9 callers
Function
isTypeTag
(node *yaml.Node, wantTag yamlNodeType)
policy/yaml.go:96
↓ 9 callers
Function
newTestFrame
newTestFrame creates an ExecutionFrame with an evaluation context attached.
interpreter/async_test.go:53
↓ 9 callers
Function
nilTestExpr
(t testing.TB)
common/ast/expr_test.go:495
↓ 9 callers
Function
testCheckCost
(t *testing.T, env *cel.Env, ast *cel.Ast, hints map[string]uint64, wantEst checker.CostEstimate)
ext/sets_test.go:488
↓ 9 callers
Function
updateContextPlans
Attempt to update context in place after an update. This is done eagerly to help avoid introducing an invalid 'let' expression. The planned expression
repl/evaluator.go:550
↓ 8 callers
Method
AddValidators
AddValidators appends one or more validators to the config.
common/env/env.go:204
↓ 8 callers
Function
BinaryBinding
BinaryBinding provides the implementation of a binary overload. The provided function is protected by a runtime type-guard which ensures runtime type
common/decls/decls.go:931
↓ 8 callers
Method
Column
1-based line number within source.
common/location.go:20
↓ 8 callers
Method
ComputeResult
ComputeResult tracks and computes the result of the given asynchronous function. The first invocation for a given (node id, args) tuple registers the
interpreter/frame.go:240
↓ 8 callers
Method
CreateEnv
CreateEnv creates a singleton CEL environment with the configured environment options.
tools/compiler/compiler.go:95
↓ 8 callers
Function
CrossTypeNumericComparisons
CrossTypeNumericComparisons toggles type-checker support for numeric comparisons across type See https://github.com/google/cel-spec/wiki/proposal-210
checker/options.go:29
↓ 8 callers
Function
EagerlyValidateDeclarations
EagerlyValidateDeclarations ensures that any collisions between configured declarations are caught at the time of the `NewEnv` call. Eagerly validati
cel/options.go:228
↓ 8 callers
Method
EnumValue
EnumValue returns the numeric value of the given enum value name.
common/types/provider.go:45
↓ 8 callers
Function
FixedSizeEstimate
FixedSizeEstimate returns a size estimate with a fixed min and max range.
checker/cost.go:110
↓ 8 callers
Function
FromConfig
FromConfig produces and applies a set of EnvOption values derived from an env.Config object. For configuration elements which refer to features outsi
cel/options.go:548
↓ 8 callers
Function
FunctionDocs
FunctionDocs configures documentation from a list of strings separated by newlines.
common/decls/decls.go:463
↓ 8 callers
Function
InferFileFormat
InferFileFormat infers the file format from the file path.
tools/compiler/compiler.go:201
↓ 8 callers
Function
InitEmptyLiteralContext
(p *LiteralContext)
parser/gen/cel_parser.go:5499
↓ 8 callers
Function
InitEmptyLiteralContext
(p *LiteralContext)
repl/parser/commands_parser.go:9457
↓ 8 callers
Function
JSONFieldNames
JSONFieldNames configures the Db to support proto field accesses by their JSON names.
common/types/pb/pb.go:91
↓ 8 callers
Method
JSONFieldNames
JSONFieldNames returns whether json field names are enabled in this registry.
common/types/provider.go:251
↓ 8 callers
Method
Kind
()
common/ast/expr.go:329
← previous
next →
301–400 of 7,701, ranked by callers