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
↓ 6 callers
Function
ExhaustiveEval
ExhaustiveEval replaces operations that short-circuit with versions that evaluate expressions and couples this behavior with the TrackState() decorato
interpreter/interpreter.go:186
↓ 6 callers
Method
Extensions
Extensions returns the set of extensions present in the source.
common/ast/ast.go:441
↓ 6 callers
Method
FindStructFieldNames
FindStructFieldNames returns thet field names associated with the type, if the type is found.
common/types/provider.go:59
↓ 6 callers
Method
GetFrom
GetFrom returns the accessor method associated with the field on the proto generated struct. If the field is not set, the proto default value is retu
common/types/pb/type.go:284
↓ 6 callers
Method
HasIterVar2
HasIterVar2 returns true if the second iteration variable is non-empty.
common/ast/expr.go:286
↓ 6 callers
Method
HasLateBinding
HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
common/decls/decls.go:316
↓ 6 callers
Method
Index
Index implements (antlr.CharStream).Index.
parser/input.go:66
↓ 6 callers
Method
IsSet
IsSet returns true if the field is defined and set to a non-default value. The method will return false if defined and not set, and an error if the fi
common/types/traits/field_tester.go:29
↓ 6 callers
Function
JSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:106
↓ 6 callers
Method
Kind
Kind indicates general category of the type.
common/types/types.go:284
↓ 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:988
↓ 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:430
↓ 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:112
↓ 6 callers
Function
NewCheckedAST
NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
common/ast/ast.go:121
↓ 6 callers
Function
NewEmptyRegistry
NewEmptyRegistry returns a registry which is completely unconfigured.
common/types/provider.go:165
↓ 6 callers
Function
NewIdentReference
NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
common/ast/ast.go:483
↓ 6 callers
Method
NewMap
NewMap creates a CreateStruct instruction for a map where the map is comprised of the optional set of key, value entries.
cel/macro.go:85
↓ 6 callers
Method
NewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
parser/macro.go:212
↓ 6 callers
Method
NewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
cel/macro.go:88
↓ 6 callers
Method
NewPresenceTest
NewPresenceTest creates a Select TestOnly Expr value for modelling has() semantics.
parser/macro.go:285
↓ 6 callers
Function
NewRegistry
NewRegistry accepts a list of proto message instances and returns a type provider which can create new instances of the provided message or any messag
common/types/provider.go:98
↓ 6 callers
Method
ObserveExec
ObserveExec evaluates an interpretable and performs per-evaluation state-tracking. This method is concurrency safe and the expectation is that the ob
interpreter/interpretable.go:179
↓ 6 callers
Method
Parent
Parent returns the parent of the current activation, may be nil. If non-nil, the parent will be searched during resolve calls.
interpreter/activation.go:34
↓ 6 callers
Method
Parse
Parse parses the expression represented by source and returns the result.
parser/parser.go:98
↓ 6 callers
Function
ParseType
ParseType parses a human readable type string into the protobuf representation.
repl/typefmt.go:215
↓ 6 callers
Function
Protos
Protos returns a cel.EnvOption to configure extended macros and functions for proto manipulation. Note, all macros use the 'proto' namespace; however
ext/protos.go:54
↓ 6 callers
Method
QualifyIfPresent
QualifyIfPresent qualifies the object if the qualifier is declared or defined on the object. The 'presenceOnly' flag indicates that the value is not n
interpreter/interpretable.go:106
↓ 6 callers
Method
RecoverInline
(recognizer antlr.Parser)
parser/parser.go:300
↓ 6 callers
Method
RegisterMessage
RegisterMessage registers a protocol buffer message and its dependencies.
common/types/ref/provider.go:73
↓ 6 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
↓ 6 callers
Function
SerializeTypeDesc
SerializeTypeDesc converts a CEL native *types.Type to a serializable TypeDesc.
common/env/env.go:969
↓ 6 callers
Method
SetContainer
SetContainer configures the container name for this configuration.
common/env/env.go:110
↓ 6 callers
Method
SetDisabled
SetDisabled disables or enables the library.
common/env/env.go:653
↓ 6 callers
Function
SingletonFunctionBinding
SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is
common/decls/decls.go:531
↓ 6 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
cel/decls.go:251
↓ 6 callers
Method
Source
Source returns a view of the input used to create the Ast. This source may be complete or constructed from the SourceInfo.
cel/env.go:115
↓ 6 callers
Method
State
State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
cel/program.go:147
↓ 6 callers
Method
Subtract
Subtract returns the result of subtracting the input from the current value.
common/types/traits/math.go:61
↓ 6 callers
Function
TestExpression
TestExpression returns a TestRunnerOption which configures a policy file, expression file, or raw expression for testing
tools/celtest/test_runner.go:436
↓ 6 callers
Function
ToAdornedDebugString
ToAdornedDebugString gives the adorned string representation of the Expr.
common/debug/debug.go:61
↓ 6 callers
Function
TwoVarComprehensions
TwoVarComprehensions introduces support for two-variable comprehensions. The two-variable form of comprehensions looks similar to the one-variable co
ext/comprehensions.go:163
↓ 6 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:44
↓ 6 callers
Method
Unwrap
Unwrap returns the Activation which omits local state.
interpreter/interpreter.go:113
↓ 6 callers
Function
ValidateComprehensionNestingLimit
ValidateComprehensionNestingLimit ensures that comprehension nesting does not exceed the specified limit. This validator can be useful for preventing
cel/validator.go:258
↓ 6 callers
Function
awaitEval
awaitEval runs ConcurrentEval and returns the result or fails on timeout.
cel/program_async_test.go:919
↓ 6 callers
Function
buildZeroArgAsync
buildZeroArgAsync builds a zero-arity async overload from an option and returns its AsyncOp.
cel/async/async_test.go:43
↓ 6 callers
Method
computeSize
(e ast.Expr)
checker/cost.go:943
↓ 6 callers
Function
estimateAllocatingListCall
estimateAllocatingListCall computes cost as a function of the size of the result list with a baseline cost for the call dispatch and the associated li
ext/lists.go:830
↓ 6 callers
Function
extractIterVars
(mef cel.MacroExprFactory, arg0, arg1 ast.Expr)
ext/comprehensions.go:401
↓ 6 callers
Function
file_test_proto3pb_test_all_types_proto_rawDescGZIP
()
test/proto3pb/test_all_types.pb.go:1118
↓ 6 callers
Method
getOrCreate
getOrCreate returns the existing call state for the (node id, args) tuple, or registers and returns a new one. A newly registered call is assigned a u
interpreter/async.go:218
↓ 6 callers
Method
getType
(e ast.Expr)
checker/cost.go:882
↓ 6 callers
Function
inRange
inRange reports whether s is all decimal digits and its value lies in [lo, hi].
common/types/timestamp.go:116
↓ 6 callers
Method
isAssignable
(t1, t2 *types.Type)
checker/checker.go:640
↓ 6 callers
Function
isDyn
isDyn returns true if the input t is either type DYN or a well-known ANY message.
checker/types.go:22
↓ 6 callers
Method
maybeCreateLiteral
(id int64, val ref.Val)
interpreter/prune.go:89
↓ 6 callers
Method
maybeValue
(id int64)
interpreter/prune.go:473
↓ 6 callers
Method
newLiteral
(ctx any, value ref.Val)
parser/helper.go:52
↓ 6 callers
Function
newTestEnv
(t testing.TB, cont *containers.Container, reg *types.Registry)
interpreter/interpreter_test.go:2561
↓ 6 callers
Function
setLimit
(id limitID, limit int)
cel/options.go:978
↓ 6 callers
Method
setup
(t testing.TB, env *cel.Env, ast *cel.Ast)
policy/compiler_test.go:334
↓ 6 callers
Method
skipWhitespace
()
common/env/io.go:236
↓ 6 callers
Function
testCompreEnv
(t *testing.T, opts ...cel.EnvOption)
ext/comprehensions_test.go:795
↓ 6 callers
Function
testMustParse
(t testing.TB, data any)
interpreter/interpreter_test.go:2539
↓ 6 callers
Method
typeMismatch
(id int64, l common.Location, expected, actual *types.Type)
checker/errors.go:73
↓ 6 callers
Method
visitMaybeNested
(expr ast.Expr, nested bool)
parser/unparser.go:458
↓ 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:1049
↓ 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:71
↓ 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
CustomDecoratorV2
CustomDecoratorV2 configures a custom V2 interpretable decorator for the program.
interpreter/interpreter.go:174
↓ 5 callers
Function
CustomTypeAdapter
CustomTypeAdapter swaps the default types.Adapter implementation with a custom one. Note: This option must be specified before the Types and TypeDesc
cel/options.go:163
↓ 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:175
↓ 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:1084
↓ 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:881
↓ 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:955
↓ 5 callers
Method
EnumValue
EnumValue returns the numeric value of the given enum value name.
common/types/provider.go:43
↓ 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:1041
↓ 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:41
↓ 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:217
↓ 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
FindFieldType
FieldFieldType returns the field type for a checked type value. Returns false if the field could not be found.
common/types/ref/provider.go:40
↓ 5 callers
Method
FindType
FindType looks up the Type given a qualified typeName. Returns false if not found.
common/types/ref/provider.go:36
↓ 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:651
← previous
next →
501–600 of 7,546, ranked by callers