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
↓ 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.
checker/cost.go:229
↓ 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:417
↓ 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
Qualifiers
Qualifiers returns the list of qualifiers associated with the Attribute.
interpreter/attributes.go:126
↓ 2 callers
Method
Qualify
Qualify performs a qualification, e.g. field selection, on the input object and returns the value of the access and whether the value was set. A non-n
interpreter/attributes.go:80
↓ 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:230
↓ 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:1036
↓ 2 callers
Function
RegexVersion
RegexVersion configures the version of the Regex library definitions to use. See [Regex] for supported values.
ext/regex.go:119
↓ 2 callers
Method
Release
Release releases a concurrency slot and decrements the active calls count (used for defensive recovery).
interpreter/async.go:492
↓ 2 callers
Method
ReportErrorAtID
ReportErrorAtID records an error at a source location and expression id.
common/errors.go:55
↓ 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:294
↓ 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:96
↓ 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:69
↓ 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:91
↓ 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:268
↓ 2 callers
Function
SizeCalculatorMaxDepth
SizeCalculatorMaxDepth sets the maximum object depth limit before saturating to math.MaxUint32.
common/types/size_calc.go:39
↓ 2 callers
Method
Sort
Sort is a convenience method: x.Sort() calls Sort(x).
cel/folding_test.go:1278
↓ 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
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
Method
String
String implements the fmt.Stringer interface method.
common/types/native.go:166
↓ 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:348
↓ 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:375
↓ 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:581
↓ 2 callers
Method
SubsetMacro
SubsetMacro indicates whether the macro function should be included in the library subset.
common/env/env.go:625
↓ 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
Method
ToConfig
ToConfig produces a YAML-serializable env.Config object from the given environment. The serialized configuration value is intended to represent a bas
cel/env.go:198
↓ 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:595
↓ 2 callers
Function
ToFoldableMap
ToFoldableMap will create a Foldable version of a map suitable for key-value pair iteration. For values which are already Foldable, this call is a no
common/types/map.go:1031
↓ 2 callers
Method
ToImmutableList
()
common/types/traits/lister.go:35
↓ 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:358
↓ 2 callers
Method
Type
()
common/types/object.go:162
↓ 2 callers
Method
Type
Type of the expression. If the expression is type-checked, the type check metadata is returned. If the expression has not been type-checked, the type
common/ast/navigable.go:31
↓ 2 callers
Method
TypeProvider
TypeProvider returns the `ref.TypeProvider` configured for the environment. Deprecated: use CELTypeProvider()
cel/env.go:801
↓ 2 callers
Function
TypeToExprType
TypeToExprType converts a CEL-native type representation to a protobuf CEL Type representation.
cel/decls.go:393
↓ 2 callers
Function
TypeVariable
TypeVariable creates a new type identifier for use within a types.Provider
common/decls/decls.go:1102
↓ 2 callers
Method
UnknownAttributePatterns
UnknownAttributePaths returns a set of AttributePattern values which match Attribute expressions for data accesses whose values are not yet known.
interpreter/activation.go:188
↓ 2 callers
Function
UnknownCostEstimate
UnknownCostEstimate returns a cost with an unknown impact.
checker/cost.go:175
↓ 2 callers
Function
UnknownSizeEstimate
UnknownSizeEstimate returns a size between 0 and max uint
checker/cost.go:106
↓ 2 callers
Function
UnparseExprType
UnparseExprType pretty-prints a type (proto representation) for the REPL.
repl/typefmt.go:32
↓ 2 callers
Function
UnsupportedRefValConversionErr
UnsupportedRefValConversionErr returns a types.NewErr instance with a no such conversion message that indicates that the native value could not be con
common/types/err.go:95
↓ 2 callers
Function
ValidateTimes
ValidateTimes enables automatic time validation (iat, nbf, exp) during token parsing with an optional clock leeway.
ext/security/jwt/jwt.go:66
↓ 2 callers
Method
Validators
Validators returns a shallow copy of the set of ASTValidators configured on the environment.
cel/env.go:691
↓ 2 callers
Method
Value
Value returns the constant value of the instruction.
interpreter/interpretable.go:78
↓ 2 callers
Method
Value
Value implements the ref.Val interface method.
common/types/native.go:181
↓ 2 callers
Function
VariableDeclToExprDecl
VariableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.
common/decls/decls.go:1107
↓ 2 callers
Function
VariableWithDoc
VariableWithDoc creates an instance of a variable declaration with a variable name, type, and doc string.
cel/decls.go:149
↓ 2 callers
Method
Variables
Variables returns a shallow copy of the variables associated with the environment.
cel/env.go:671
↓ 2 callers
Function
WrapOnOperators
WrapOnOperators specifies which operators to perform word wrapping on an output expression when its string length exceeds the column limit set by Wrap
parser/unparser.go:622
↓ 2 callers
Function
actualSize
actualSize returns the size of the value for all traits.Sizer values, a fixed size for all proto-based objects, and a size of 1 for all other value ty
interpreter/runtimecost.go:336
↓ 2 callers
Function
adaptLiteral
adaptLiteral converts a runtime CEL value to its equivalent literal expression. For strongly typed values, the type-provider will be used to reconstr
cel/folding.go:454
↓ 2 callers
Method
add
(from, to *types.Type)
checker/mapping.go:31
↓ 2 callers
Method
addLetFn
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:493
↓ 2 callers
Method
addLetVar
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:441
↓ 2 callers
Method
addOption
(opt Optioner, isYAML bool)
repl/evaluator.go:509
↓ 2 callers
Method
addTerm
addTerm adds an operation identifier and term to the set of terms to be balanced.
parser/helper.go:291
↓ 2 callers
Function
addTimeDurationChecked
addDurationChecked performs addition with overflow detection of a time.Time and time.Duration. If the operation fails due to overflow the error retur
common/types/overflow.go:196
↓ 2 callers
Function
aliasAs
(kind, qualifiedName, alias string, requireQualified bool)
common/containers/container.go:249
↓ 2 callers
Method
applyContextOptions
(env *cel.Env)
repl/evaluator.go:369
↓ 2 callers
Function
applyQualifiers
(vars Activation, obj any, qualifiers []Qualifier)
interpreter/attributes.go:1302
↓ 2 callers
Function
assertFuncEquals
(t *testing.T, got, want *decls.FunctionDecl)
common/env/env_test.go:1493
↓ 2 callers
Function
awaitResult
awaitResult re-evaluates ComputeResult until it returns a non-Unknown value or the deadline fires.
interpreter/async_test.go:66
↓ 2 callers
Function
binaryFormatError
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting.go:667
↓ 2 callers
Function
binaryFormatErrorV2
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting_v2.go:607
↓ 2 callers
Function
cacheableAggregateSize
cacheableAggregateSize reports whether a size computed with the given sizer is safe to memoize on the value. Only totals from computations which verif
common/types/size_calc.go:141
↓ 2 callers
Method
calc
(_p int)
parser/gen/cel_parser.go:1613
↓ 2 callers
Method
calc
(_p int)
repl/parser/commands_parser.go:5571
↓ 2 callers
Method
checkAttempts
(recognizer antlr.Parser)
parser/parser.go:306
↓ 2 callers
Function
checkInvalidArgs
(meh cel.MacroExprFactory, funcName string, args []ast.Expr)
ext/math.go:913
↓ 2 callers
Function
checkLoadedASTDepth
checkLoadedASTDepth guards ASTs that enter through the proto conversion helpers (ParsedExprToAst / CheckedExprToAst) against nesting deeper than the p
cel/io.go:106
↓ 2 callers
Function
checkOptionArgs
(idx int, args []string)
repl/evaluator.go:1172
↓ 2 callers
Method
checkSelectField
(e, operand ast.Expr, field string, optional bool)
checker/checker.go:215
↓ 2 callers
Function
clauseForType
(argType ref.Type)
ext/formatting.go:39
↓ 2 callers
Function
collectEnumValues
collectEnumValues accumulates the enum values within an enum declaration.
common/types/pb/file.go:187
↓ 2 callers
Function
collectExtensions
(extensions protoreflect.ExtensionDescriptors, msgExtensionMap map[string][]protoreflect.ExtensionDescriptor)
common/types/pb/file.go:199
↓ 2 callers
Function
collectParamNames
(paramNames map[string]struct{}, arg *types.Type)
common/decls/decls.go:1168
↓ 2 callers
Method
combine
combine assembles two output expressions into a single output step.
policy/composer.go:468
↓ 2 callers
Function
compareIntDouble
(i Int, d Double)
common/types/compare.go:33
↓ 2 callers
Function
compareUintDouble
(u Uint, d Double)
common/types/compare.go:47
↓ 2 callers
Function
compareUintInt
(u Uint, i Int)
common/types/compare.go:65
← previous
next →
1,201–1,300 of 7,844, ranked by callers