MCPcopy Create free account

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

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

↓ 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 callersMethodRule
Rule returns the rule value, or nil if the rule is not set.
policy/parser.go:396
↓ 4 callersMethodSetAsyncObserver
SetAsyncObserver sets the observer for monitoring asynchronous function calls.
interpreter/frame.go:296
↓ 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 callersFunctionSets
Sets returns a cel.EnvOption to configure namespaced set relationship functions. There is no set type within CEL, and while one may be introduced in
ext/sets.go:79
↓ 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 callersMethodSource
Source returns the policy file contents as a CEL source object.
policy/parser.go:78
↓ 4 callersMethodSourceID
SourceID returns the expression id associated with the output expression.
policy/compiler.go:186
↓ 4 callersFunctionSourceInfoToProto
SourceInfoToProto serializes an ast.SourceInfo value to a protobuf SourceInfo object.
common/ast/conversion.go:529
↓ 4 callersMethodSubset
Subset returns a new function declaration which contains only the overloads with the specified IDs. If the subset function contains no overloads, then
common/decls/decls.go:234
↓ 4 callersFunctionToAST
ToAST converts a CheckedExpr protobuf to an AST instance.
common/ast/conversion.go:78
↓ 4 callersFunctionToProto
ToProto converts an AST to a CheckedExpr protobouf.
common/ast/conversion.go:44
↓ 4 callersMethodTypeAdapter
TypeAdapter returns the `ref.TypeAdapter` configured for the environment. Deprecated: use CELTypeAdapter()
cel/env.go:794
↓ 4 callersMethodUnary
Getter signatures
repl/parser/commands_parser.go:5410
↓ 4 callersFunctionUnparseType
UnparseType pretty-prints a type for the REPL.
repl/typefmt.go:41
↓ 4 callersFunctionValToConstant
ValToConstant converts a CEL-native ref.Val to a protobuf Constant. Only simple scalar types are supported by this method.
common/ast/conversion.go:640
↓ 4 callersFunctionValidateDurationLiterals
ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
cel/validator.go:216
↓ 4 callersFunctionValidateTimestampLiterals
ValidateTimestampLiterals ensures that timestamp literal arguments are valid immediately after type-check.
cel/validator.go:221
↓ 4 callersFunctionVariableDecls
VariableDecls configures a set of fully defined cel.VariableDecl instances in the environment.
cel/decls.go:157
↓ 4 callersMethodVersionNumber
VersionNumber returns the parsed version string, or an error if the version cannot be parsed.
common/env/env.go:500
↓ 4 callersMethodVisit
(tree antlr.ParseTree)
repl/typefmt.go:65
↓ 4 callersFunctionWrapOnColumn
WrapOnColumn wraps the output expression when its string length exceeds a specified limit for operators set by WrapOnOperators function or by default,
parser/unparser.go:606
↓ 4 callersMethodZero
Zero returns an empty immutable protobuf message when the description is a protobuf message type.
common/types/pb/type.go:38
↓ 4 callersFunctionadaptToV2
adaptToV2 adapts a V1 Interpretable implementation to the V2 interface. This adapter is used to bridge the legacy Interpretable interface to the mode
interpreter/interpretable.go:54
↓ 4 callersFunctionaddFunctionBindings
(t testing.TB, dispatcher Dispatcher)
interpreter/interpreter_test.go:2686
↓ 4 callersFunctionaddInt64Checked
addInt64Checked performs addition with overflow detection of two int64 values. If the operation fails the error return value will be non-nil.
common/types/overflow.go:29
↓ 4 callersMethodapplyContext
applyContext evaluates the let expressions in the context to build an activation for the given expression. returns the environment for compiling and p
repl/evaluator.go:1010
↓ 4 callersFunctionconvertProto
(src, dst proto.Message)
cel/io.go:366
↓ 4 callersMethodcreate
(parent, child Activation)
interpreter/frame.go:337
↓ 4 callersFunctiondoubleToInt64Lossless
(v float64)
common/types/overflow.go:410
↓ 4 callersMethodensureMutable
()
common/types/provider.go:241
↓ 4 callersMethodeval
(expr string)
tools/celtest/test_runner.go:857
↓ 4 callersFunctionexpectNativeToValue
(t *testing.T, in any, out ref.Val)
common/types/provider_test.go:1242
↓ 4 callersFunctionformatTo
(sb *strings.Builder, val ref.Val)
common/types/format.go:23
↓ 4 callersFunctiongetElem
(t *testing.T, list traits.Indexer, index ref.Val)
common/types/list_test.go:867
↓ 4 callersFunctionisNumericArgType
(arg ast.Expr)
ext/math.go:930
↓ 4 callersMethodlocationByID
(id int64)
checker/checker.go:714
↓ 4 callersFunctionmaybeUnwrapOptional
(t *types.Type)
checker/types.go:49
↓ 4 callersFunctionnewFolder
newFolder creates or initializes a pooled folder instance.
interpreter/interpretable.go:1517
↓ 4 callersFunctionnewIdent
(name string, t *exprpb.Type, v *exprpb.Constant, desc string)
checker/decls/decls.go:115
↓ 4 callersFunctionnewOptionalCompositionStep
newOptionalCompositionStep returns an output step with an optional policy output.
policy/composer.go:553
↓ 4 callersFunctionnormalize
(s string)
policy/compiler_test.go:528
↓ 4 callersFunctionoptimizerEnv
(t *testing.T)
cel/optimizer_test.go:323
↓ 4 callersFunctionparseCIDR
(raw string)
ext/network.go:506
↓ 4 callersMethodpeekLocalVar
(varName string)
checker/cost.go:426
↓ 4 callersMethodpush
(varName string, expr ast.Expr, path []string, size *SizeEstimate, entrySize *entrySizeEstimate)
checker/cost.go:350
↓ 4 callersMethodrelease
(activation Activation)
interpreter/frame.go:345
↓ 4 callersFunctionreleaseFolder
releaseFolder resets and releases a pooled folder instance.
interpreter/interpretable.go:1525
↓ 4 callersFunctionsafeGetFieldByIndex
(v reflect.Value, index []int)
common/types/native.go:484
↓ 4 callersMethodsizeOrUnknown
(node any)
checker/cost.go:894
↓ 4 callersFunctiontestProtosEnv
testProtosEnv initializes the test environment common to all tests.
ext/protos_test.go:213
↓ 4 callersFunctiontestRegexEnv
(t *testing.T, opts ...cel.EnvOption)
ext/regex_test.go:264
↓ 4 callersFunctiontrackAllocatingListCall
trackAllocatingListCall computes costs as a function of the size of the result list with a baseline cost for the call dispatch and the associated list
ext/lists.go:902
↓ 4 callersFunctionuint64ToInt64Lossless
(v uint64)
common/types/overflow.go:426
↓ 3 callersMethodAccuIdentName
AccuIdentName reports the name of the accumulator variable to be used within a comprehension.
common/ast/factory.go:47
↓ 3 callersMethodAdapter
Adapter returns the type adapter to be used for adapting resolved Attribute values.
interpreter/interpretable.go:89
↓ 3 callersMethodAddLimits
AddLimits appends one or more limits to the config.
common/env/env.go:216
↓ 3 callersMethodAddOverload
AddOverload appends a function overload ID to the ReferenceInfo.
common/ast/ast.go:497
↓ 3 callersMethodAddOverload
AddOverload ensures that the new overload does not collide with an existing overload signature; however, if the function signatures are identical, the
common/decls/decls.go:268
↓ 3 callersMethodAddQualifier
AddQualifier proxies the Attribute.AddQualifier method. Note, this method may mutate the current attribute state. If the desire is to clone the Attri
interpreter/interpretable.go:97
↓ 3 callersFunctionAlias
Alias associates a name with a user-defined alias. In general, Abbrevs is preferred to Alias since the names generated from the Abbrevs option are mo
common/containers/container.go:245
↓ 3 callersFunctionAllMatcher
AllMatcher returns true for all descendants of a NavigableExpr, effectively flattening them into a list. Such a result would work well with subsequen
common/ast/navigable.go:98
↓ 3 callersMethodAsyncCall
AsyncCall returns the state of an async call by its callID, or nil if not found.
interpreter/frame.go:275
↓ 3 callersFunctionAuthoringPrompt
AuthoringPrompt creates a prompt template from a CEL environment for the purpose of AI-assisted authoring.
cel/prompt.go:64
↓ 3 callersMethodCheckInterrupt
CheckInterrupt returns whether the evaluation has been interrupted.
interpreter/frame.go:214
↓ 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 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:74
↓ 3 callersFunctionConcurrentDrainStrategy
ConcurrentDrainStrategy configures the strategy for when to re-evaluate the program during a ConcurrentEval call after receiving asynchronous completi
cel/options.go:787
↓ 3 callersMethodCondition
Condition returns the condition CEL expression.
policy/parser.go:360
↓ 3 callersMethodCopy
Copy the input expression with a brand new set of identifiers.
parser/macro.go:199
↓ 3 callersFunctionCost
Cost estimates the cost of the parsed and type checked CEL expression.
checker/cost.go:255
↓ 3 callersFunctionCostLimit
CostLimit enables cost tracking and sets configures program evaluation to exit early with a "runtime cost limit exceeded" error if the runtime cost ex
cel/options.go:825
↓ 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 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:1062
↓ 3 callersMethodEstimateAggregateSize
EstimateAggregateSize returns the aggregate size of the input value along with an indication of whether the computation was aborted due to the calcula
common/types/size_calc.go:169
↓ 3 callersMethodExamples
Examples returns a list of string examples for the overload.
common/decls/decls.go:672
↓ 3 callersFunctionExcludeOverloads
ExcludeOverloads defines an OverloadSelector which deny-lists a set of overloads by their ids.
common/decls/decls.go:220
↓ 3 callersMethodExec
Exec implements the InterpretableV2 interface method.
interpreter/async.go:100
↓ 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:403
↓ 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:131
↓ 3 callersFunctionExpressionSizeCodePointLimit
ExpressionSizeCodePointLimit is an option which limits the maximum code point count of an expression.
parser/options.go:91
↓ 3 callersFunctionExpressionUnnestHeight
ExpressionUnnestHeight determines the height at which nested expressions are split into local variables within the cel.@block declaration.
policy/composer.go:35
↓ 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 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 callersMethodFnDecl
()
repl/parser/commands_parser.go:1781
↓ 3 callersFunctionFormat
Format formats the value as a string. The result is only intended for human consumption and ignores errors. Do not depend on the output being stable.
common/types/format.go:17
↓ 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:463
↓ 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 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
← previousnext →801–900 of 7,844, ranked by callers