MCPcopy Create free account

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

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

↓ 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:240
↓ 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:1220
↓ 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:929
↓ 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 callersFunctionoptimizerEnv
(t *testing.T)
cel/optimizer_test.go:323
↓ 4 callersFunctionparseCIDR
(raw string)
ext/network.go:505
↓ 4 callersMethodpeekLocalVar
(varName string)
checker/cost.go:456
↓ 4 callersMethodpush
(varName string, expr ast.Expr, path []string, size *SizeEstimate, entrySize *entrySizeEstimate)
checker/cost.go:380
↓ 4 callersMethodrelease
(activation Activation)
interpreter/frame.go:345
↓ 4 callersFunctionreleaseFolder
releaseFolder resets and releases a pooled folder instance.
interpreter/interpretable.go:1525
↓ 4 callersMethodsizeOrUnknown
(node any)
checker/cost.go:924
↓ 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:901
↓ 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 callersFunctionCompile
Compile combines the policy compilation and composition steps into a single call. This generates a single CEL AST from a collection of policy express
policy/compiler.go:244
↓ 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:318
↓ 3 callersFunctionCost
Cost estimates the cost of the parsed and type checked CEL expression.
checker/cost.go:285
↓ 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 callersFunctionEnableIdentEscapeSyntax
EnableIdentEscapeSyntax enables backtick (`) escaped field identifiers. This supports extended types of characters in identifiers, e.g. foo.`baz-bar`.
parser/options.go:147
↓ 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 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 callersMethodGet
Get implements the traits.Indexer interface method.
common/types/list.go:446
↓ 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
↓ 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 callersMethodGetValues
GetValues returns the values rule context list.
repl/parser/commands_parser.go:8739
↓ 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 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:71
↓ 3 callersMethodHasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:349
↓ 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:237
↓ 3 callersMethodImports
Imports returns the list of imports associated with the policy.
policy/parser.go:70
↓ 3 callersFunctionIndexOrError
IndexOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:549
↓ 3 callersFunctionInitEmptyUnaryContext
(p *UnaryContext)
parser/gen/cel_parser.go:1770
↓ 3 callersFunctionInitEmptyUnaryContext
(p *UnaryContext)
repl/parser/commands_parser.go:5728
↓ 3 callersMethodInitVals
InitVals returns all the list elements, map key and values or struct field values.
interpreter/interpretable.go:139
↓ 3 callersMethodIsEnum
IsEnum returns true if the field type refers to an enum value.
common/types/pb/type.go:321
↓ 3 callersFunctionJSONFieldNames
JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
checker/options.go:46
↓ 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:399
↓ 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:103
↓ 3 callersFunctionMaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 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 callersMethodMetadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:90
↓ 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:359
↓ 3 callersMethodName
Name returns the fully-qualified variable name
common/decls/decls.go:1059
↓ 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
← previousnext →801–900 of 7,701, ranked by callers