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
↓ 4 callers
Function
ConstantToVal
ConstantToVal converts a protobuf Constant to a CEL-native ref.Val.
common/ast/conversion.go:664
↓ 4 callers
Function
CostObserver
CostObserver provides an observer that tracks runtime cost.
interpreter/runtimecost.go:99
↓ 4 callers
Function
CostTrackerFactory
CostTrackerFactory configures the factory method to generate a new cost-tracker per-evaluation.
interpreter/runtimecost.go:91
↓ 4 callers
Function
CustomDecoratorV2
CustomDecoratorV2 appends an InterpreterDecoratorV2 to the program.
cel/options.go:526
↓ 4 callers
Method
DeclaredTypeName
DeclaredTypeName indicates the fully qualified and parameterized type-check type name.
common/types/types.go:351
↓ 4 callers
Method
DescribeEnum
DescribeEnum takes a qualified enum name and returns an `EnumDescription` if it exists in the `pb.Db`.
common/types/pb/pb.go:226
↓ 4 callers
Function
DiffMessage
DiffMessage creates a diff dump message for test failures.
test/compare.go:29
↓ 4 callers
Function
DisableDeclaration
DisableDeclaration disables the function signatures, effectively removing them from the type-check environment while preserving the runtime bindings.
cel/decls.go:297
↓ 4 callers
Function
DisableDeclaration
DisableDeclaration indicates that the function declaration should be disabled, but the runtime function binding should be provided. Marking a function
common/decls/decls.go:503
↓ 4 callers
Function
DisableTypeGuards
DisableTypeGuards disables automatically generated function invocation guards on direct overload calls. Type guards remain on during dynamic dispatch
common/decls/decls.go:493
↓ 4 callers
Method
Divide
Divide returns the result of dividing the current value by the input denominator. A denominator value of zero results in an error.
common/types/traits/math.go:33
↓ 4 callers
Function
EnableVariadicOperatorASTs
EnableVariadicOperatorASTs enables a compact representation of chained like-kind commutative operators. e.g. `a || b || c || d` -> `call(op='||', args
parser/options.go:173
↓ 4 callers
Function
EntryExprToProto
EntryExprToProto converts an ast.EntryExpr to a protobuf CreateStruct entry
common/ast/conversion.go:315
↓ 4 callers
Function
Equal
Equal returns whether two proto.Message instances are equal using the following criteria: - Messages must share the same instance of the type descrip
common/types/pb/equal.go:45
↓ 4 callers
Function
EquivTypes
EquivTypes configures the type maps to use for validating type equivalence between two expressions or ASTs.
common/ast/equiv.go:29
↓ 4 callers
Method
EvalZeroArity
EvalZeroArity records the cost for a 0-arity call expression.
common/cost/tracker.go:228
↓ 4 callers
Method
Examples
Examples returns a list of string examples for the overload.
common/decls/decls.go:693
↓ 4 callers
Function
ExceedsDepth
ExceedsDepth determines whether the AST contains expressions nested deeper than the specified maxDepth. The root expression has depth 0, so a maxDepth
common/ast/navigable.go:191
↓ 4 callers
Method
FindFieldType
(messageType, fieldName string)
cel/options.go:1243
↓ 4 callers
Method
FindFieldType
FindFieldType looks up a field by name and provides the type and accessors.
common/types/native.go:320
↓ 4 callers
Method
FindStructFieldDescription
FindStructFieldDescription returns documentation for a field if available. Returns false if the field could not be found.
cel/fieldpaths.go:28
↓ 4 callers
Method
FindType
(typeName string)
cel/options.go:1242
↓ 4 callers
Function
FormatCheckedType
FormatCheckedType converts a type message into a string representation.
checker/format.go:45
↓ 4 callers
Function
FromConfig
FromConfig configures a CEL policy environment from a config file. This option supports all extensions supported by policies, whereas the cel.FromCon
policy/config.go:28
↓ 4 callers
Method
Function
Function returns the name of the function being called.
interpreter/async.go:58
↓ 4 callers
Function
FunctionDecls
FunctionDecls provides one or more fully formed function declarations to be added to the environment.
cel/decls.go:221
↓ 4 callers
Function
FunctionMatcher
FunctionMatcher returns an ExprMatcher which will match NavigableExpr nodes of CallKind type whose function name is equal to `funcName`.
common/ast/navigable.go:86
↓ 4 callers
Method
GetInt64Index
(int64)
common/types/list_test.go:1124
↓ 4 callers
Method
GetLeadingDot
GetLeadingDot returns the leadingDot token.
repl/parser/commands_parser.go:3079
↓ 4 callers
Function
GetOrError
GetOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:730
↓ 4 callers
Method
GetParams
GetParams returns the params rule contexts.
repl/parser/commands_parser.go:3447
↓ 4 callers
Method
GetType
GetType returns the variable type description. Note, if both the embedded TypeDesc and the field Type are non-nil, the embedded TypeDesc will take pr
common/env/env.go:291
↓ 4 callers
Method
GetTypeDescription
GetTypeDescription returns a TypeDescription for a qualified protobuf message type name declared within the .proto file.
common/types/pb/file.go:109
↓ 4 callers
Method
GetTypeNames
GetTypeNames returns the list of all type names contained within the file.
common/types/pb/file.go:115
↓ 4 callers
Method
HasOutput
HasOutput indicates whether the output field is set of the match.
policy/parser.go:365
↓ 4 callers
Method
ID
ID mirrors the overload signature and provides a unique id which may be referenced within the type-checker and interpreter to optimize performance. T
common/decls/decls.go:707
↓ 4 callers
Function
InitEmptyMemberContext
(p *MemberContext)
parser/gen/cel_parser.go:2145
↓ 4 callers
Function
InitEmptyMemberContext
(p *MemberContext)
repl/parser/commands_parser.go:6103
↓ 4 callers
Function
InsertMapKeyValue
InsertMapKeyValue inserts a key, value pair into the target map if the target map does not already contain the given key. If the map is mutable, it i
common/types/map.go:1496
↓ 4 callers
Function
IsBool
IsBool returns whether the input ref.Val or ref.Type is equal to BoolType.
common/types/bool.go:141
↓ 4 callers
Method
IsDeclarationDisabled
IsDeclarationDisabled indicates that the function implementation should be added to the dispatcher, but the declaration should not be exposed for use
common/decls/decls.go:134
↓ 4 callers
Method
IsMessage
IsMessage returns true if the field is of message type.
common/types/pb/type.go:352
↓ 4 callers
Method
IsReceiverStyle
IsReceiverStyle returns true if the macro matches a receiver style call.
parser/macro.go:112
↓ 4 callers
Function
JSONParseWithType
JSONParseWithType parses a JSON string into a typed CEL ref.Val conforming to targetType. If adapter is nil, types.DefaultTypeAdapter is used. If prov
ext/encoders.go:357
↓ 4 callers
Function
ListAlloc
ListAlloc creates an expression representing list allocation cost with base cost and scaled element count.
common/cost/model.go:932
↓ 4 callers
Function
MacroDocs
MacroDocs configures a list of strings into a multiline description for the macro.
parser/macro.go:31
↓ 4 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
parser/macro.go:40
↓ 4 callers
Method
MacroKey
MacroKey returns the macro signatures accepted by this macro. Format: `<function>:<arg-count>:<is-receiver>`. When the macros is a var-arg style mac
parser/macro.go:119
↓ 4 callers
Method
Matches
Matches returns the ordered set of Match declarations.
policy/parser.go:252
↓ 4 callers
Function
MemoryLimit
MemoryLimit enables memory tracking and configures program evaluation to exit early with a "memory limit exceeded" error if the peak tracked memory ex
cel/options.go:961
↓ 4 callers
Function
MemoryTrackerFactory
MemoryTrackerFactory configures the factory method to generate a new memory-tracker per-evaluation.
interpreter/runtimememory.go:29
↓ 4 callers
Function
MemoryTrackerSizeCalculator
MemoryTrackerSizeCalculator overrides the SizeCalculator used to compute value sizes.
common/types/memory_tracker.go:55
↓ 4 callers
Function
Merge
Merge will copy the source proto message into the destination, or error if the merge cannot be completed. Unlike the proto.Merge, this method will fa
common/types/pb/pb.go:66
↓ 4 callers
Method
MultiplyByCost
MultiplyByCost multiplies by the cost and returns the product. If multiply would result in an uint64 overflow, the result is math.MaxUint64.
common/cost/cost.go:273
↓ 4 callers
Method
NestedRule
NestedRule returns the nested rule, if set.
policy/compiler.go:164
↓ 4 callers
Function
NewCompiler
NewCompiler creates a new compiler with a set of functional options.
tools/compiler/compiler.go:120
↓ 4 callers
Function
NewGlobalVarArgMacro
NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count.
parser/macro.go:73
↓ 4 callers
Function
NewInlineVariable
NewInlineVariable declares a variable name to be replaced by a checked expression.
cel/inlining.go:55
↓ 4 callers
Function
NewInliningOptimizer
NewInliningOptimizer creates and optimizer which replaces variables with expression definitions. If a variable occurs one time, the variable is repla
cel/inlining.go:70
↓ 4 callers
Function
NewLimit
NewLimit creates a new limit.
common/env/env.go:764
↓ 4 callers
Function
NewMutableList
NewMutableList creates a new mutable list whose internal state can be modified.
common/types/list.go:161
↓ 4 callers
Function
NewMutableMap
NewMutableMap constructs a mutable map from an adapter and a set of map values.
common/types/map.go:98
↓ 4 callers
Function
NewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count.
parser/macro.go:60
↓ 4 callers
Function
NewReceiverVarArgMacro
NewReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
parser/macro.go:85
↓ 4 callers
Function
NewRuleComposer
NewRuleComposer creates a rule composer which stitches together rules within a policy into a single CEL expression.
policy/composer.go:51
↓ 4 callers
Function
NewStringInterfaceMap
NewStringInterfaceMap returns a specialized traits.Mapper with string keys and interface values.
common/types/map.go:80
↓ 4 callers
Method
NewStructField
NewStructField creates a new struct field initializer from the field name and value.
parser/macro.go:218
↓ 4 callers
Function
NewTextSourceWithLimit
NewTextSourceWithLimit creates a new Source from the input text string while enforcing a maximum code point count when needed.
common/source.go:79
↓ 4 callers
Method
NextAction
NextAction evaluates the current state of asynchronous evaluation and determines the next step. - completed: The set of completions accumulated in th
cel/async/async.go:65
↓ 4 callers
Method
Output
Output returns the output expression, or empty expression if output is not set.
policy/parser.go:370
↓ 4 callers
Method
Output
Output returns the compiled output expression associated with the match block, if set.
policy/compiler.go:159
↓ 4 callers
Method
OutputType
OutputType returns the output type of the first match clause as all match clauses are validated for agreement prior to construction fo the CompiledRul
policy/compiler.go:67
↓ 4 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
↓ 4 callers
Function
OverloadIsNonStrict
OverloadIsNonStrict enables the function to be called with error and unknown argument values. Note: do not use this option unless absoluately necessa
cel/decls.go:385
↓ 4 callers
Function
OverloadIsNonStrict
OverloadIsNonStrict enables the function to be called with error and unknown argument values. Note: do not use this option unless absoluately necessa
common/decls/decls.go:1099
↓ 4 callers
Function
OverloadOperandTrait
OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be successfully invoked.
common/decls/decls.go:1108
↓ 4 callers
Function
Parse
Parse parses a repl command line into a command object. This provides the normalized command name plus any parsed parameters (e.g. variable names in l
repl/commands.go:181
↓ 4 callers
Function
ParseDescription
ParseDescription takes a single string containing newline characters and splits it into a multiline description. All empty lines will be skipped. Ret
common/doc.go:76
↓ 4 callers
Method
Peak
Peak returns the largest single watermark observed, saturating at math.MaxUint32.
common/types/memory_tracker.go:164
↓ 4 callers
Function
PresenceTestHasCost
PresenceTestHasCost determines whether presence testing has a cost of one or zero. Defaults to presence test has a cost of one.
common/cost/estimator.go:120
↓ 4 callers
Method
PresenceTestHasCost
PresenceTestHasCost returns whether presence testing has a cost.
common/cost/tracker.go:178
↓ 4 callers
Method
Process
Process processes the command provided.
repl/evaluator.go:1356
↓ 4 callers
Function
ProtoAsType
ProtoAsType converts a canonical CEL celpb.Type protobuf type to a CEL-native type representation.
common/types/types.go:718
↓ 4 callers
Method
ProtoKind
ProtoKind returns the protobuf reflected kind of the field.
common/types/pb/type.go:394
↓ 4 callers
Function
ProtoToSourceInfo
ProtoToSourceInfo deserializes the protobuf into a native SourceInfo value.
common/ast/conversion.go:573
↓ 4 callers
Method
Push
Push creates a new Scopes value which references the current Scope as its parent.
checker/scopes.go:42
↓ 4 callers
Method
QualInt
QualInt adds an int qualifier pattern to the AttributePattern. The index may be either a map or list index.
interpreter/attribute_patterns.go:71
↓ 4 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
↓ 4 callers
Method
Receive
Receive implements traits.Receiver.Receive.
common/types/duration.go:157
↓ 4 callers
Method
RegisterDescriptor
RegisterDescriptor produces a `FileDescription` from a `FileDescriptor` and registers the message and enum types into the `pb.Db`.
common/types/pb/pb.go:168
↓ 4 callers
Method
ReportErrorAtID
ReportErrorAtID logs an error during parsing which is included in the issue set returned from a failed parse.
policy/parser.go:963
↓ 4 callers
Method
Resolve
Resolve returns the value of the Attribute given the current Activation.
interpreter/interpretable.go:112
↓ 4 callers
Method
ResolveFunction
ResolveFunction returns the implementation of the late-bound function by qualified name, or false if the function could not be found.
interpreter/activation.go:275
↓ 4 callers
Method
Rule
Rule returns the rule value, or nil if the rule is not set.
policy/parser.go:396
↓ 4 callers
Function
SafeMultiplyByFactorTrunc
SafeMultiplyByFactorTrunc multiplies a value by a cost factor and returns the integer part of the result, truncated, saturating at math.MaxUint64. Th
common/cost/cost.go:159
↓ 4 callers
Method
SetAsyncObserver
SetAsyncObserver sets the observer for monitoring asynchronous function calls.
interpreter/frame.go:451
↓ 4 callers
Method
SetMacroCall
SetMacroCall records a macro call at a specific location.
common/ast/ast.go:335
↓ 4 callers
Method
SetMetadata
SetMetadata updates a named metadata key with the given value.
policy/parser.go:143
↓ 4 callers
Function
SingletonBinaryBinding
SingletonBinaryBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is e
cel/decls.go:273
↓ 4 callers
Method
Size
Size returns the actual runtime size of a value.
common/cost/model.go:1516
← previous
next →
901–1,000 of 9,178, ranked by callers