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
↓ 4 callers
Method
RegisterDescriptor
RegisterDescriptor produces a `FileDescription` from a `FileDescriptor` and registers the message and enum types into the `pb.Db`.
common/types/pb/pb.go:168
↓ 4 callers
Method
ReportErrorAtID
ReportErrorAtID logs an error during parsing which is included in the issue set returned from a failed parse.
policy/parser.go:963
↓ 4 callers
Method
Resolve
Resolve returns the value of the Attribute given the current Activation.
interpreter/interpretable.go:112
↓ 4 callers
Method
Rule
Rule returns the rule value, or nil if the rule is not set.
policy/parser.go:396
↓ 4 callers
Method
SetAsyncObserver
SetAsyncObserver sets the observer for monitoring asynchronous function calls.
interpreter/frame.go:296
↓ 4 callers
Method
SetMacroCall
SetMacroCall records a macro call at a specific location.
common/ast/ast.go:335
↓ 4 callers
Method
SetMetadata
SetMetadata updates a named metadata key with the given value.
policy/parser.go:143
↓ 4 callers
Function
Sets
Sets returns a cel.EnvOption to configure namespaced set relationship functions. There is no set type within CEL, and while one may be introduced in
ext/sets.go:79
↓ 4 callers
Function
SingletonBinaryBinding
SingletonBinaryBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is e
cel/decls.go:273
↓ 4 callers
Method
Source
Source returns the policy file contents as a CEL source object.
policy/parser.go:78
↓ 4 callers
Method
SourceID
SourceID returns the expression id associated with the output expression.
policy/compiler.go:186
↓ 4 callers
Function
SourceInfoToProto
SourceInfoToProto serializes an ast.SourceInfo value to a protobuf SourceInfo object.
common/ast/conversion.go:529
↓ 4 callers
Method
Subset
Subset returns a new function declaration which contains only the overloads with the specified IDs. If the subset function contains no overloads, then
common/decls/decls.go:234
↓ 4 callers
Function
ToAST
ToAST converts a CheckedExpr protobuf to an AST instance.
common/ast/conversion.go:78
↓ 4 callers
Function
ToProto
ToProto converts an AST to a CheckedExpr protobouf.
common/ast/conversion.go:44
↓ 4 callers
Method
TypeAdapter
TypeAdapter returns the `ref.TypeAdapter` configured for the environment. Deprecated: use CELTypeAdapter()
cel/env.go:794
↓ 4 callers
Method
Unary
Getter signatures
repl/parser/commands_parser.go:5410
↓ 4 callers
Function
UnparseType
UnparseType pretty-prints a type for the REPL.
repl/typefmt.go:41
↓ 4 callers
Function
ValToConstant
ValToConstant converts a CEL-native ref.Val to a protobuf Constant. Only simple scalar types are supported by this method.
common/ast/conversion.go:640
↓ 4 callers
Function
ValidateDurationLiterals
ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
cel/validator.go:216
↓ 4 callers
Function
ValidateTimestampLiterals
ValidateTimestampLiterals ensures that timestamp literal arguments are valid immediately after type-check.
cel/validator.go:221
↓ 4 callers
Function
VariableDecls
VariableDecls configures a set of fully defined cel.VariableDecl instances in the environment.
cel/decls.go:157
↓ 4 callers
Method
VersionNumber
VersionNumber returns the parsed version string, or an error if the version cannot be parsed.
common/env/env.go:500
↓ 4 callers
Method
Visit
(tree antlr.ParseTree)
repl/typefmt.go:65
↓ 4 callers
Function
WrapOnColumn
WrapOnColumn wraps the output expression when its string length exceeds a specified limit for operators set by WrapOnOperators function or by default,
parser/unparser.go:606
↓ 4 callers
Method
Zero
Zero returns an empty immutable protobuf message when the description is a protobuf message type.
common/types/pb/type.go:38
↓ 4 callers
Function
adaptToV2
adaptToV2 adapts a V1 Interpretable implementation to the V2 interface. This adapter is used to bridge the legacy Interpretable interface to the mode
interpreter/interpretable.go:54
↓ 4 callers
Function
addFunctionBindings
(t testing.TB, dispatcher Dispatcher)
interpreter/interpreter_test.go:2686
↓ 4 callers
Function
addInt64Checked
addInt64Checked performs addition with overflow detection of two int64 values. If the operation fails the error return value will be non-nil.
common/types/overflow.go:29
↓ 4 callers
Method
applyContext
applyContext evaluates the let expressions in the context to build an activation for the given expression. returns the environment for compiling and p
repl/evaluator.go:1010
↓ 4 callers
Function
convertProto
(src, dst proto.Message)
cel/io.go:366
↓ 4 callers
Method
create
(parent, child Activation)
interpreter/frame.go:337
↓ 4 callers
Function
doubleToInt64Lossless
(v float64)
common/types/overflow.go:410
↓ 4 callers
Method
ensureMutable
()
common/types/provider.go:241
↓ 4 callers
Method
eval
(expr string)
tools/celtest/test_runner.go:857
↓ 4 callers
Function
expectNativeToValue
(t *testing.T, in any, out ref.Val)
common/types/provider_test.go:1242
↓ 4 callers
Function
formatTo
(sb *strings.Builder, val ref.Val)
common/types/format.go:23
↓ 4 callers
Function
getElem
(t *testing.T, list traits.Indexer, index ref.Val)
common/types/list_test.go:867
↓ 4 callers
Function
isNumericArgType
(arg ast.Expr)
ext/math.go:930
↓ 4 callers
Method
locationByID
(id int64)
checker/checker.go:714
↓ 4 callers
Function
maybeUnwrapOptional
(t *types.Type)
checker/types.go:49
↓ 4 callers
Function
newFolder
newFolder creates or initializes a pooled folder instance.
interpreter/interpretable.go:1517
↓ 4 callers
Function
newIdent
(name string, t *exprpb.Type, v *exprpb.Constant, desc string)
checker/decls/decls.go:115
↓ 4 callers
Function
newOptionalCompositionStep
newOptionalCompositionStep returns an output step with an optional policy output.
policy/composer.go:553
↓ 4 callers
Function
normalize
(s string)
policy/compiler_test.go:528
↓ 4 callers
Function
optimizerEnv
(t *testing.T)
cel/optimizer_test.go:323
↓ 4 callers
Function
parseCIDR
(raw string)
ext/network.go:506
↓ 4 callers
Method
peekLocalVar
(varName string)
checker/cost.go:426
↓ 4 callers
Method
push
(varName string, expr ast.Expr, path []string, size *SizeEstimate, entrySize *entrySizeEstimate)
checker/cost.go:350
↓ 4 callers
Method
release
(activation Activation)
interpreter/frame.go:345
↓ 4 callers
Function
releaseFolder
releaseFolder resets and releases a pooled folder instance.
interpreter/interpretable.go:1525
↓ 4 callers
Function
safeGetFieldByIndex
(v reflect.Value, index []int)
common/types/native.go:484
↓ 4 callers
Method
sizeOrUnknown
(node any)
checker/cost.go:894
↓ 4 callers
Function
testProtosEnv
testProtosEnv initializes the test environment common to all tests.
ext/protos_test.go:213
↓ 4 callers
Function
testRegexEnv
(t *testing.T, opts ...cel.EnvOption)
ext/regex_test.go:264
↓ 4 callers
Function
trackAllocatingListCall
trackAllocatingListCall computes costs as a function of the size of the result list with a baseline cost for the call dispatch and the associated list
ext/lists.go:902
↓ 4 callers
Function
uint64ToInt64Lossless
(v uint64)
common/types/overflow.go:426
↓ 3 callers
Method
AccuIdentName
AccuIdentName reports the name of the accumulator variable to be used within a comprehension.
common/ast/factory.go:47
↓ 3 callers
Method
Adapter
Adapter returns the type adapter to be used for adapting resolved Attribute values.
interpreter/interpretable.go:89
↓ 3 callers
Method
AddLimits
AddLimits appends one or more limits to the config.
common/env/env.go:216
↓ 3 callers
Method
AddOverload
AddOverload appends a function overload ID to the ReferenceInfo.
common/ast/ast.go:497
↓ 3 callers
Method
AddOverload
AddOverload ensures that the new overload does not collide with an existing overload signature; however, if the function signatures are identical, the
common/decls/decls.go:268
↓ 3 callers
Method
AddQualifier
AddQualifier proxies the Attribute.AddQualifier method. Note, this method may mutate the current attribute state. If the desire is to clone the Attri
interpreter/interpretable.go:97
↓ 3 callers
Function
Alias
Alias associates a name with a user-defined alias. In general, Abbrevs is preferred to Alias since the names generated from the Abbrevs option are mo
common/containers/container.go:245
↓ 3 callers
Function
AllMatcher
AllMatcher returns true for all descendants of a NavigableExpr, effectively flattening them into a list. Such a result would work well with subsequen
common/ast/navigable.go:98
↓ 3 callers
Method
AsyncCall
AsyncCall returns the state of an async call by its callID, or nil if not found.
interpreter/frame.go:275
↓ 3 callers
Function
AuthoringPrompt
AuthoringPrompt creates a prompt template from a CEL environment for the purpose of AI-assisted authoring.
cel/prompt.go:64
↓ 3 callers
Method
CheckInterrupt
CheckInterrupt returns whether the evaluation has been interrupted.
interpreter/frame.go:214
↓ 3 callers
Function
CheckedExprToAstWithSource
CheckedExprToAstWithSource converts a checked expression proto message to an Ast, using the provided Source as the textual contents. In general the s
cel/io.go:50
↓ 3 callers
Function
CollectFileDescriptorSet
CollectFileDescriptorSet builds a file descriptor set associated with the file where the input message is declared.
common/types/pb/pb.go:245
↓ 3 callers
Method
Compose
Compose stitches together a set of expressions within a CompiledRule into a single CEL ast.
policy/composer.go:74
↓ 3 callers
Function
ConcurrentDrainStrategy
ConcurrentDrainStrategy configures the strategy for when to re-evaluate the program during a ConcurrentEval call after receiving asynchronous completi
cel/options.go:787
↓ 3 callers
Method
Condition
Condition returns the condition CEL expression.
policy/parser.go:360
↓ 3 callers
Method
Copy
Copy the input expression with a brand new set of identifiers.
parser/macro.go:199
↓ 3 callers
Function
Cost
Cost estimates the cost of the parsed and type checked CEL expression.
checker/cost.go:255
↓ 3 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:825
↓ 3 callers
Method
DelLetFn
DelLetFn removes a function from the evaluation context. If deleting the function breaks a later expression, this function will return an error withou
repl/evaluator.go:718
↓ 3 callers
Method
Descriptor
()
test/proto2pb/test_all_types.pb.go:63
↓ 3 callers
Function
ErrorAsIssues
ErrorAsIssues wraps a Golang error into a CEL common error and issue set. This is a convenience method for early returning from an expression validat
cel/env.go:1062
↓ 3 callers
Method
EstimateAggregateSize
EstimateAggregateSize returns the aggregate size of the input value along with an indication of whether the computation was aborted due to the calcula
common/types/size_calc.go:169
↓ 3 callers
Method
Examples
Examples returns a list of string examples for the overload.
common/decls/decls.go:672
↓ 3 callers
Function
ExcludeOverloads
ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
common/decls/decls.go:220
↓ 3 callers
Method
Exec
Exec implements the InterpretableV2 interface method.
interpreter/async.go:100
↓ 3 callers
Method
ExecuteTest
ExecuteTest executes the test case against the provided list of programs and returns an error if the test fails. During the test execution, the interm
tools/celtest/test_runner.go:1021
↓ 3 callers
Function
ExprDeclToDeclaration
ExprDeclToDeclaration converts a protobuf CEL declaration to a CEL-native declaration, either a Variable or Function.
cel/decls.go:403
↓ 3 callers
Function
ExprToString
ExprToString converts an AST Expr node back to a string using macro call tracking metadata from source info if any macros are encountered within the e
cel/io.go:131
↓ 3 callers
Function
ExpressionSizeCodePointLimit
ExpressionSizeCodePointLimit is an option which limits the maximum code point count of an expression.
parser/options.go:91
↓ 3 callers
Function
ExpressionUnnestHeight
ExpressionUnnestHeight determines the height at which nested expressions are split into local variables within the cel.@block declaration.
policy/composer.go:35
↓ 3 callers
Function
FileDescriptorSet
FileDescriptorSet creates a Test Runner Option which adds a file descriptor set to the test runner. The file descriptor set is used to register proto
tools/celtest/test_runner.go:473
↓ 3 callers
Method
FindIdentInScope
FindIdentInScope finds the first ident Decl with a matching name in the current Scopes value, or nil if one does not exist. Note: The search is only p
checker/scopes.go:76
↓ 3 callers
Method
FindOverload
FindOverload returns an Overload definition matching the provided name.
interpreter/dispatcher.go:29
↓ 3 callers
Function
FindReverse
FindReverse returns the unmangled, text representation of the operator.
common/operators/operators.go:116
↓ 3 callers
Method
FnDecl
()
repl/parser/commands_parser.go:1781
↓ 3 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
↓ 3 callers
Function
FunctionDocs
FunctionDocs provides a general usage documentation for the function. Use OverloadExamples to provide example usage instructions for specific overloa
cel/decls.go:247
↓ 3 callers
Method
Get
Get implements the traits.Indexer interface method.
common/types/list.go:463
↓ 3 callers
Method
GetE1
GetE1 returns the e1 rule contexts.
repl/parser/commands_parser.go:4386
↓ 3 callers
Method
GetEnumNames
GetEnumNames returns the string names of all enum values in the file.
common/types/pb/file.go:97
↓ 3 callers
Method
GetFn
GetFn returns the fn rule contexts.
repl/parser/commands_parser.go:952
↓ 3 callers
Method
GetLocationByOffset
GetLocationByOffset returns the line and column information for a given character offset.
common/ast/ast.go:405
← previous
next →
801–900 of 7,844, ranked by callers