Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
9,178 in github.com/cel-expr/cel-go
⨍
Functions
9,178
◇
Types & classes
1,189
↓ 2 callers
Function
MacroExamples
MacroExamples configures a list of examples, either as a string or common.MultilineString, into an example set to be provided with the macro Documenta
cel/macro.go:155
↓ 2 callers
Function
MakeMap
MakeMap expands the input call arguments into a comprehension that transforms each element in the input to produce an output list. There are two call
parser/macro.go:497
↓ 2 callers
Function
MaxConstantFoldIterations
MaxConstantFoldIterations limits the number of times literals may be folding during optimization. Defaults to 100 if not set.
cel/folding.go:36
↓ 2 callers
Function
MaxNestedExpressions
MaxNestedExpressions limits the number of variable and nested rule expressions during compilation. Defaults to 100 if not set.
policy/compiler.go:201
↓ 2 callers
Method
MetadataKeys
MetadataKeys returns a list of metadata keys set on the policy.
policy/parser.go:114
↓ 2 callers
Function
Model
Model registers one or more OverloadModels for both cost estimation and runtime cost tracking. Models are validated when the option is applied to Cos
common/cost/version.go:212
↓ 2 callers
Method
ModelVersion
ModelVersion returns the cost model version configured on the tracker.
common/cost/tracker.go:183
↓ 2 callers
Function
ModelVersionOf
ModelVersionOf reports the cost model version the given Estimator is configured with, or math.MaxUint32 if the estimator does not carry version metada
common/cost/model.go:105
↓ 2 callers
Method
Name
Name returns the fully-qualified name of the container. The name may conceptually be a namespace, package, or type.
common/containers/container.go:87
↓ 2 callers
Function
NativeTypesVersion
NativeTypesVersion sets the native types version support for native extensions functions. Deprecated: NativeTypesVersion is a no-op and will be remov
ext/native.go:44
↓ 2 callers
Function
NavigateExpr
NavigateExpr creates a NavigableExpr whose type information is backed by the input AST. If the expression is already a NavigableExpr, the parent and
common/ast/navigable.go:55
↓ 2 callers
Function
NewCall
NewCall creates a new call Interpretable.
interpreter/interpretable.go:797
↓ 2 callers
Method
NewComprehensionTwoVar
(id int64, iterRange Expr, iterVar, iterVar2, accuVar string, accuInit, loopCond, loopStep, result Expr)
common/ast/factory.go:136
↓ 2 callers
Function
NewExprFactoryWithAccumulator
NewExprFactoryWithAccumulator creates an ExprFactory instance with a custom accumulator identifier name.
common/ast/factory.go:97
↓ 2 callers
Function
NewFieldDoc
NewFieldDoc creates a new Doc struct for documenting a struct field.
common/doc.go:169
↓ 2 callers
Function
NewFunctionDoc
NewFunctionDoc creates a new Doc struct for documenting a function.
common/doc.go:131
↓ 2 callers
Function
NewGlobalMacro
NewGlobalMacro creates a Macro for a global function with the specified arg count. Deprecated: use GlobalMacro
cel/macro.go:182
↓ 2 callers
Method
NewHasMacro
NewHasMacro generates a test-only select expression to be included within an AST and an unexpanded has() macro call signature to be inserted into the
cel/optimizer.go:442
↓ 2 callers
Method
NewIdent
(id int64, name string)
common/ast/factory.go:151
↓ 2 callers
Function
NewInfoSource
NewInfoSource creates a new Source from a SourceInfo.
common/source.go:112
↓ 2 callers
Function
NewListType
NewListType generates a new list with elements of a certain type.
checker/decls/decls.go:151
↓ 2 callers
Function
NewMacroDoc
NewMacroDoc creates a new Doc struct for documenting a macro.
common/doc.go:151
↓ 2 callers
Function
NewOverloadDoc
NewOverloadDoc creates a new Doc struct for a function example.
common/doc.go:141
↓ 2 callers
Function
NewPolicy
NewPolicy creates a policy object which references a policy source and source information.
policy/parser.go:38
↓ 2 callers
Function
NewProtoRegistry
NewProtoRegistry creates a proto-based registry with a set of configurable options.
common/types/provider.go:155
↓ 2 callers
Function
NewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count. Deprecated: use ReceiverMacro
cel/macro.go:190
↓ 2 callers
Function
NewRule
NewRule creates a Rule instance.
policy/parser.go:195
↓ 2 callers
Function
NewTest
NewTest creates a new Test with the provided name, input and result matcher.
tools/celtest/test_runner.go:386
↓ 2 callers
Function
NewVar
NewVar creates a variable identifier.
checker/decls/decls.go:131
↓ 2 callers
Function
NewVariableDoc
NewVariableDoc creates a new Doc struct specifically for documenting a variable.
common/doc.go:121
↓ 2 callers
Method
OffsetLocation
OffsetLocation translates a character offset to a Location, or false if the conversion was not feasible.
common/source.go:47
↓ 2 callers
Method
OptExpr
()
parser/gen/cel_parser.go:5429
↓ 2 callers
Method
OptExpr
()
repl/parser/commands_parser.go:9387
↓ 2 callers
Function
OptimizeWithSource
OptimizeWithSource overrides the source used by the optimizer. Note this will cause the source info from the AST passed to Optimize() to be discarded.
cel/optimizer.go:67
↓ 2 callers
Method
Option
Option returns the cel.EnvOption that should be applied to the environment.
repl/evaluator.go:329
↓ 2 callers
Function
OverloadExamples
OverloadExamples configures an example of how to invoke the overload.
cel/decls.go:325
↓ 2 callers
Method
OverloadID
OverloadID returns the overload id of the function being invoked.
interpreter/async.go:83
↓ 2 callers
Method
OverloadID
OverloadID returns the specific overload ID being invoked.
common/cost/tracker.go:42
↓ 2 callers
Function
ParseDescriptions
ParseDescriptions splits a documentation string into multiple multi-line description sections, using blank lines as delimiters.
common/doc.go:94
↓ 2 callers
Method
ParseRule
ParseRule will parse the current yaml node as though it is the entry point to a rule.
policy/parser.go:799
↓ 2 callers
Function
ParsedExprToAstWithSource
ParsedExprToAstWithSource converts a parsed expression proto message to an Ast, using the provided Source as the textual contents. In general you onl
cel/io.go:85
↓ 2 callers
Function
ParserExpressionSizeLimit
ParserExpressionSizeLimit adjusts the number of code points the expression parser is allowed to parse. Defaults are defined in the parser package. A n
cel/options.go:1188
↓ 2 callers
Function
PreOrderVisit
PreOrderVisit walks the expression graph and calls the visitor in pre-order (top-down).
common/ast/navigable.go:180
↓ 2 callers
Function
Precedence
Precedence returns the operator precedence, where the higher the number indicates higher precedence operations.
common/operators/operators.go:141
↓ 2 callers
Function
PresenceTestHasCost
PresenceTestHasCost determines whether presence testing has a cost of one or zero. Defaults to presence test has a cost of one. Deprecated: use cost.
interpreter/runtimecost.go:61
↓ 2 callers
Method
Primary
()
parser/gen/cel_parser.go:3392
↓ 2 callers
Function
Print
Print returns a string representation of the Expr message, annotated with types from the CheckedExpr. The Expr must be a sub-expression embedded in t
checker/printer.go:71
↓ 2 callers
Function
ProtoAsDeclaration
ProtoAsDeclaration converts a canonical celpb.Decl value describing a variable or function into an EnvOption.
cel/decls.go:420
↓ 2 callers
Function
ProtoConstantAsVal
ProtoConstantAsVal converts a canonical celpb.Constant protobuf to a CEL-native ref.Val.
common/ast/conversion.go:681
↓ 2 callers
Method
ProtoReflect
()
test/proto3pb/test_all_types.pb.go:666
↓ 2 callers
Function
ProtoToEntryExpr
ProtoToEntryExpr converts a protobuf struct/map entry to an ast.EntryExpr
common/ast/conversion.go:114
↓ 2 callers
Function
ProtoToReferenceInfo
ProtoToReferenceInfo converts a protobuf Reference into a CEL-native ReferenceInfo instance.
common/ast/conversion.go:625
↓ 2 callers
Function
ProtosVersion
ProtosVersion sets the library version for extensions for protobuf utilities.
ext/protos.go:66
↓ 2 callers
Function
PruneAst
TODO Consider having a separate walk of the AST that finds common subexpressions. This can be called before or after constant folding to find common s
interpreter/prune.go:69
↓ 2 callers
Method
QualId
()
repl/parser/commands_parser.go:3210
↓ 2 callers
Method
Qualify
Qualify records qualifier cost.
common/cost/tracker.go:217
↓ 2 callers
Method
RangeList
RangeList iterates over the list and calls the provided function for each element. If the function returns false, the iteration will stop.
policy/yaml.go:31
↓ 2 callers
Function
ReferenceInfoToProto
ReferenceInfoToProto converts a ReferenceInfo instance to a protobuf Reference suitable for serialization.
common/ast/conversion.go:612
↓ 2 callers
Function
RegexProgramSizeLimit
RegexProgramSizeLimit caps the maximum regex program plan size permitted during evaluation.
interpreter/interpreter.go:237
↓ 2 callers
Function
RegexProgramSizeLimit
RegexProgramSizeLimit caps the maximum regex program plan size permitted for regular expressions. A negative or zero value means unbounded.
cel/options.go:1213
↓ 2 callers
Function
RegexVersion
RegexVersion configures the version of the Regex library definitions to use. See [Regex] for supported values.
ext/regex.go:116
↓ 2 callers
Method
RegisterNativeType
(reflect.Type, ...types.NativeTypeOption)
cel/options.go:367
↓ 2 callers
Method
RegisterNativeTypeDesc
(*types.NativeTypeDesc)
cel/options.go:368
↓ 2 callers
Method
Release
Release releases a concurrency slot and decrements the active calls count (used for defensive recovery).
interpreter/async.go:497
↓ 2 callers
Method
ReportErrorAtID
ReportErrorAtID records an error at a source location and expression id.
common/errors.go:55
↓ 2 callers
Method
ResolveName
ResolveName implements the Activation interface by proxying to the internal activation.
interpreter/frame.go:245
↓ 2 callers
Method
RestorePosition
(pos int32)
parser/lexer.go:239
↓ 2 callers
Method
ResultOrUnknown
ResultOrUnknown returns the cached result if the call has completed, an Unknown with the call ID if pending, or nil if the call has not been started.
interpreter/async.go:299
↓ 2 callers
Method
ResultType
ResultType returns the output type of the expression if the Ast has been type-checked, else returns chkdecls.Dyn as the parse step cannot infer the ty
cel/env.go:97
↓ 2 callers
Method
ResultVal
ResultVal returns the evaluated result value, if present.
common/cost/model.go:94
↓ 2 callers
Function
SafeCeil
SafeCeil returns the smallest integer value greater than or equal to the input, saturating at math.MaxUint64 and flooring at zero. Negative and NaN i
common/cost/cost.go:127
↓ 2 callers
Method
Sample
Sample observes a value for a specific node ID subject to the tracker's sample interval, returning the value's aggregate size when computed, or zero w
common/types/memory_tracker.go:151
↓ 2 callers
Method
SavePosition
()
parser/lexer.go:235
↓ 2 callers
Method
Semantic
Semantic returns the evaluation semantic for the rule.
policy/parser.go:215
↓ 2 callers
Method
SetCondition
SetCondition sets the CEL condition for the match.
policy/parser.go:401
↓ 2 callers
Method
SetExpression
SetExpression sets the variable expression.
policy/parser.go:335
↓ 2 callers
Method
SetOutput
SetOutput sets the output expression for the match.
policy/parser.go:406
↓ 2 callers
Method
SetRule
SetRule sets the rule for the match.
policy/parser.go:416
↓ 2 callers
Method
SetSemantic
SetSemantic configures the evaluation semantic for the rule.
policy/parser.go:223
↓ 2 callers
Method
SetType
SetType sets the type of the expression node at the given id.
common/ast/ast.go:59
↓ 2 callers
Function
SetsVersion
SetsVersion sets the library version for set extensions.
ext/sets.go:89
↓ 2 callers
Function
SingletonFunctionBinding
SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is
cel/decls.go:291
↓ 2 callers
Method
Size
Size implements the traits.Sizer interface method.
common/types/list.go:410
↓ 2 callers
Method
Sort
Sort is a convenience method: x.Sort() calls Sort(x).
cel/folding_test.go:1815
↓ 2 callers
Method
Sort
Sort is a convenience method: x.Sort() calls Sort(x).
common/types/unknown.go:339
↓ 2 callers
Method
SourceID
SourceID returns the source identifier associated with the rule.
policy/parser.go:231
↓ 2 callers
Method
StartCommand
()
repl/parser/commands_parser.go:490
↓ 2 callers
Function
StrictDecoding
StrictDecoding configures whether unknown fields in the YAML or JSON input cause a decoding error. By default, unknown fields are ignored.
common/env/io.go:403
↓ 2 callers
Method
String
String takes a ref.Val and a string representing the current locale identifier and returns the Val formatted as a string, or an error if one occurred.
ext/formatting_v2.go:642
↓ 2 callers
Function
StringsLocale
StringsLocale configures the library with the given locale. The locale tag will be checked for validity at the time that EnvOptions are configured. If
ext/strings.go:345
↓ 2 callers
Function
StringsValidateFormatCalls
StringsValidateFormatCalls validates type-checked ASTs to ensure that string.format() calls have valid formatting clauses and valid argument types for
ext/strings.go:372
↓ 2 callers
Method
SubsetFunction
SubsetFunction produces a function declaration which matches the supported subset, or nil if the function is not supported by the LibrarySubset. For
common/env/env.go:583
↓ 2 callers
Method
SubsetMacro
SubsetMacro indicates whether the macro function should be included in the library subset.
common/env/env.go:627
↓ 2 callers
Method
TargetType
TargetType returns the deduced type of the receiver/target object, if present.
common/cost/model.go:30
↓ 2 callers
Method
TargetVal
TargetVal returns the value of the receiver/target object, if present.
common/cost/model.go:91
↓ 2 callers
Method
TargetValue
TargetValue returns the uint64 value of the receiver/target, or defaultVal.
common/cost/model.go:85
↓ 2 callers
Function
TestRunnerOptionsFromFlags
TestRunnerOptionsFromFlags returns a TestRunnerOption which configures the following attributes of the test runner using the parsed flags and the opti
tools/celtest/test_runner.go:184
↓ 2 callers
Function
ToFoldableList
ToFoldableList will create a Foldable version of a list suitable for key-value pair iteration. For values which are already Foldable, this call is a
common/types/list.go:754
↓ 2 callers
Function
TwoVarComprehensionsVersion
TwoVarComprehensionsVersion sets the library version for two-variable comprehensions.
ext/comprehensions.go:175
↓ 2 callers
Method
Type
()
common/types/native.go:524
← previous
next →
1,501–1,600 of 9,178, ranked by callers