MCPcopy Create free account

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

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

↓ 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 callersFunctionMaxConstantFoldIterations
MaxConstantFoldIterations limits the number of times literals may be folding during optimization. Defaults to 100 if not set.
cel/folding.go:36
↓ 2 callersFunctionMaxNestedExpressions
MaxNestedExpressions limits the number of variable and nested rule expressions during compilation. Defaults to 100 if not set.
policy/compiler.go:201
↓ 2 callersMethodMetadataKeys
MetadataKeys returns a list of metadata keys set on the policy.
policy/parser.go:114
↓ 2 callersFunctionModel
Model registers one or more OverloadModels for both cost estimation and runtime cost tracking. Models are validated when the option is applied to Cos
common/cost/version.go:212
↓ 2 callersMethodModelVersion
ModelVersion returns the cost model version configured on the tracker.
common/cost/tracker.go:183
↓ 2 callersFunctionModelVersionOf
ModelVersionOf reports the cost model version the given Estimator is configured with, or math.MaxUint32 if the estimator does not carry version metada
common/cost/model.go:105
↓ 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 callersFunctionNativeTypesVersion
NativeTypesVersion sets the native types version support for native extensions functions. Deprecated: NativeTypesVersion is a no-op and will be remov
ext/native.go:44
↓ 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:797
↓ 2 callersMethodNewComprehensionTwoVar
(id int64, iterRange Expr, iterVar, iterVar2, accuVar string, accuInit, loopCond, loopStep, result Expr)
common/ast/factory.go:136
↓ 2 callersFunctionNewExprFactoryWithAccumulator
NewExprFactoryWithAccumulator creates an ExprFactory instance with a custom accumulator identifier name.
common/ast/factory.go:97
↓ 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:442
↓ 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 callersFunctionNewOverloadDoc
NewOverloadDoc creates a new Doc struct for a function example.
common/doc.go:141
↓ 2 callersFunctionNewPolicy
NewPolicy creates a policy object which references a policy source and source information.
policy/parser.go:38
↓ 2 callersFunctionNewProtoRegistry
NewProtoRegistry creates a proto-based registry with a set of configurable options.
common/types/provider.go:155
↓ 2 callersFunctionNewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count. Deprecated: use ReceiverMacro
cel/macro.go:190
↓ 2 callersFunctionNewRule
NewRule creates a Rule instance.
policy/parser.go:195
↓ 2 callersFunctionNewTest
NewTest creates a new Test with the provided name, input and result matcher.
tools/celtest/test_runner.go:386
↓ 2 callersFunctionNewVar
NewVar creates a variable identifier.
checker/decls/decls.go:131
↓ 2 callersFunctionNewVariableDoc
NewVariableDoc creates a new Doc struct specifically for documenting a variable.
common/doc.go:121
↓ 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:67
↓ 2 callersMethodOption
Option returns the cel.EnvOption that should be applied to the environment.
repl/evaluator.go:329
↓ 2 callersFunctionOverloadExamples
OverloadExamples configures an example of how to invoke the overload.
cel/decls.go:325
↓ 2 callersMethodOverloadID
OverloadID returns the overload id of the function being invoked.
interpreter/async.go:83
↓ 2 callersMethodOverloadID
OverloadID returns the specific overload ID being invoked.
common/cost/tracker.go:42
↓ 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:799
↓ 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:85
↓ 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:1188
↓ 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. Deprecated: use cost.
interpreter/runtimecost.go:61
↓ 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:420
↓ 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
↓ 2 callersFunctionPruneAst
TODO Consider having a separate walk of the AST that finds common subexpressions. This can be called before or after constant folding to find common s
interpreter/prune.go:69
↓ 2 callersMethodQualId
()
repl/parser/commands_parser.go:3210
↓ 2 callersMethodQualify
Qualify records qualifier cost.
common/cost/tracker.go:217
↓ 2 callersMethodRangeList
RangeList iterates over the list and calls the provided function for each element. If the function returns false, the iteration will stop.
policy/yaml.go:31
↓ 2 callersFunctionReferenceInfoToProto
ReferenceInfoToProto converts a ReferenceInfo instance to a protobuf Reference suitable for serialization.
common/ast/conversion.go:612
↓ 2 callersFunctionRegexProgramSizeLimit
RegexProgramSizeLimit caps the maximum regex program plan size permitted during evaluation.
interpreter/interpreter.go:237
↓ 2 callersFunctionRegexProgramSizeLimit
RegexProgramSizeLimit caps the maximum regex program plan size permitted for regular expressions. A negative or zero value means unbounded.
cel/options.go:1213
↓ 2 callersFunctionRegexVersion
RegexVersion configures the version of the Regex library definitions to use. See [Regex] for supported values.
ext/regex.go:116
↓ 2 callersMethodRegisterNativeType
(reflect.Type, ...types.NativeTypeOption)
cel/options.go:367
↓ 2 callersMethodRegisterNativeTypeDesc
(*types.NativeTypeDesc)
cel/options.go:368
↓ 2 callersMethodRelease
Release releases a concurrency slot and decrements the active calls count (used for defensive recovery).
interpreter/async.go:497
↓ 2 callersMethodReportErrorAtID
ReportErrorAtID records an error at a source location and expression id.
common/errors.go:55
↓ 2 callersMethodResolveName
ResolveName implements the Activation interface by proxying to the internal activation.
interpreter/frame.go:245
↓ 2 callersMethodRestorePosition
(pos int32)
parser/lexer.go:239
↓ 2 callersMethodResultOrUnknown
ResultOrUnknown returns the cached result if the call has completed, an Unknown with the call ID if pending, or nil if the call has not been started.
interpreter/async.go:299
↓ 2 callersMethodResultType
ResultType returns the output type of the expression if the Ast has been type-checked, else returns chkdecls.Dyn as the parse step cannot infer the ty
cel/env.go:97
↓ 2 callersMethodResultVal
ResultVal returns the evaluated result value, if present.
common/cost/model.go:94
↓ 2 callersFunctionSafeCeil
SafeCeil returns the smallest integer value greater than or equal to the input, saturating at math.MaxUint64 and flooring at zero. Negative and NaN i
common/cost/cost.go:127
↓ 2 callersMethodSample
Sample observes a value for a specific node ID subject to the tracker's sample interval, returning the value's aggregate size when computed, or zero w
common/types/memory_tracker.go:151
↓ 2 callersMethodSavePosition
()
parser/lexer.go:235
↓ 2 callersMethodSemantic
Semantic returns the evaluation semantic for the rule.
policy/parser.go:215
↓ 2 callersMethodSetCondition
SetCondition sets the CEL condition for the match.
policy/parser.go:401
↓ 2 callersMethodSetExpression
SetExpression sets the variable expression.
policy/parser.go:335
↓ 2 callersMethodSetOutput
SetOutput sets the output expression for the match.
policy/parser.go:406
↓ 2 callersMethodSetRule
SetRule sets the rule for the match.
policy/parser.go:416
↓ 2 callersMethodSetSemantic
SetSemantic configures the evaluation semantic for the rule.
policy/parser.go:223
↓ 2 callersMethodSetType
SetType sets the type of the expression node at the given id.
common/ast/ast.go:59
↓ 2 callersFunctionSetsVersion
SetsVersion sets the library version for set extensions.
ext/sets.go:89
↓ 2 callersFunctionSingletonFunctionBinding
SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is
cel/decls.go:291
↓ 2 callersMethodSize
Size implements the traits.Sizer interface method.
common/types/list.go:410
↓ 2 callersMethodSort
Sort is a convenience method: x.Sort() calls Sort(x).
cel/folding_test.go:1815
↓ 2 callersMethodSort
Sort is a convenience method: x.Sort() calls Sort(x).
common/types/unknown.go:339
↓ 2 callersMethodSourceID
SourceID returns the source identifier associated with the rule.
policy/parser.go:231
↓ 2 callersMethodStartCommand
()
repl/parser/commands_parser.go:490
↓ 2 callersFunctionStrictDecoding
StrictDecoding configures whether unknown fields in the YAML or JSON input cause a decoding error. By default, unknown fields are ignored.
common/env/io.go:403
↓ 2 callersMethodString
String takes a ref.Val and a string representing the current locale identifier and returns the Val formatted as a string, or an error if one occurred.
ext/formatting_v2.go:642
↓ 2 callersFunctionStringsLocale
StringsLocale configures the library with the given locale. The locale tag will be checked for validity at the time that EnvOptions are configured. If
ext/strings.go:345
↓ 2 callersFunctionStringsValidateFormatCalls
StringsValidateFormatCalls validates type-checked ASTs to ensure that string.format() calls have valid formatting clauses and valid argument types for
ext/strings.go:372
↓ 2 callersMethodSubsetFunction
SubsetFunction produces a function declaration which matches the supported subset, or nil if the function is not supported by the LibrarySubset. For
common/env/env.go:583
↓ 2 callersMethodSubsetMacro
SubsetMacro indicates whether the macro function should be included in the library subset.
common/env/env.go:627
↓ 2 callersMethodTargetType
TargetType returns the deduced type of the receiver/target object, if present.
common/cost/model.go:30
↓ 2 callersMethodTargetVal
TargetVal returns the value of the receiver/target object, if present.
common/cost/model.go:91
↓ 2 callersMethodTargetValue
TargetValue returns the uint64 value of the receiver/target, or defaultVal.
common/cost/model.go:85
↓ 2 callersFunctionTestRunnerOptionsFromFlags
TestRunnerOptionsFromFlags returns a TestRunnerOption which configures the following attributes of the test runner using the parsed flags and the opti
tools/celtest/test_runner.go:184
↓ 2 callersFunctionToFoldableList
ToFoldableList will create a Foldable version of a list suitable for key-value pair iteration. For values which are already Foldable, this call is a
common/types/list.go:754
↓ 2 callersFunctionTwoVarComprehensionsVersion
TwoVarComprehensionsVersion sets the library version for two-variable comprehensions.
ext/comprehensions.go:175
↓ 2 callersMethodType
()
common/types/native.go:524
← previousnext →1,501–1,600 of 9,178, ranked by callers