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
↓ 7 callers
Function
sanitizeStructTypeName
(structType string)
common/types/provider.go:802
↓ 7 callers
Function
setLimit
(id limitID, limit int)
cel/options.go:986
↓ 7 callers
Function
substitute
substitute replaces all direct and indirect occurrences of bound type parameters. Unbound type parameters are replaced by DYN if typeParamToDyn is tru
checker/types.go:277
↓ 7 callers
Function
testEvalWithCost
(t *testing.T, env *cel.Env, ast *cel.Ast, in any, wantCost uint64)
ext/sets_test.go:502
↓ 7 callers
Function
timestampOf
(t time.Time)
common/types/timestamp.go:41
↓ 7 callers
Method
verifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting_v2.go:551
↓ 7 callers
Method
verifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting.go:611
↓ 6 callers
Method
ActiveAsyncCalls
ActiveAsyncCalls returns the number of async function calls that have been launched but whose completions have not yet been drained.
interpreter/frame.go:267
↓ 6 callers
Method
AddExcludedMacros
AddExcludedMacros deny-lists one or more macros by function name.
common/env/env.go:673
↓ 6 callers
Method
AddFeatures
AddFeatures appends one or more features to the config.
common/env/env.go:210
↓ 6 callers
Method
AddIncludedMacros
AddIncludedMacros allow-lists one or more macros by function name. Note, this option will override any excluded macros.
common/env/env.go:667
↓ 6 callers
Method
AddSerializableOption
AddSerializableOption adds an option to the basic environment that is flagged as YAML compatible.
repl/evaluator.go:680
↓ 6 callers
Method
AsCost
AsCost converts a size estimates to an equivalent cost estimate.
checker/cost.go:163
↓ 6 callers
Method
Attr
Attr returns the Attribute value.
interpreter/interpretable.go:86
↓ 6 callers
Method
Buffer
(e ast.Expr)
common/debug/debug.go:83
↓ 6 callers
Method
Children
Children returns a list of child expression nodes.
common/ast/navigable.go:37
↓ 6 callers
Method
Consume
Consume implements (antlr.CharStream).Consume.
parser/input.go:30
↓ 6 callers
Method
CopyExpr
CopyExpr creates a deep copy of the input Expr value.
common/ast/factory.go:22
↓ 6 callers
Function
CustomDecoratorV2
CustomDecoratorV2 configures a custom V2 interpretable decorator for the program.
interpreter/interpreter.go:174
↓ 6 callers
Method
Documentation
Documentation returns the documentation coded by the DocKind to assist with text formatting.
common/doc.go:183
↓ 6 callers
Function
ErrorRecoveryLimit
ErrorRecoveryLimit limits the number of attempts the parser will perform to recover from an error.
parser/options.go:66
↓ 6 callers
Function
EvalStateFactory
EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.
interpreter/interpreter.go:85
↓ 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
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:326
↓ 6 callers
Method
Index
Index implements (antlr.CharStream).Index.
parser/input.go:66
↓ 6 callers
Function
JSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:120
↓ 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:998
↓ 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:440
↓ 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:115
↓ 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
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
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
OverloadID
OverloadID returns the overload id associated with the function specialization. Overload ids are stable across language boundaries and can be treated
interpreter/interpretable.go:126
↓ 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
ParseStructField
ParseStructField configures how to parse Go struct fields. It can be used to customize struct field parsing.
common/types/native.go:83
↓ 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
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:541
↓ 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:255
↓ 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:116
↓ 6 callers
Method
State
State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
cel/program.go:148
↓ 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:247
↓ 6 callers
Method
WithJSONFieldNames
WithJSONFieldNames configures the registry with the JSON field name support enabled or disabled.
common/types/provider.go:256
↓ 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:2627
↓ 6 callers
Function
newTestStructTypeRegistry
(t *testing.T)
common/types/provider_test.go:1670
↓ 6 callers
Function
program
(t testing.TB, tst *testCase, opts ...PlannerOption)
interpreter/interpreter_test.go:2490
↓ 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:2605
↓ 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: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
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
← previous
next →
501–600 of 7,701, ranked by callers