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
↓ 6 callers
Method
visitMaybeNested
(expr ast.Expr, nested bool)
parser/unparser.go:458
↓ 6 callers
Method
visitNode
()
common/types/size_calc.go:116
↓ 5 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
common/containers/container.go:213
↓ 5 callers
Method
AddExcludedFunctions
AddExcludedFunctions deny-lists one or more functions from the subset.
common/env/env.go:687
↓ 5 callers
Method
AliasSet
AliasSet returns the alias to fully-qualified name mapping stored in the container.
common/containers/container.go:137
↓ 5 callers
Method
Append
Append collects the issues from another Issues struct into a new Issues object.
cel/env.go:1103
↓ 5 callers
Function
AsPartialActivation
AsPartialActivation walks the activation hierarchy and returns the first PartialActivation, if found.
interpreter/activation.go:214
↓ 5 callers
Method
AsPartialActivation
AsPartialActivation converts the current activation to a PartialActivation
interpreter/activation.go:194
↓ 5 callers
Function
AstToParsedExpr
AstToParsedExpr converts an Ast to an protobuf ParsedExpr value.
cel/io.go:114
↓ 5 callers
Function
BindingsVersion
BindingsVersion sets the version of the bindings library to an explicit version.
ext/bindings.go:73
↓ 5 callers
Function
CheckedExprToAst
CheckedExprToAst converts a checked expression proto message to an Ast.
cel/io.go:37
↓ 5 callers
Method
CheckedType
CheckedType returns the type-definition used at type-check time.
common/types/pb/type.go:222
↓ 5 callers
Method
ComputeOffset
ComputeOffset calculates the 0-based character offset from a 1-based line and 0-based column.
common/ast/ast.go:419
↓ 5 callers
Method
ConcurrentEval
ConcurrentEval evaluates the program concurrently, returning a channel that will receive the final EvalResult when all asynchronous operations complet
cel/program.go:72
↓ 5 callers
Function
Constant
Constant creates an instances of an identifier declaration with a variable name, type, and value.
cel/decls.go:136
↓ 5 callers
Function
ConstantValueMatcher
ConstantValueMatcher returns an ExprMatcher which will return true if the input NavigableExpr is comprised of all constant values, such as a simple li
common/ast/navigable.go:72
↓ 5 callers
Function
CustomTypeProvider
CustomTypeProvider replaces the types.Provider implementation with a custom one. The `provider` variable type may either be types.Provider or ref.Typ
cel/options.go:178
↓ 5 callers
Method
DeclarationIsEquivalent
DeclarationIsEquivalent returns true if one variable declaration has the same name and same type as the input.
common/decls/decls.go:1094
↓ 5 callers
Function
DeclareContextProto
DeclareContextProto returns an option to extend CEL environment with declarations from the given context proto. Each field of the proto defines a vari
cel/options.go:884
↓ 5 callers
Method
Depth
Depth indicates the depth in the expression tree. The root expression has depth 0.
common/ast/navigable.go:42
↓ 5 callers
Function
DrainReady
DrainReady returns a strategy that waits for a short duration after the first completion to batch any other functions that complete at roughly the sam
cel/async/async.go:82
↓ 5 callers
Function
EnableIdentifierEscapeSyntax
EnableIdentifierEscapeSyntax enables identifier escaping (`) syntax for fields.
cel/options.go:962
↓ 5 callers
Method
Equals
Equals returns whether two references are identical to each other.
common/ast/ast.go:507
↓ 5 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:55
↓ 5 callers
Method
Errors
Errors returns the collection of errors encountered in more granular detail.
cel/env.go:1095
↓ 5 callers
Method
EstimateSize
EstimateSize returns a SizeEstimate for the given AstNode, or nil if the estimator has no estimate to provide. The size is equivalent to the result o
checker/cost.go:42
↓ 5 callers
Method
Extend
Extend creates a new Container with the existing settings and applies a series of ContainerOptions to further configure the new container.
common/containers/container.go:60
↓ 5 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:206
↓ 5 callers
Function
ExtensionOptionFactory
ExtensionOptionFactory converts an ExtensionConfig value to a CEL environment option.
ext/extension_option_factory.go:25
↓ 5 callers
Method
FieldMap
FieldMap returns a string field name to FieldDescription map.
common/types/pb/type.go:101
↓ 5 callers
Method
Function
Function returns the name of the function being called.
interpreter/async.go:60
↓ 5 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:666
↓ 5 callers
Method
GetArgs
GetArgs returns the args token list.
repl/parser/commands_parser.go:2268
↓ 5 callers
Method
GetOps
GetOps returns the ops token list.
repl/parser/commands_parser.go:4642
↓ 5 callers
Method
GetOpt
GetOpt returns the opt token.
repl/parser/commands_parser.go:9276
↓ 5 callers
Method
GetOrDefault
(name string, value any)
cel/validator.go:145
↓ 5 callers
Method
GetTok
()
parser/gen/cel_parser.go:5901
↓ 5 callers
Method
HasFeature
HasFeature checks whether the environment enables the given feature flag, as enumerated in options.go.
cel/env.go:639
↓ 5 callers
Method
HasLibrary
HasLibrary returns whether a specific SingletonLibrary has been configured in the environment.
cel/env.go:645
↓ 5 callers
Function
InterruptCheckFrequency
InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate before checking whether the function evaluation has bee
cel/options.go:746
↓ 5 callers
Method
IsAssignableRuntimeType
IsAssignableRuntimeType determines whether the current type is runtime assignable from the input runtimeType. At runtime, parameterized types are era
common/types/types.go:328
↓ 5 callers
Method
IsLocalVariable
(name string)
interpreter/interpreter.go:118
↓ 5 callers
Method
IsNonStrict
IsNonStrict returns whether the overload accepts errors and unknown values as arguments.
common/decls/decls.go:712
↓ 5 callers
Function
JSONFieldNames
JSONFieldNames supports accessing protocol buffer fields by json-name. Enabling JSON field name support will create a copy of the types.Registry with
cel/options.go:457
↓ 5 callers
Function
K8sTestTagHandler
K8sTestTagHandler returns a TagVisitor which handles custom policy tags used in K8s policies. This is a helper function to be used in tests.
policy/test_tag_handler_k8s.go:23
↓ 5 callers
Function
Library
Library returns a cel.EnvOption to configure extended functions for JWT data handling and claims inspection.
ext/security/jwt/jwt.go:43
↓ 5 callers
Method
LineOffsets
LineOffsets gives the character offsets at which lines occur. The zero-th entry should refer to the break between the first and second line, or EOF if
common/source.go:37
↓ 5 callers
Function
MatchSubset
MatchSubset applies an ExprMatcher to a list of NavigableExpr values and their descendants, producing a subset of NavigableExpr values which match.
common/ast/navigable.go:122
↓ 5 callers
Method
Matches
Matches returns the list of matches associated with the rule.
policy/compiler.go:56
↓ 5 callers
Method
MultiplyByCost
MultiplyByCost multiplies by the cost and returns the product. If multiply would result in an uint64 overflow, the result is math.MaxUint64.
checker/cost.go:144
↓ 5 callers
Function
NewDispatcher
NewDispatcher returns an empty Dispatcher instance.
interpreter/dispatcher.go:36
↓ 5 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
↓ 5 callers
Function
NewExtensionVersion
NewExtensionVersion creates a new extension version with a major, minor version.
common/ast/ast.go:557
↓ 5 callers
Function
NewFunctionReference
NewFunctionReference creates a ReferenceInfo instance for a set of function overloads.
common/ast/ast.go:488
↓ 5 callers
Function
NewGlobalMacro
NewGlobalMacro creates a Macro for a global function with the specified arg count.
parser/macro.go:48
↓ 5 callers
Function
NewHierarchicalActivation
NewHierarchicalActivation takes two activations and produces a new one which prioritizes resolution in the child first and parent(s) second.
interpreter/activation.go:164
↓ 5 callers
Function
NewInlineVariableWithAlias
NewInlineVariableWithAlias declares a variable name to be replaced by a checked expression. If the variable occurs more than once, the provided alias
cel/inlining.go:62
↓ 5 callers
Function
NewInterpreter
NewInterpreter builds an Interpreter from a Dispatcher and TypeProvider which will be used throughout the Eval of all Interpretable instances generate
interpreter/interpreter.go:244
↓ 5 callers
Function
NewIssuesWithSourceInfo
NewIssuesWithSourceInfo returns an Issues struct from a common.Errors object with SourceInfo metatata which can be used with the `ReportErrorAtID` met
cel/env.go:1076
↓ 5 callers
Method
NewMap
NewMap creates an Expr value representing a map literal expression
common/ast/factory.go:58
↓ 5 callers
Method
NewSelect
NewSelect create a field traversal Expr value.
parser/macro.go:288
↓ 5 callers
Method
NewStruct
NewStruct creates a struct literal expression with an optional set of field initializers.
parser/macro.go:215
↓ 5 callers
Function
NewVariableWithDoc
NewVariableWithDoc creates a new variable declaration with usage documentation.
common/decls/decls.go:1038
↓ 5 callers
Method
OffsetLocation
OffsetLocation returns the Location of the expression identifier.
parser/macro.go:291
↓ 5 callers
Function
ParseToken
ParseToken parses a JWT token string into a structured Token. Verification of the token must be performed before passing the token to CEL.
ext/security/jwt/jwt.go:388
↓ 5 callers
Function
Regex
Regex returns a cel.EnvOption to configure extended functions for regular expression operations. Note: all functions use the 'regex' namespace. If yo
ext/regex.go:105
↓ 5 callers
Function
RegexProgramSize
RegexProgramSize calculates the instruction count (program plan size) of a regex pattern.
common/types/regex.go:24
↓ 5 callers
Method
ReportErrorAtID
ReportErrorAtID reports an error at the given expression id.
policy/compiler.go:219
↓ 5 callers
Method
Reset
Reset clears the previously recorded expression values.
interpreter/evalstate.go:34
↓ 5 callers
Function
RetryAttempts
RetryAttempts sets the maximum number of attempts (including the first one).
cel/async/async.go:153
↓ 5 callers
Function
RetryBackoff
RetryBackoff sets the fixed backoff duration between attempts.
cel/async/async.go:160
↓ 5 callers
Function
RetryBinding
RetryBinding wraps a BlockingAsyncOp with a retry policy and returns an OverloadOpt.
cel/async/async.go:225
↓ 5 callers
Method
SetDisableMacros
SetDisableMacros disables the macros for the library.
common/env/env.go:659
↓ 5 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
common/decls/decls.go:519
↓ 5 callers
Method
Size
Size implements the traits.Sizer interface method.
common/types/list.go:496
↓ 5 callers
Method
Snippet
Snippet returns a line of content and whether the line was found.
common/source.go:56
↓ 5 callers
Function
TestCompiler
TestCompiler returns a TestRunnerOption which configures the test runner with a compiler created using the set of compiler options.
tools/celtest/test_runner.go:451
↓ 5 callers
Function
TestSuite
TestSuite provides a reference to the test suite file (either .yaml or .textproto)
tools/celtest/test_runner.go:292
↓ 5 callers
Method
ToDisplayString
ToDisplayString returns the error set to a newline delimited string.
common/errors.go:84
↓ 5 callers
Function
TriggerTests
TriggerTests triggers tests for a CEL policy, expression or checked expression with the provided set of options. The options can be used to: - configu
tools/celtest/test_runner.go:141
↓ 5 callers
Method
Type_
()
repl/parser/commands_parser.go:3576
↓ 5 callers
Method
Union
Union returns a SizeEstimate that encompasses both input the SizeEstimate.
checker/cost.go:152
↓ 5 callers
Function
ValidateRegexProgramSizeLimit
ValidateRegexProgramSizeLimit ensures that regex pattern literals do not exceed the specified regex program size limit.
cel/validator.go:259
↓ 5 callers
Method
Value
Value implements ref.Val.Value.
common/types/string.go:189
↓ 5 callers
Method
addIndent
()
common/debug/debug.go:301
↓ 5 callers
Method
appendLine
()
common/debug/debug.go:296
↓ 5 callers
Function
attrQualify
attrQualify performs a qualification using the result of an attribute evaluation.
interpreter/attributes.go:1339
↓ 5 callers
Function
attrQualifyIfPresent
attrQualifyIfPresent conditionally performs the qualification of the result of attribute is present on the target object.
interpreter/attributes.go:1353
↓ 5 callers
Method
checkMapValid
(ctx ParserContext, id int64, node *yaml.Node)
policy/parser.go:967
↓ 5 callers
Method
clearPlan
Reset plan if we need to recompile based on a dependency change.
repl/evaluator.go:317
↓ 5 callers
Function
compile
(t testing.TB, name string, policy *Policy, envOpts []cel.EnvOption, compilerOpts []CompilerOption)
policy/compiler_test.go:501
↓ 5 callers
Function
compile
(t testing.TB, env *Env, expr string)
cel/cel_test.go:4446
↓ 5 callers
Function
compileOrError
(t testing.TB, env *Env, expr string)
cel/cel_test.go:4455
↓ 5 callers
Function
estimateListCallWithDirectCost
estimateListCallWithDirectCost computes cost using a pre-calculated CostEstimate and a separate result size estimate.
ext/lists.go:843
↓ 5 callers
Function
estimateStringScan
(sz checker.SizeEstimate)
ext/costs.go:35
↓ 5 callers
Method
expr
expr returns the output expression for the step.
policy/composer.go:465
↓ 5 callers
Method
getByID
(callID int64)
interpreter/async.go:245
↓ 5 callers
Function
macroTargetMatchesNamespace
(ns string, target ast.Expr)
ext/guards.go:62
↓ 5 callers
Function
missingKey
(missing ref.Val)
interpreter/attributes.go:1450
↓ 5 callers
Function
newAsyncCallStateTracker
()
interpreter/async.go:130
← previous
next →
601–700 of 7,844, ranked by callers