MCPcopy Create free account

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

Functions7,240 in github.com/cel-expr/cel-go

↓ 2 callersFunctionEncodersVersion
EncodersVersion sets the library version for encoder extensions.
ext/encoders.go:78
↓ 2 callersMethodEntries
()
common/ast/expr.go:674
↓ 2 callersMethodEnum
()
test/proto3pb/test_all_types.pb.go:52
↓ 2 callersFunctionErrorReportingLimit
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:78
↓ 2 callersMethodEscapeIdent
()
parser/gen/cel_parser.go:5252
↓ 2 callersMethodEscapeIdent
()
repl/parser/commands_parser.go:9210
↓ 2 callersMethodExprList
()
parser/gen/cel_parser.go:3962
↓ 2 callersMethodExprList
()
repl/parser/commands_parser.go:7920
↓ 2 callersFunctionExprValueAsAlphaProto
ExprValueAsAlphaProto converts between ref.Val and google.api.expr.v1alpha1.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:137
↓ 2 callersFunctionExprValueAsProto
ExprValueAsProto converts between ref.Val and cel.expr.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:149
↓ 2 callersMethodExpression
Expression returns the variable expression.
policy/parser.go:283
↓ 2 callersMethodExtendEnv
ExtendEnv auguments the context's environment with the additional options.
cel/optimizer.go:250
↓ 2 callersMethodFileDescriptions
FileDescriptions returns the set of file descriptions associated with this db.
common/types/pb/pb.go:162
↓ 2 callersMethodFileDescriptor
FileDescriptor returns the proto file descriptor associated with the file representation.
common/types/pb/file.go:85
↓ 2 callersFunctionFind
Find the internal function name for an operator, if the input text is one.
common/operators/operators.go:110
↓ 2 callersMethodFind
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:820
↓ 2 callersMethodFindFunction
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:131
↓ 2 callersFunctionFindReverseBinaryOperator
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 callersMethodFold
Fold calls the FoldEntry method for each (key, value) pair in the map.
common/types/map.go:129
↓ 2 callersFunctionFormatCELType
FormatCELType formats a cel.Type value to a string representation. The type formatting is identical to FormatType.
cel/env.go:128
↓ 2 callersFunctionFunctionDocs
FunctionDocs provides a general usage documentation for the function. Use OverloadExamples to provide example usage instructions for specific overloa
cel/decls.go:243
↓ 2 callersMethodGetBb
()
test/proto3pb/test_all_types.pb.go:829
↓ 2 callersMethodGetCols
GetCols returns the cols token list.
repl/parser/commands_parser.go:8718
↓ 2 callersMethodGetElems
GetElems returns the elems rule context list.
repl/parser/commands_parser.go:7994
↓ 2 callersMethodGetEnumDescription
GetEnumDescription returns an EnumDescription for a qualified enum value name declared within the .proto file.
common/types/pb/file.go:91
↓ 2 callersMethodGetFields
GetFields returns the fields rule context list.
repl/parser/commands_parser.go:8229
↓ 2 callersMethodGetLocation
(exprID int64)
parser/parser_test.go:2111
↓ 2 callersMethodGetNestedType
()
test/proto3pb/test_all_types.pb.go:443
↓ 2 callersMethodGetNestedType
()
test/proto2pb/test_all_types.pb.go:488
↓ 2 callersMethodGetSign
()
parser/gen/cel_parser.go:5899
↓ 2 callersMethodGetStopLocation
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:389
↓ 2 callersMethodHasExplanation
HasExplanation indicates whether the explanation field is set of the match.
policy/parser.go:336
↓ 2 callersMethodHasExtension
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:445
↓ 2 callersMethodHasFunction
HasFunction returns whether a specific function has been configured in the environment
cel/env.go:618
↓ 2 callersFunctionHeights
Heights computes the heights of all AST expressions and returns a map from expression id to height.
common/ast/ast.go:186
↓ 2 callersMethodIdent
Ident creates an identifier Expr value.
cel/macro.go:121
↓ 2 callersFunctionIncludeOverloads
IncludeOverloads defines an OverloadSelector which allow-lists a set of overloads by their ids.
common/decls/decls.go:202
↓ 2 callersFunctionInitEmptyEscapeIdentContext
(p *EscapeIdentContext)
parser/gen/cel_parser.go:5122
↓ 2 callersFunctionInitEmptyEscapeIdentContext
(p *EscapeIdentContext)
repl/parser/commands_parser.go:9080
↓ 2 callersMethodInsert
Insert a key, value pair into the map, returning the map if the insert is successful and an error if key already exists in the mutable map.
common/types/traits/mapper.go:44
↓ 2 callersFunctionInterruptableEval
InterruptableEval annotates comprehension loops with information that indicates they should check the `#interrupted` state within a custom Activation.
interpreter/interpreter.go:186
↓ 2 callersMethodIsChecked
IsChecked returns whether the AST is type-checked.
common/ast/ast.go:103
↓ 2 callersMethodIsList
IsList returns true if the YAML node is a list.
policy/yaml.go:25
↓ 2 callersMethodIsMap
IsMap returns true if the YAML node is a map.
policy/yaml.go:43
↓ 2 callersMethodIsMemberFunction
()
common/ast/expr.go:486
↓ 2 callersMethodIsMemberFunction
IsMemberFunction indicates whether the overload is a member function
common/decls/decls.go:660
↓ 2 callersMethodIsNumber
IsNumber returns true if the YAML node is a number.
policy/yaml.go:77
↓ 2 callersMethodIsOneof
IsOneof returns true if the field is declared within a oneof block.
common/types/pb/type.go:337
↓ 2 callersMethodJSONFieldNames
JSONFieldNames indicates whether the database is configured for proto field accesses by JSON names.
common/types/pb/pb.go:121
↓ 2 callersMethodLiteral
()
parser/gen/cel_parser.go:5941
↓ 2 callersMethodLiteralInt
LiteralInt creates an Expr value for an int literal.
cel/macro.go:71
↓ 2 callersFunctionMacroDocs
MacroDocs configures a list of strings into a multiline description for the macro.
cel/macro.go:149
↓ 2 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
cel/macro.go:155
↓ 2 callersFunctionMakeMap
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 callersFunctionMathVersion
MathVersion sets the library version for math extensions.
ext/math.go:397
↓ 2 callersFunctionMaxNestedExpressions
MaxNestedExpressions limits the number of variable and nested rule expressions during compilation. Defaults to 100 if not set.
policy/compiler.go:187
↓ 2 callersMethodMetadataKeys
MetadataKeys returns a list of metadata keys set on the policy.
policy/parser.go:96
↓ 2 callersMethodMultiplyByCost
MultiplyByCost multiplies by the cost and returns the product. If multiply would result in an uint64 overflow, the result is math.MaxUint64.
checker/cost.go:143
↓ 2 callersMethodName
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 callersFunctionNavigateExpr
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 callersFunctionNewCall
NewCall creates a new call Interpretable.
interpreter/interpretable.go:682
↓ 2 callersMethodNewComprehensionTwoVar
(id int64, iterRange Expr, iterVar, iterVar2, accuVar string, accuInit, loopCond, loopStep, result Expr)
common/ast/factory.go:136
↓ 2 callersFunctionNewCostTracker
NewCostTracker creates a new CostTracker with a given estimator and a set of functional CostTrackerOption values.
interpreter/runtimecost.go:196
↓ 2 callersFunctionNewError
NewError creates an error associated with an expression id with the given message at the given location.
common/error.go:24
↓ 2 callersFunctionNewFieldDoc
NewFieldDoc creates a new Doc struct for documenting a struct field.
common/doc.go:169
↓ 2 callersFunctionNewFunctionDoc
NewFunctionDoc creates a new Doc struct for documenting a function.
common/doc.go:131
↓ 2 callersFunctionNewGlobalMacro
NewGlobalMacro creates a Macro for a global function with the specified arg count. Deprecated: use GlobalMacro
cel/macro.go:182
↓ 2 callersMethodNewHasMacro
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 callersMethodNewIdent
(id int64, name string)
common/ast/factory.go:151
↓ 2 callersFunctionNewInfoSource
NewInfoSource creates a new Source from a SourceInfo.
common/source.go:112
↓ 2 callersFunctionNewListType
NewListType generates a new list with elements of a certain type.
checker/decls/decls.go:151
↓ 2 callersFunctionNewMacroDoc
NewMacroDoc creates a new Doc struct for documenting a macro.
common/doc.go:151
↓ 2 callersFunctionNewObjectTypeValue
NewObjectTypeValue creates a type reference to an externally defined type. Deprecated: use cel.ObjectType(typeName)
common/types/types.go:562
↓ 2 callersFunctionNewOverloadDoc
NewOverloadDoc creates a new Doc struct for a function example.
common/doc.go:141
↓ 2 callersFunctionNewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count. Deprecated: use ReceiverMacro
cel/macro.go:190
↓ 2 callersFunctionNewStringInterfaceMap
NewStringInterfaceMap returns a specialized traits.Mapper with string keys and interface values.
common/types/map.go:71
↓ 2 callersFunctionNewTest
NewTest creates a new Test with the provided name, input and result matcher.
tools/celtest/test_runner.go:386
↓ 2 callersFunctionNewVariableDoc
NewVariableDoc creates a new Doc struct specifically for documenting a variable.
common/doc.go:121
↓ 2 callersMethodNodeID
()
interpreter/interpreter_test.go:1796
↓ 2 callersMethodOffsetLocation
OffsetLocation translates a character offset to a Location, or false if the conversion was not feasible.
common/source.go:47
↓ 2 callersMethodOptExpr
()
parser/gen/cel_parser.go:5429
↓ 2 callersMethodOptExpr
()
repl/parser/commands_parser.go:9387
↓ 2 callersFunctionOptimizeWithSource
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 callersMethodOption
Option returns the cel.EnvOption that should be applied to the environment.
repl/evaluator.go:329
↓ 2 callersFunctionParseDescriptions
ParseDescriptions splits a documentation string into multiple multi-line description sections, using blank lines as delimiters.
common/doc.go:94
↓ 2 callersMethodParseRule
ParseRule will parse the current yaml node as though it is the entry point to a rule.
policy/parser.go:757
↓ 2 callersFunctionParsedExprToAstWithSource
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:80
↓ 2 callersFunctionParserExpressionSizeLimit
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:949
↓ 2 callersFunctionParserRecursionLimit
ParserRecursionLimit adjusts the AST depth the parser will tolerate. Defaults defined in the parser package.
cel/options.go:937
↓ 2 callersFunctionPreOrderVisit
PreOrderVisit walks the expression graph and calls the visitor in pre-order (top-down).
common/ast/navigable.go:180
↓ 2 callersFunctionPrecedence
Precedence returns the operator precedence, where the higher the number indicates higher precedence operations.
common/operators/operators.go:141
↓ 2 callersFunctionPresenceTestHasCost
PresenceTestHasCost determines whether presence testing has a cost of one or zero. Defaults to presence test has a cost of one.
checker/cost.go:259
↓ 2 callersMethodPrimary
()
parser/gen/cel_parser.go:3392
↓ 2 callersFunctionPrint
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 callersFunctionProtoAsDeclaration
ProtoAsDeclaration converts a canonical celpb.Decl value describing a variable or function into an EnvOption.
cel/decls.go:387
↓ 2 callersFunctionProtoConstantAsVal
ProtoConstantAsVal converts a canonical celpb.Constant protobuf to a CEL-native ref.Val.
common/ast/conversion.go:681
↓ 2 callersMethodProtoReflect
()
test/proto3pb/test_all_types.pb.go:666
↓ 2 callersFunctionProtoToEntryExpr
ProtoToEntryExpr converts a protobuf struct/map entry to an ast.EntryExpr
common/ast/conversion.go:114
↓ 2 callersFunctionProtoToReferenceInfo
ProtoToReferenceInfo converts a protobuf Reference into a CEL-native ReferenceInfo instance.
common/ast/conversion.go:625
↓ 2 callersFunctionProtosVersion
ProtosVersion sets the library version for extensions for protobuf utilities.
ext/protos.go:66
← previousnext →1,001–1,100 of 7,240, ranked by callers