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
Method
Entries
()
common/ast/expr.go:674
↓ 2 callers
Method
Enum
()
test/proto3pb/test_all_types.pb.go:52
↓ 2 callers
Function
ErrorReportingLimit
ErrorReportingLimit limits the number of syntax error reports before terminating parsing. The limit must be at least 1. If unset, the limit will be 1
parser/options.go:79
↓ 2 callers
Method
EscapeIdent
()
parser/gen/cel_parser.go:5252
↓ 2 callers
Method
EscapeIdent
()
repl/parser/commands_parser.go:9210
↓ 2 callers
Method
ExprList
()
parser/gen/cel_parser.go:3962
↓ 2 callers
Method
ExprList
()
repl/parser/commands_parser.go:7920
↓ 2 callers
Function
ExprValueAsAlphaProto
ExprValueAsAlphaProto converts between ref.Val and google.api.expr.v1alpha1.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:161
↓ 2 callers
Function
ExprValueAsProto
ExprValueAsProto converts between ref.Val and cel.expr.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:173
↓ 2 callers
Method
Expression
Expression returns the variable expression.
policy/parser.go:325
↓ 2 callers
Function
ExpressionNodeLimit
ExpressionNodeLimit adjusts the maximum number of expression nodes permitted during parsing and checking, including nodes created by macro expansion.
cel/options.go:1018
↓ 2 callers
Method
ExtendEnv
ExtendEnv auguments the context's environment with the additional options.
cel/optimizer.go:250
↓ 2 callers
Method
FileDescriptions
FileDescriptions returns the set of file descriptions associated with this db.
common/types/pb/pb.go:162
↓ 2 callers
Method
FileDescriptor
FileDescriptor returns the proto file descriptor associated with the file representation.
common/types/pb/file.go:85
↓ 2 callers
Function
Find
Find the internal function name for an operator, if the input text is one.
common/operators/operators.go:110
↓ 2 callers
Method
Find
Find returns whether the protoreflect.Map contains the input key. If the key is not found the function returns (nil, false).
common/types/map.go:841
↓ 2 callers
Method
FindFunction
FindFunction finds the first function Decl with a matching name in Scopes. The search is performed from innermost to outermost. Returns nil if no such
checker/scopes.go:119
↓ 2 callers
Function
FindReverseBinaryOperator
FindReverseBinaryOperator returns the unmangled, text representation of a binary operator. If the symbol does refer to an operator, but the operator
common/operators/operators.go:128
↓ 2 callers
Method
FindStructFieldType
FindStructFieldType returns the field type for a checked type value. Returns false if the field could not be found.
common/types/provider.go:343
↓ 2 callers
Method
FindStructType
FindStructType returns the Type give a qualified type name. For historical reasons, only struct types are expected to be returned through this method
common/types/provider.go:425
↓ 2 callers
Function
FormatCELType
FormatCELType formats a cel.Type value to a string representation. The type formatting is identical to FormatType.
cel/env.go:133
↓ 2 callers
Method
Function
Function returns the name of the function being invoked.
interpreter/async.go:80
↓ 2 callers
Method
GetBb
()
test/proto3pb/test_all_types.pb.go:829
↓ 2 callers
Method
GetCols
GetCols returns the cols token list.
repl/parser/commands_parser.go:8718
↓ 2 callers
Method
GetElems
GetElems returns the elems rule context list.
repl/parser/commands_parser.go:7994
↓ 2 callers
Method
GetEnumDescription
GetEnumDescription returns an EnumDescription for a qualified enum value name declared within the .proto file.
common/types/pb/file.go:91
↓ 2 callers
Method
GetFields
GetFields returns the fields rule context list.
repl/parser/commands_parser.go:8229
↓ 2 callers
Method
GetLocation
(exprID int64)
parser/parser_test.go:2112
↓ 2 callers
Method
GetNestedType
()
test/proto3pb/test_all_types.pb.go:443
↓ 2 callers
Method
GetNestedType
()
test/proto2pb/test_all_types.pb.go:488
↓ 2 callers
Method
GetSign
()
parser/gen/cel_parser.go:5899
↓ 2 callers
Method
GetStopLocation
GetStopLocation calculates the human-readable 1-based line and 0-based column of the last character for the expression node at the given id. If the S
common/ast/ast.go:397
↓ 2 callers
Method
HasExplanation
HasExplanation indicates whether the explanation field is set of the match.
policy/parser.go:378
↓ 2 callers
Method
HasExtension
HasExtension returns whether the source info contains the extension which satisfies the minimum version requirement. For an extension to be considere
common/ast/ast.go:453
↓ 2 callers
Method
HasFunction
HasFunction returns whether a specific function has been configured in the environment
cel/env.go:660
↓ 2 callers
Method
HasTrait
HasTrait implements the ref.Type interface method.
common/types/native.go:161
↓ 2 callers
Function
Heights
Heights computes the heights of all AST expressions and returns a map from expression id to height.
common/ast/ast.go:194
↓ 2 callers
Method
ID
ID implements the Interpretable interface method.
interpreter/async.go:75
↓ 2 callers
Method
Ident
Ident creates an identifier Expr value.
cel/macro.go:121
↓ 2 callers
Function
IncludeOverloads
IncludeOverloads defines an OverloadSelector which allow-lists a set of overloads by their ids.
common/decls/decls.go:208
↓ 2 callers
Function
InitEmptyEscapeIdentContext
(p *EscapeIdentContext)
parser/gen/cel_parser.go:5122
↓ 2 callers
Function
InitEmptyEscapeIdentContext
(p *EscapeIdentContext)
repl/parser/commands_parser.go:9080
↓ 2 callers
Function
InterruptableEval
InterruptableEval annotates comprehension loops with information that indicates they should check the `#interrupted` state within a custom Activation.
interpreter/interpreter.go:194
↓ 2 callers
Method
IsChecked
IsChecked returns whether the AST is type-checked.
common/ast/ast.go:103
↓ 2 callers
Method
IsList
IsList returns true if the YAML node is a list.
policy/yaml.go:25
↓ 2 callers
Method
IsMap
IsMap returns true if the YAML node is a map.
policy/yaml.go:43
↓ 2 callers
Method
IsMemberFunction
()
common/ast/expr.go:486
↓ 2 callers
Method
IsMemberFunction
IsMemberFunction indicates whether the overload is a member function
common/decls/decls.go:704
↓ 2 callers
Method
IsNumber
IsNumber returns true if the YAML node is a number.
policy/yaml.go:77
↓ 2 callers
Method
IsOneof
IsOneof returns true if the field is declared within a oneof block.
common/types/pb/type.go:337
↓ 2 callers
Function
IsTypeConversionFunction
IsTypeConversionFunction returns whether the input function is a standard library type conversion function.
common/overloads/overloads.go:310
↓ 2 callers
Method
IsValidAt
IsValidAt checks whether the token time claims (iat, nbf, exp) are valid at the given reference time with clock leeway tolerance.
ext/security/jwt/jwt.go:258
↓ 2 callers
Method
JSONFieldNames
JSONFieldNames indicates whether the database is configured for proto field accesses by JSON names.
common/types/pb/pb.go:121
↓ 2 callers
Method
Literal
()
parser/gen/cel_parser.go:5941
↓ 2 callers
Method
LiteralInt
LiteralInt creates an Expr value for an int literal.
cel/macro.go:71
↓ 2 callers
Function
MacroDocs
MacroDocs configures a list of strings into a multiline description for the macro.
cel/macro.go:149
↓ 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
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
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:699
↓ 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
NewCostTracker
NewCostTracker creates a new CostTracker with a given estimator and a set of functional CostTrackerOption values.
interpreter/runtimecost.go:198
↓ 2 callers
Function
NewError
NewError creates an error associated with an expression id with the given message at the given location.
common/error.go:24
↓ 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:436
↓ 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
NewObjectTypeValue
NewObjectTypeValue creates a type reference to an externally defined type. Deprecated: use cel.ObjectType(typeName)
common/types/types.go:562
↓ 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:153
↓ 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
NewVariableDoc
NewVariableDoc creates a new Doc struct specifically for documenting a variable.
common/doc.go:121
↓ 2 callers
Method
NodeID
()
interpreter/interpreter_test.go:1983
↓ 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:66
↓ 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:85
↓ 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
ParseTimestamp
ParseTimestamp attempts to parse a timestamp from various supported types and representations: - time.Time, Timestamp, *timestamppb.Timestamp - RFC 33
common/types/timestamp.go:272
↓ 2 callers
Function
ParsedExprToAst
ParsedExprToAst converts a parsed expression proto message to an Ast.
cel/io.go:74
↓ 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:1011
↓ 2 callers
Function
ParserRecursionLimit
ParserRecursionLimit adjusts the AST depth the parser will tolerate. Defaults defined in the parser package.
cel/options.go:999
↓ 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
← previous
next →
1,101–1,200 of 7,844, ranked by callers