MCPcopy Create free account

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

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

↓ 3 callersMethodCatalog
Catalog returns the symbol catalog configured on the environment, or nil if none is configured.
checker/env.go:119
↓ 3 callersMethodCheckInterrupt
CheckInterrupt returns whether the evaluation has been interrupted.
interpreter/frame.go:352
↓ 3 callersFunctionCheckedExprToAstWithSource
CheckedExprToAstWithSource converts a checked expression proto message to an Ast, using the provided Source as the textual contents. In general the s
cel/io.go:50
↓ 3 callersMethodClone
Clone creates a copy of the NativeType with optional configuration overrides.
common/types/native.go:187
↓ 3 callersFunctionCollectFileDescriptorSet
CollectFileDescriptorSet builds a file descriptor set associated with the file where the input message is declared.
common/types/pb/pb.go:245
↓ 3 callersMethodCompose
Compose stitches together a set of expressions within a CompiledRule into a single CEL ast.
policy/composer.go:78
↓ 3 callersMethodComputeOffsetAbsolute
ComputeOffsetAbsolute calculates the 0-based character offset from a 1-based line and 0-based column based on the absolute line and column of the Sour
common/ast/ast.go:429
↓ 3 callersFunctionConcurrentDrainStrategy
ConcurrentDrainStrategy configures the strategy for when to re-evaluate the program during a ConcurrentEval call after receiving asynchronous completi
cel/options.go:850
↓ 3 callersMethodCondition
Condition returns the condition CEL expression.
policy/parser.go:360
↓ 3 callersFunctionConfigToYAML
ConfigToYAML returns the config serialized to YAML Provided as a convenience wrapper around a tested YAML Marshaler.
common/env/io.go:480
↓ 3 callersMethodCopy
Copy the input expression with a brand new set of identifiers.
parser/macro.go:199
↓ 3 callersFunctionCopySourceInfo
CopySourceInfo creates a deep copy of the MacroCalls within the input SourceInfo. Copies of macro Expr values are generated using an internal default
common/ast/ast.go:230
↓ 3 callersMethodCreateMap
CreateMap records map literal construction cost.
common/cost/tracker.go:197
↓ 3 callersMethodCreateStruct
CreateStruct records struct/object construction cost.
common/cost/tracker.go:203
↓ 3 callersMethodDelLetFn
DelLetFn removes a function from the evaluation context. If deleting the function breaks a later expression, this function will return an error withou
repl/evaluator.go:718
↓ 3 callersMethodDescriptor
()
test/proto2pb/test_all_types.pb.go:63
↓ 3 callersMethodDescriptor
Deprecated: Use FuzzVariables.ProtoReflect.Descriptor instead.
fuzzing/cel_go_lpm.pb.go:72
↓ 3 callersFunctionEnableHiddenAccumulatorName
EnableHiddenAccumulatorName sets the parser to use the identifier '@result' for accumulators which is not normally accessible from CEL source.
cel/options.go:1232
↓ 3 callersMethodEnumValue
(enumName string)
cel/options.go:1240
↓ 3 callersMethodEquiv
Equiv returns true if two ASTs are structurally equivalent. If the ASTs are type-checked, type and reference information will be compared by default.
common/ast/equiv.go:141
↓ 3 callersFunctionErrorAsIssues
ErrorAsIssues wraps a Golang error into a CEL common error and issue set. This is a convenience method for early returning from an expression validat
cel/env.go:1184
↓ 3 callersMethodEstimateCallCost
EstimateCallCost returns the CallEstimate for a function, overload and target and arguments. If nil is returned, the cost of the function is calculat
common/cost/estimator.go:35
↓ 3 callersMethodEvalAttribute
EvalAttribute records attribute resolution cost (ident / select).
common/cost/tracker.go:209
↓ 3 callersMethodEvalVarArgs
EvalVarArgs records the cost for a variadic call expression.
common/cost/tracker.go:248
↓ 3 callersMethodExceedsLimit
ExceedsLimit indicates whether the peak observed memory exceeds the configured limit. When no limit is configured, ExceedsLimit always returns false.
common/types/memory_tracker.go:170
↓ 3 callersFunctionExcludeOverloads
ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
common/decls/decls.go:220
↓ 3 callersMethodExecuteTest
ExecuteTest executes the test case against the provided list of programs and returns an error if the test fails. During the test execution, the interm
tools/celtest/test_runner.go:1021
↓ 3 callersFunctionExprDeclToDeclaration
ExprDeclToDeclaration converts a protobuf CEL declaration to a CEL-native declaration, either a Variable or Function.
cel/decls.go:406
↓ 3 callersFunctionExprToString
ExprToString converts an AST Expr node back to a string using macro call tracking metadata from source info if any macros are encountered within the e
cel/io.go:151
↓ 3 callersFunctionExpressionSizeCodePointLimit
ExpressionSizeCodePointLimit is an option which limits the maximum code point count of an expression.
parser/options.go:93
↓ 3 callersFunctionExpressionUnnestHeight
ExpressionUnnestHeight determines the height at which nested expressions are split into local variables within the cel.@block declaration.
policy/composer.go:39
↓ 3 callersFunctionFileDescriptorSet
FileDescriptorSet creates a Test Runner Option which adds a file descriptor set to the test runner. The file descriptor set is used to register proto
tools/celtest/test_runner.go:473
↓ 3 callersMethodFindIdentInScope
FindIdentInScope finds the first ident Decl with a matching name in the current Scopes value, or nil if one does not exist. Note: The search is only p
checker/scopes.go:76
↓ 3 callersMethodFindInt64Key
(int64)
common/types/map_test.go:1358
↓ 3 callersMethodFindOverload
FindOverload returns an Overload definition matching the provided name.
interpreter/dispatcher.go:29
↓ 3 callersFunctionFindReverse
FindReverse returns the unmangled, text representation of the operator.
common/operators/operators.go:116
↓ 3 callersMethodFindStructType
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:444
↓ 3 callersMethodFindType
FindType looks up the Type given a qualified typeName. Returns false if not found.
common/types/ref/provider.go:36
↓ 3 callersMethodFnDecl
()
repl/parser/commands_parser.go:1781
↓ 3 callersMethodFunction
Function name to match.
parser/macro.go:103
↓ 3 callersFunctionFunctionDocs
FunctionDocs provides a general usage documentation for the function. Use OverloadExamples to provide example usage instructions for specific overloa
cel/decls.go:247
↓ 3 callersMethodGet
Get implements the traits.Indexer interface method.
common/types/list.go:615
↓ 3 callersMethodGetE1
GetE1 returns the e1 rule contexts.
repl/parser/commands_parser.go:4386
↓ 3 callersMethodGetEnumNames
GetEnumNames returns the string names of all enum values in the file.
common/types/pb/file.go:97
↓ 3 callersMethodGetFields
GetFields returns the fields rule context list.
repl/parser/commands_parser.go:8229
↓ 3 callersMethodGetFn
GetFn returns the fn rule contexts.
repl/parser/commands_parser.go:952
↓ 3 callersMethodGetLocationByOffset
GetLocationByOffset returns the line and column information for a given character offset.
common/ast/ast.go:405
↓ 3 callersMethodGetOverloadIDs
GetOverloadIDs returns the set of overload function names for a given expression id. If the expression id is not a function call, or the AST is not t
common/ast/ast.go:79
↓ 3 callersMethodGetT
GetT returns the t rule contexts.
repl/parser/commands_parser.go:1903
↓ 3 callersMethodGetVar_
GetVar_ returns the var_ rule contexts.
repl/parser/commands_parser.go:949
↓ 3 callersMethodGlobalCall
GlobalCall creates a function call Expr value for a global (free) function.
cel/macro.go:127
↓ 3 callersFunctionGlobals
Globals sets the global variable values for a given program. These values may be shadowed by variables with the same name provided to the Eval() call.
cel/options.go:556
↓ 3 callersMethodHasOptionalOutput
HasOptionalOutput returns whether the rule returns a concrete or optional value. The rule may return an optional value if all match expressions under
policy/compiler.go:82
↓ 3 callersMethodHasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:391
↓ 3 callersFunctionHomogeneousAggregateLiterals
HomogeneousAggregateLiterals disables mixed type list and map literal values. Note, it is still possible to have heterogeneous aggregates when provid
cel/options.go:249
↓ 3 callersMethodImports
Imports returns the list of imports associated with the policy.
policy/parser.go:88
↓ 3 callersFunctionInitEmptyUnaryContext
(p *UnaryContext)
parser/gen/cel_parser.go:1770
↓ 3 callersFunctionInitEmptyUnaryContext
(p *UnaryContext)
repl/parser/commands_parser.go:5728
↓ 3 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
↓ 3 callersMethodIsAsync
IsAsync returns true if the function has an async binding.
common/decls/decls.go:326
↓ 3 callersMethodIsChecked
IsChecked returns whether the AST is type-checked.
common/ast/ast.go:103
↓ 3 callersMethodIsEnum
IsEnum returns true if the field type refers to an enum value.
common/types/pb/type.go:342
↓ 3 callersMethodIsMemberFunction
IsMemberFunction indicates whether the overload is a member function
common/decls/decls.go:725
↓ 3 callersFunctionJSONParse
JSONParse parses a JSON string into a dynamic CEL ref.Val using the given type adapter. If adapter is nil, types.DefaultTypeAdapter is used.
ext/encoders.go:341
↓ 3 callersMethodLineOffsets
LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
common/ast/ast.go:308
↓ 3 callersMethodLocationOffset
LocationOffset translates a Location to an offset. Given the line and column of the Location returns the Location's character offset in the Source, an
common/source.go:43
↓ 3 callersFunctionMathVersion
MathVersion sets the library version for math extensions.
ext/math.go:398
↓ 3 callersFunctionMaxExpressionNodeCount
MaxExpressionNodeCount limits the maximum number of expression nodes that may be emitted by the parser, including nodes created by macro expansion.
parser/options.go:105
↓ 3 callersFunctionMaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 3 callersFunctionMaybeMergeUnknowns
MaybeMergeUnknowns determines whether an input value and another, possibly nil, unknown will produce an unknown result. If the input `val` is another
common/types/unknown.go:279
↓ 3 callersMethodMaybeUnwrap
MaybeUnwrap accepts a proto message as input and unwraps it to a primitive CEL type if possible. This method returns the unwrapped value and 'true',
common/types/pb/type.go:134
↓ 3 callersFunctionMemoryTrackerLimit
MemoryTrackerLimit sets a limit on the peak aggregate memory observed during tracking. The tracker does not enforce the limit itself; callers should
common/types/memory_tracker.go:32
↓ 3 callersMethodMetadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:108
↓ 3 callersMethodModulo
Modulo returns the result of taking the modulus of the current value by the denominator. A denominator value of zero results in an error.
common/types/traits/math.go:42
↓ 3 callersMethodName
Name returns the snake_case name of the field within the proto-based struct.
common/types/pb/type.go:380
↓ 3 callersMethodName
Name returns the fully-qualified variable name
common/decls/decls.go:1147
↓ 3 callersFunctionNativeTypeAdapter
NativeTypeAdapter sets the TypeAdapter to use when adapting nested dynamic fields for a NativeType.
common/types/native.go:73
↓ 3 callersFunctionNativeTypeAlias
NativeTypeAlias configures a custom CEL type name (alias) for a native type.
common/types/native.go:81
↓ 3 callersFunctionNewBufferAndLineOffsetsWithLimit
NewBufferAndLineOffsetsWithLimit returns an efficient implementation of Buffer for the given text and enforces a code point limit while constructing t
common/runes/buffer.go:143
↓ 3 callersFunctionNewCommandsLexer
NewCommandsLexer produces a new lexer instance for the optional input antlr.CharStream.
repl/parser/commands_lexer.go:345
↓ 3 callersFunctionNewCommandsParser
NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
repl/parser/commands_parser.go:282
↓ 3 callersFunctionNewConstant
NewConstant creates a new constant declaration.
common/decls/decls.go:1116
↓ 3 callersFunctionNewError
NewError creates an error associated with an expression id with the given message at the given location.
common/error.go:24
↓ 3 callersFunctionNewExampleDoc
NewExampleDoc creates a new Doc struct specifically for holding an example.
common/doc.go:161
↓ 3 callersFunctionNewFunctionWithDoc
NewFunctionWithDoc creates a serializable function and overload set.
common/env/env.go:346
↓ 3 callersFunctionNewObjectType
NewObjectType creates an object type for a qualified type name.
checker/decls/decls.go:168
↓ 3 callersFunctionNewObjectTypeValue
NewObjectTypeValue creates a type reference to an externally defined type. Deprecated: use cel.ObjectType(typeName)
common/types/types.go:588
↓ 3 callersFunctionNewTestRunner
NewTestRunner creates a Test Runner with the provided options. The options can be used to: - configure the Compiler used for parsing and compiling the
tools/celtest/test_runner.go:419
↓ 3 callersFunctionNewTypeValue
NewTypeValue creates an opaque type which has a set of optional type traits as defined in the common/types/traits package. Deprecated: use cel.Object
common/types/types.go:596
↓ 3 callersMethodNewValue
NewValue creates a new type value from a qualified name and map of field name to value. Note, for each value, the Val.ConvertToNative function will b
common/types/provider.go:461
↓ 3 callersFunctionNewVariableWithDoc
NewVariableWithDoc returns a serializable variable from a name, type definition, and doc string.
common/env/env.go:249
↓ 3 callersMethodNodeID
()
interpreter/interpreter_test.go:2003
↓ 3 callersFunctionOptional
Optional creates an expression representing an optional which holds a value of the given size. From cost model version 1 an optional is 1 plus the si
common/cost/model.go:1049
↓ 3 callersMethodOptions
Options returns the NativeTypeOption slice for this descriptor.
common/types/native.go:100
↓ 3 callersMethodParseSource
ParseSource parses the input source to an Ast and/or set of Issues. Parsing has failed if the returned Issues value and its Issues.Err() value is non
cel/env.go:779
↓ 3 callersFunctionParseTimestamp
ParseTimestamp attempts to parse a timestamp from various supported types and representations: - time.Time, Timestamp, *timestamppb.Timestamp - RFC 33
common/types/timestamp.go:272
↓ 3 callersFunctionParseTypeDesc
ParseTypeDesc parses a TypeDesc from the type specifier format: "map<string, int>"
common/env/io.go:257
↓ 3 callersFunctionParsedExprToAst
ParsedExprToAst converts a parsed expression proto message to an Ast.
cel/io.go:74
↓ 3 callersFunctionParserRecursionLimit
ParserRecursionLimit adjusts the AST depth the parser will tolerate. Defaults defined in the parser package.
cel/options.go:1176
↓ 3 callersFunctionPartialEvalProgramOption
PartialEvalProgramOption returns a TestRunnerOption which enables partial evaluation for the CEL program by setting the OptPartialEval eval option. N
tools/celtest/test_runner.go:537
← previousnext →1,101–1,200 of 9,178, ranked by callers