MCPcopy Create free account

hub / github.com/cel-expr/cel-go / functions

Functions9,178 in github.com/cel-expr/cel-go

↓ 4 callersFunctionConstantToVal
ConstantToVal converts a protobuf Constant to a CEL-native ref.Val.
common/ast/conversion.go:664
↓ 4 callersFunctionCostObserver
CostObserver provides an observer that tracks runtime cost.
interpreter/runtimecost.go:99
↓ 4 callersFunctionCostTrackerFactory
CostTrackerFactory configures the factory method to generate a new cost-tracker per-evaluation.
interpreter/runtimecost.go:91
↓ 4 callersFunctionCustomDecoratorV2
CustomDecoratorV2 appends an InterpreterDecoratorV2 to the program.
cel/options.go:526
↓ 4 callersMethodDeclaredTypeName
DeclaredTypeName indicates the fully qualified and parameterized type-check type name.
common/types/types.go:351
↓ 4 callersMethodDescribeEnum
DescribeEnum takes a qualified enum name and returns an `EnumDescription` if it exists in the `pb.Db`.
common/types/pb/pb.go:226
↓ 4 callersFunctionDiffMessage
DiffMessage creates a diff dump message for test failures.
test/compare.go:29
↓ 4 callersFunctionDisableDeclaration
DisableDeclaration disables the function signatures, effectively removing them from the type-check environment while preserving the runtime bindings.
cel/decls.go:297
↓ 4 callersFunctionDisableDeclaration
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 callersFunctionDisableTypeGuards
DisableTypeGuards disables automatically generated function invocation guards on direct overload calls. Type guards remain on during dynamic dispatch
common/decls/decls.go:493
↓ 4 callersMethodDivide
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 callersFunctionEnableVariadicOperatorASTs
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 callersFunctionEntryExprToProto
EntryExprToProto converts an ast.EntryExpr to a protobuf CreateStruct entry
common/ast/conversion.go:315
↓ 4 callersFunctionEqual
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 callersFunctionEquivTypes
EquivTypes configures the type maps to use for validating type equivalence between two expressions or ASTs.
common/ast/equiv.go:29
↓ 4 callersMethodEvalZeroArity
EvalZeroArity records the cost for a 0-arity call expression.
common/cost/tracker.go:228
↓ 4 callersMethodExamples
Examples returns a list of string examples for the overload.
common/decls/decls.go:693
↓ 4 callersFunctionExceedsDepth
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 callersMethodFindFieldType
(messageType, fieldName string)
cel/options.go:1243
↓ 4 callersMethodFindFieldType
FindFieldType looks up a field by name and provides the type and accessors.
common/types/native.go:320
↓ 4 callersMethodFindStructFieldDescription
FindStructFieldDescription returns documentation for a field if available. Returns false if the field could not be found.
cel/fieldpaths.go:28
↓ 4 callersMethodFindType
(typeName string)
cel/options.go:1242
↓ 4 callersFunctionFormatCheckedType
FormatCheckedType converts a type message into a string representation.
checker/format.go:45
↓ 4 callersFunctionFromConfig
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 callersMethodFunction
Function returns the name of the function being called.
interpreter/async.go:58
↓ 4 callersFunctionFunctionDecls
FunctionDecls provides one or more fully formed function declarations to be added to the environment.
cel/decls.go:221
↓ 4 callersFunctionFunctionMatcher
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 callersMethodGetInt64Index
(int64)
common/types/list_test.go:1124
↓ 4 callersMethodGetLeadingDot
GetLeadingDot returns the leadingDot token.
repl/parser/commands_parser.go:3079
↓ 4 callersFunctionGetOrError
GetOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:730
↓ 4 callersMethodGetParams
GetParams returns the params rule contexts.
repl/parser/commands_parser.go:3447
↓ 4 callersMethodGetType
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 callersMethodGetTypeDescription
GetTypeDescription returns a TypeDescription for a qualified protobuf message type name declared within the .proto file.
common/types/pb/file.go:109
↓ 4 callersMethodGetTypeNames
GetTypeNames returns the list of all type names contained within the file.
common/types/pb/file.go:115
↓ 4 callersMethodHasOutput
HasOutput indicates whether the output field is set of the match.
policy/parser.go:365
↓ 4 callersMethodID
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 callersFunctionInitEmptyMemberContext
(p *MemberContext)
parser/gen/cel_parser.go:2145
↓ 4 callersFunctionInitEmptyMemberContext
(p *MemberContext)
repl/parser/commands_parser.go:6103
↓ 4 callersFunctionInsertMapKeyValue
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 callersFunctionIsBool
IsBool returns whether the input ref.Val or ref.Type is equal to BoolType.
common/types/bool.go:141
↓ 4 callersMethodIsDeclarationDisabled
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 callersMethodIsMessage
IsMessage returns true if the field is of message type.
common/types/pb/type.go:352
↓ 4 callersMethodIsReceiverStyle
IsReceiverStyle returns true if the macro matches a receiver style call.
parser/macro.go:112
↓ 4 callersFunctionJSONParseWithType
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 callersFunctionListAlloc
ListAlloc creates an expression representing list allocation cost with base cost and scaled element count.
common/cost/model.go:932
↓ 4 callersFunctionMacroDocs
MacroDocs configures a list of strings into a multiline description for the macro.
parser/macro.go:31
↓ 4 callersFunctionMacroExamples
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 callersMethodMacroKey
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 callersMethodMatches
Matches returns the ordered set of Match declarations.
policy/parser.go:252
↓ 4 callersFunctionMemoryLimit
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 callersFunctionMemoryTrackerFactory
MemoryTrackerFactory configures the factory method to generate a new memory-tracker per-evaluation.
interpreter/runtimememory.go:29
↓ 4 callersFunctionMemoryTrackerSizeCalculator
MemoryTrackerSizeCalculator overrides the SizeCalculator used to compute value sizes.
common/types/memory_tracker.go:55
↓ 4 callersFunctionMerge
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 callersMethodMultiplyByCost
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 callersMethodNestedRule
NestedRule returns the nested rule, if set.
policy/compiler.go:164
↓ 4 callersFunctionNewCompiler
NewCompiler creates a new compiler with a set of functional options.
tools/compiler/compiler.go:120
↓ 4 callersFunctionNewGlobalVarArgMacro
NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count.
parser/macro.go:73
↓ 4 callersFunctionNewInlineVariable
NewInlineVariable declares a variable name to be replaced by a checked expression.
cel/inlining.go:55
↓ 4 callersFunctionNewInliningOptimizer
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 callersFunctionNewLimit
NewLimit creates a new limit.
common/env/env.go:764
↓ 4 callersFunctionNewMutableList
NewMutableList creates a new mutable list whose internal state can be modified.
common/types/list.go:161
↓ 4 callersFunctionNewMutableMap
NewMutableMap constructs a mutable map from an adapter and a set of map values.
common/types/map.go:98
↓ 4 callersFunctionNewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count.
parser/macro.go:60
↓ 4 callersFunctionNewReceiverVarArgMacro
NewReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
parser/macro.go:85
↓ 4 callersFunctionNewRuleComposer
NewRuleComposer creates a rule composer which stitches together rules within a policy into a single CEL expression.
policy/composer.go:51
↓ 4 callersFunctionNewStringInterfaceMap
NewStringInterfaceMap returns a specialized traits.Mapper with string keys and interface values.
common/types/map.go:80
↓ 4 callersMethodNewStructField
NewStructField creates a new struct field initializer from the field name and value.
parser/macro.go:218
↓ 4 callersFunctionNewTextSourceWithLimit
NewTextSourceWithLimit creates a new Source from the input text string while enforcing a maximum code point count when needed.
common/source.go:79
↓ 4 callersMethodNextAction
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 callersMethodOutput
Output returns the output expression, or empty expression if output is not set.
policy/parser.go:370
↓ 4 callersMethodOutput
Output returns the compiled output expression associated with the match block, if set.
policy/compiler.go:159
↓ 4 callersMethodOutputType
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 callersMethodOverloadID
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 callersFunctionOverloadIsNonStrict
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 callersFunctionOverloadIsNonStrict
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 callersFunctionOverloadOperandTrait
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 callersFunctionParse
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 callersFunctionParseDescription
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 callersMethodPeak
Peak returns the largest single watermark observed, saturating at math.MaxUint32.
common/types/memory_tracker.go:164
↓ 4 callersFunctionPresenceTestHasCost
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 callersMethodPresenceTestHasCost
PresenceTestHasCost returns whether presence testing has a cost.
common/cost/tracker.go:178
↓ 4 callersMethodProcess
Process processes the command provided.
repl/evaluator.go:1356
↓ 4 callersFunctionProtoAsType
ProtoAsType converts a canonical CEL celpb.Type protobuf type to a CEL-native type representation.
common/types/types.go:718
↓ 4 callersMethodProtoKind
ProtoKind returns the protobuf reflected kind of the field.
common/types/pb/type.go:394
↓ 4 callersFunctionProtoToSourceInfo
ProtoToSourceInfo deserializes the protobuf into a native SourceInfo value.
common/ast/conversion.go:573
↓ 4 callersMethodPush
Push creates a new Scopes value which references the current Scope as its parent.
checker/scopes.go:42
↓ 4 callersMethodQualInt
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 callersMethodQualify
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 callersMethodReceive
Receive implements traits.Receiver.Receive.
common/types/duration.go:157
↓ 4 callersMethodRegisterDescriptor
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 callersMethodReportErrorAtID
ReportErrorAtID logs an error during parsing which is included in the issue set returned from a failed parse.
policy/parser.go:963
↓ 4 callersMethodResolve
Resolve returns the value of the Attribute given the current Activation.
interpreter/interpretable.go:112
↓ 4 callersMethodResolveFunction
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 callersMethodRule
Rule returns the rule value, or nil if the rule is not set.
policy/parser.go:396
↓ 4 callersFunctionSafeMultiplyByFactorTrunc
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 callersMethodSetAsyncObserver
SetAsyncObserver sets the observer for monitoring asynchronous function calls.
interpreter/frame.go:451
↓ 4 callersMethodSetMacroCall
SetMacroCall records a macro call at a specific location.
common/ast/ast.go:335
↓ 4 callersMethodSetMetadata
SetMetadata updates a named metadata key with the given value.
policy/parser.go:143
↓ 4 callersFunctionSingletonBinaryBinding
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 callersMethodSize
Size returns the actual runtime size of a value.
common/cost/model.go:1516
← previousnext →901–1,000 of 9,178, ranked by callers