Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,546 in github.com/cel-expr/cel-go
⨍
Functions
7,546
◇
Types & classes
876
↓ 4 callers
Function
isSkippedFieldName
(name string)
ext/native.go:167
↓ 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
optimizerEnv
(t *testing.T)
cel/optimizer_test.go:323
↓ 4 callers
Function
parseCIDR
(raw string)
ext/network.go:505
↓ 4 callers
Method
peekLocalVar
(varName string)
checker/cost.go:456
↓ 4 callers
Method
push
(varName string, expr ast.Expr, path []string, size *SizeEstimate, entrySize *entrySizeEstimate)
checker/cost.go:380
↓ 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
Method
sizeOrUnknown
(node any)
checker/cost.go:924
↓ 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
toFieldName
(fieldNameHandler NativeTypesFieldNameHandler, f reflect.StructField)
ext/native.go:279
↓ 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:901
↓ 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:260
↓ 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
Method
Clone
Clone makes a shallow copy of the tracker. The different clones can be used independently from each other.
interpreter/runtimecost.go:242
↓ 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
Function
Compile
Compile combines the policy compilation and composition steps into a single call. This generates a single CEL AST from a collection of policy express
policy/compiler.go:244
↓ 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:784
↓ 3 callers
Method
Condition
Condition returns the condition CEL expression.
policy/parser.go:318
↓ 3 callers
Method
ConfigValue
ConfigValue retrieves the value associated with the config key name, if one exists.
common/env/env.go:724
↓ 3 callers
Function
Cost
Cost estimates the cost of the parsed and type checked CEL expression.
checker/cost.go:285
↓ 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:822
↓ 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
DisableDeclaration
DisableDeclaration disables the function signatures, effectively removing them from the type-check environment while preserving the runtime bindings.
cel/decls.go:293
↓ 3 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:147
↓ 3 callers
Function
Equal
Equal returns whether two proto.Message instances are equal using the following criteria: - Messages must share the same instance of the type descrip
common/types/pb/equal.go:45
↓ 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:1008
↓ 3 callers
Method
Examples
Examples returns a list of string examples for the overload.
common/decls/decls.go:662
↓ 3 callers
Function
ExcludeOverloads
ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
common/decls/decls.go:215
↓ 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:399
↓ 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:94
↓ 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
Method
Get
Get implements the traits.Indexer interface method.
common/types/list.go:446
↓ 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
↓ 3 callers
Method
GetOverloadIDs
GetOverloadIDs returns the set of overload function names for a given expression id. If the expression id is not a function call, or the AST is not t
common/ast/ast.go:79
↓ 3 callers
Method
GetT
GetT returns the t rule contexts.
repl/parser/commands_parser.go:1903
↓ 3 callers
Method
GetValues
GetValues returns the values rule context list.
repl/parser/commands_parser.go:8739
↓ 3 callers
Method
GetVar_
GetVar_ returns the var_ rule contexts.
repl/parser/commands_parser.go:949
↓ 3 callers
Method
GlobalCall
GlobalCall creates a function call Expr value for a global (free) function.
cel/macro.go:127
↓ 3 callers
Method
HasOptionalOutput
HasOptionalOutput returns whether the rule returns a concrete or optional value. The rule may return an optional value if all match expressions under
policy/compiler.go:71
↓ 3 callers
Method
HasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:349
↓ 3 callers
Function
HomogeneousAggregateLiterals
HomogeneousAggregateLiterals disables mixed type list and map literal values. Note, it is still possible to have heterogeneous aggregates when provid
cel/options.go:234
↓ 3 callers
Method
Imports
Imports returns the list of imports associated with the policy.
policy/parser.go:70
↓ 3 callers
Function
IndexOrError
IndexOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:549
↓ 3 callers
Function
InitEmptyUnaryContext
(p *UnaryContext)
parser/gen/cel_parser.go:1770
↓ 3 callers
Function
InitEmptyUnaryContext
(p *UnaryContext)
repl/parser/commands_parser.go:5728
↓ 3 callers
Method
InitVals
InitVals returns all the list elements, map key and values or struct field values.
interpreter/interpretable.go:139
↓ 3 callers
Method
IsEnum
IsEnum returns true if the field type refers to an enum value.
common/types/pb/type.go:321
↓ 3 callers
Function
JSONFieldNames
JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
checker/options.go:46
↓ 3 callers
Method
JSONFieldNames
JSONFieldNames returns whether json field names are enabled in this registry.
common/types/provider.go:185
↓ 3 callers
Method
LineOffsets
LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
common/ast/ast.go:308
↓ 3 callers
Method
LocationOffset
LocationOffset translates a Location to an offset. Given the line and column of the Location returns the Location's character offset in the Source, an
common/source.go:43
↓ 3 callers
Function
MathVersion
MathVersion sets the library version for math extensions.
ext/math.go:399
↓ 3 callers
Function
MaxExpressionNodeCount
MaxExpressionNodeCount limits the maximum number of expression nodes that may be emitted by the parser, including nodes created by macro expansion.
parser/options.go:103
↓ 3 callers
Function
MaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 3 callers
Method
Metadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:90
↓ 3 callers
Method
Modulo
Modulo returns the result of taking the modulus of the current value by the denominator. A denominator value of zero results in an error.
common/types/traits/math.go:42
↓ 3 callers
Method
Name
Name returns the snake_case name of the field within the proto-based struct.
common/types/pb/type.go:359
↓ 3 callers
Method
Name
Name returns the fully-qualified variable name
common/decls/decls.go:1049
↓ 3 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:407
↓ 3 callers
Function
NewBufferAndLineOffsetsWithLimit
NewBufferAndLineOffsetsWithLimit returns an efficient implementation of Buffer for the given text and enforces a code point limit while constructing t
common/runes/buffer.go:143
↓ 3 callers
Function
NewCommandsLexer
NewCommandsLexer produces a new lexer instance for the optional input antlr.CharStream.
repl/parser/commands_lexer.go:345
↓ 3 callers
Function
NewCommandsParser
NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
repl/parser/commands_parser.go:282
↓ 3 callers
Function
NewConstant
NewConstant creates a new constant declaration.
common/decls/decls.go:1018
↓ 3 callers
Function
NewExampleDoc
NewExampleDoc creates a new Doc struct specifically for holding an example.
common/doc.go:161
↓ 3 callers
Function
NewFunctionWithDoc
NewFunctionWithDoc creates a serializable function and overload set.
common/env/env.go:346
↓ 3 callers
Function
NewGlobalVarArgMacro
NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count.
parser/macro.go:73
↓ 3 callers
Function
NewLimit
NewLimit creates a new limit.
common/env/env.go:762
↓ 3 callers
Function
NewMutableList
NewMutableList creates a new mutable list whose internal state can be modified.
common/types/list.go:91
↓ 3 callers
Function
NewMutableMap
NewMutableMap constructs a mutable map from an adapter and a set of map values.
common/types/map.go:99
↓ 3 callers
Function
NewObjectType
NewObjectType creates an object type for a qualified type name.
checker/decls/decls.go:168
↓ 3 callers
Function
NewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count.
parser/macro.go:60
← previous
next →
801–900 of 7,546, ranked by callers