MCPcopy Create free account

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

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

↓ 6 callersFunctionNewGlobalMacro
NewGlobalMacro creates a Macro for a global function with the specified arg count.
parser/macro.go:48
↓ 6 callersFunctionNewHierarchicalActivation
NewHierarchicalActivation takes two activations and produces a new one which prioritizes resolution in the child first and parent(s) second.
interpreter/activation.go:197
↓ 6 callersMethodNewMap
NewMap creates a CreateStruct instruction for a map where the map is comprised of the optional set of key, value entries.
cel/macro.go:85
↓ 6 callersMethodNewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
parser/macro.go:212
↓ 6 callersMethodNewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
cel/macro.go:88
↓ 6 callersMethodNewPresenceTest
NewPresenceTest creates a Select TestOnly Expr value for modelling has() semantics.
parser/macro.go:285
↓ 6 callersFunctionParseStructField
ParseStructField configures how to parse Go struct fields. It can be used to customize struct field parsing.
common/types/native.go:149
↓ 6 callersFunctionParseType
ParseType parses a human readable type string into the protobuf representation.
repl/typefmt.go:215
↓ 6 callersFunctionProtos
Protos returns a cel.EnvOption to configure extended macros and functions for proto manipulation. Note, all macros use the 'proto' namespace; however
ext/protos.go:54
↓ 6 callersMethodQualifyIfPresent
QualifyIfPresent qualifies the object if the qualifier is declared or defined on the object. The 'presenceOnly' flag indicates that the value is not n
interpreter/interpretable.go:106
↓ 6 callersMethodRecoverInline
(recognizer antlr.Parser)
parser/antlr_parser.go:194
↓ 6 callersFunctionSerializeTypeDesc
SerializeTypeDesc converts a CEL native *types.Type to a serializable TypeDesc.
common/env/env.go:970
↓ 6 callersMethodSetDisabled
SetDisabled disables or enables the library.
common/env/env.go:655
↓ 6 callersFunctionSingletonFunctionBinding
SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is
common/decls/decls.go:562
↓ 6 callersFunctionSingletonUnaryBinding
SingletonUnaryBinding creates a singleton function definition to be used for all function overloads. Note, this approach works well if operand is exp
cel/decls.go:255
↓ 6 callersMethodSource
Source returns a view of the input used to create the Ast. This source may be complete or constructed from the SourceInfo.
cel/env.go:117
↓ 6 callersFunctionTestExpression
TestExpression returns a TestRunnerOption which configures a policy file, expression file, or raw expression for testing
tools/celtest/test_runner.go:436
↓ 6 callersFunctionToAdornedDebugString
ToAdornedDebugString gives the adorned string representation of the Expr.
common/debug/debug.go:61
↓ 6 callersMethodTypeAdapter
TypeAdapter returns the `ref.TypeAdapter` configured for the environment. Deprecated: use CELTypeAdapter()
cel/env.go:859
↓ 6 callersMethodUnwrap
Unwrap returns the Activation which omits local state.
interpreter/interpreter.go:116
↓ 6 callersFunctionValidateComprehensionNestingLimit
ValidateComprehensionNestingLimit ensures that comprehension nesting does not exceed the specified limit. This validator can be useful for preventing
cel/validator.go:257
↓ 6 callersMethodWithJSONFieldNames
WithJSONFieldNames configures the registry with the JSON field name support enabled or disabled.
common/types/provider.go:273
↓ 6 callersMethodZero
Zero returns an empty immutable protobuf message when the description is a protobuf message type.
common/types/pb/type.go:38
↓ 6 callersFunctionattrQualify
attrQualify performs a qualification using the result of an attribute evaluation.
interpreter/attributes.go:1545
↓ 6 callersFunctionattrQualifyIfPresent
attrQualifyIfPresent conditionally performs the qualification of the result of attribute is present on the target object.
interpreter/attributes.go:1559
↓ 6 callersFunctionawaitEval
awaitEval runs ConcurrentEval and returns the result or fails on timeout.
cel/program_async_test.go:1076
↓ 6 callersFunctionbuildZeroArgAsync
buildZeroArgAsync builds a zero-arity async overload from an option and returns its AsyncOp.
cel/async/async_test.go:43
↓ 6 callersFunctioncheckCostGoldenV0Actual
checkCostGoldenV0Actual evaluates the checked ast with cost tracking at cost model version 0, and compares the cost with the one v0.32.0 charged.
ext/cost_golden_test.go:135
↓ 6 callersFunctioncheckCostGoldenV0Estimate
checkCostGoldenV0Estimate estimates the checked ast at cost model version 0 with the estimator the release test used, and compares the estimate with t
ext/cost_golden_test.go:120
↓ 6 callersMethodcheckLimit
()
common/cost/tracker.go:252
↓ 6 callersFunctioncostBoundsCases
costBoundsCases builds the cases for a library, labelled with the version under test so that failures identify the environment as well as the expressi
common/cost/cost_bounds_test.go:263
↓ 6 callersFunctionextractIterVars
(mef cel.MacroExprFactory, arg0, arg1 ast.Expr)
ext/comprehensions.go:401
↓ 6 callersFunctionfile_test_proto3pb_test_all_types_proto_rawDescGZIP
()
test/proto3pb/test_all_types.pb.go:1118
↓ 6 callersFunctionfoldEstimates
foldEstimates estimates the operands and combines the estimates from left to right with op, attaching the operands' metadata as combineMeta describes.
common/cost/model.go:855
↓ 6 callersFunctionfuncOf
funcOf returns a late-bound implementation which reports the tag it was created with, so that tests can identify which of several bindings was resolve
interpreter/activation_test.go:209
↓ 6 callersMethodgetOrCreate
getOrCreate returns the existing call state for the (node id, args) tuple, or registers and returns a new one. A newly registered call is assigned a u
interpreter/async.go:223
↓ 6 callersMethodgetType
getType returns the deduced type of an expression ID from the checked AST.
common/cost/estimator.go:1091
↓ 6 callersFunctioninRange
inRange reports whether s is all decimal digits and its value lies in [lo, hi].
common/types/timestamp.go:118
↓ 6 callersMethodisAssignable
(t1, t2 *types.Type)
checker/checker.go:648
↓ 6 callersFunctionisDyn
isDyn returns true if the input t is either type DYN or a well-known ANY message.
checker/types.go:22
↓ 6 callersFunctionisStandardAdapter
(adapter Adapter)
common/types/provider.go:1208
↓ 6 callersFunctionjsonEncodeValue
(val ref.Val)
ext/encoders.go:446
↓ 6 callersMethodmaybeCreateLiteral
(id int64, val ref.Val)
interpreter/prune.go:89
↓ 6 callersMethodmaybeValue
(id int64)
interpreter/prune.go:473
↓ 6 callersMethodnewGlobalCall
(ctx any, function string, args ...ast.Expr)
parser/helper.go:92
↓ 6 callersFunctionnewLexer
(content runes.Buffer)
parser/lexer.go:227
↓ 6 callersMethodnewLiteral
(ctx any, value ref.Val)
parser/helper.go:52
↓ 6 callersFunctionnewNonOptionalCompositionStep
newNonOptionalCompositionStep returns an output step whose output is not optional.
policy/composer.go:498
↓ 6 callersFunctionnewTestStructTypeRegistry
(t *testing.T)
common/types/provider_test.go:1695
↓ 6 callersFunctionpackAny
packAny constructs an empty interface value from a raw runtime *_type pointer and data pointer.
common/types/provider.go:1120
↓ 6 callersMethodpeekLocalVar
peekLocalVar looks up the top of the scope stack for a local variable name.
common/cost/estimator.go:335
↓ 6 callersFunctionprogram
(t testing.TB, tst *testCase, opts ...PlannerOption)
interpreter/interpreter_test.go:2656
↓ 6 callersMethodskipWhitespace
()
common/env/io.go:376
↓ 6 callersMethodstringSize
stringSize converts a character or byte length to an element count where stringUnitLength characters count as a single element, rounding up with a min
common/types/size_calc.go:180
↓ 6 callersFunctiontestCompreEnv
(t *testing.T, opts ...cel.EnvOption)
ext/comprehensions_test.go:806
↓ 6 callersFunctiontestMustParse
(t testing.TB, data any)
interpreter/interpreter_test.go:2779
↓ 6 callersMethodtypeMismatch
(id int64, l common.Location, expected, actual *types.Type)
checker/errors.go:89
↓ 6 callersFunctionverifyCostBounds
verifyCostBounds runs every case and fails t for any violation that is not allowlisted. It also fails when an allowlisted case no longer violates the
common/cost/cost_bounds_test.go:178
↓ 6 callersMethodvisitMaybeNested
(expr ast.Expr, nested bool)
parser/unparser.go:496
↓ 6 callersMethodvisitNode
()
common/types/size_calc.go:120
↓ 5 callersFunctionAbbrevs
Abbrevs configures a set of simple names as abbreviations for fully-qualified names. An abbreviation (abbrev for short) is a simple name that expands
common/containers/container.go:213
↓ 5 callersMethodAddExcludedFunctions
AddExcludedFunctions deny-lists one or more functions from the subset.
common/env/env.go:689
↓ 5 callersMethodAddFunctions
AddFunctions adds one or more functions to the config.
common/env/env.go:180
↓ 5 callersMethodAliasSet
AliasSet returns the alias to fully-qualified name mapping stored in the container.
common/containers/container.go:137
↓ 5 callersMethodAppend
Append collects the issues from another Issues struct into a new Issues object.
cel/env.go:1225
↓ 5 callersFunctionAtLeastOneSize
AtLeastOneSize returns a size estimate with min and max guaranteed to be at least 1.
common/cost/cost.go:198
↓ 5 callersMethodAttr
Attr returns the Attribute value.
interpreter/interpretable.go:86
↓ 5 callersFunctionBindingsVersion
BindingsVersion sets the version of the bindings library to an explicit version.
ext/bindings.go:73
↓ 5 callersMethodCheckedType
CheckedType returns the type-definition used at type-check time.
common/types/pb/type.go:222
↓ 5 callersMethodComputeOffset
ComputeOffset calculates the 0-based character offset from a 1-based line and 0-based column.
common/ast/ast.go:419
↓ 5 callersFunctionConfigFromJSON
ConfigFromJSON returns a config from JSON source. Adds custom parsing logic for normalizing shorthand for specifying some fields in a JSON document (
common/env/io.go:491
↓ 5 callersFunctionConfigFromYAML
ConfigFromYAML returns a config from YAML source. Adds custom parsing logic for normalizing shorthand for specifiying some fields in a YAML document
common/env/io.go:463
↓ 5 callersFunctionConstant
Constant creates an instances of an identifier declaration with a variable name, type, and value.
cel/decls.go:136
↓ 5 callersFunctionConstantValueMatcher
ConstantValueMatcher returns an ExprMatcher which will return true if the input NavigableExpr is comprised of all constant values, such as a simple li
common/ast/navigable.go:72
↓ 5 callersMethodDeclarationIsEquivalent
DeclarationIsEquivalent returns true if one variable declaration has the same name and same type as the input.
common/decls/decls.go:1182
↓ 5 callersFunctionDeclareContextProto
DeclareContextProto returns an option to extend CEL environment with declarations from the given context proto. Each field of the proto defines a vari
cel/options.go:1032
↓ 5 callersMethodDepth
Depth indicates the depth in the expression tree. The root expression has depth 0.
common/ast/navigable.go:42
↓ 5 callersFunctionDrainReady
DrainReady returns a strategy that waits for a short duration after the first completion to batch any other functions that complete at roughly the sam
cel/async/async.go:82
↓ 5 callersFunctionEnableIdentifierEscapeSyntax
EnableIdentifierEscapeSyntax enables identifier escaping (`) syntax for fields.
cel/options.go:1115
↓ 5 callersMethodEnumValue
EnumValue returns the numeric value of the given enum value name.
common/types/provider.go:48
↓ 5 callersMethodEquals
Equals returns whether two references are identical to each other.
common/ast/ast.go:514
↓ 5 callersFunctionEquivReferences
EquivReferences configures the reference maps to use for validating reference equivalence between two expressions or ASTs.
common/ast/equiv.go:38
↓ 5 callersMethodErrors
Errors returns the collection of errors encountered in more granular detail.
cel/env.go:1217
↓ 5 callersMethodEvalBinary
EvalBinary records the cost for a binary call expression.
common/cost/tracker.go:240
↓ 5 callersFunctionExtensionOptionFactory
ExtensionOptionFactory converts an ExtensionConfig value to a CEL environment option.
ext/extension_option_factory.go:26
↓ 5 callersMethodFieldMap
FieldMap returns a string field name to FieldDescription map.
common/types/pb/type.go:101
↓ 5 callersMethodFindStringKey
(string)
common/types/map_test.go:1355
↓ 5 callersFunctionFoldKnownValues
FoldKnownValues adds an Activation which provides known values for the folding evaluator Any values the activation provides will be used by the const
cel/folding.go:49
↓ 5 callersMethodGetOps
GetOps returns the ops token list.
repl/parser/commands_parser.go:4642
↓ 5 callersMethodGetOpt
GetOpt returns the opt token.
repl/parser/commands_parser.go:9276
↓ 5 callersMethodGetOrDefault
(name string, value any)
cel/validator.go:155
↓ 5 callersMethodGetTok
()
parser/gen/cel_parser.go:5901
↓ 5 callersMethodGetValues
GetValues returns the values rule context list.
repl/parser/commands_parser.go:8739
↓ 5 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:453
↓ 5 callersMethodHasFeature
HasFeature checks whether the environment enables the given feature flag, as enumerated in options.go.
cel/env.go:704
↓ 5 callersFunctionInterruptCheckFrequency
InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate before checking whether the function evaluation has bee
cel/options.go:809
↓ 5 callersMethodIsAssignableRuntimeType
IsAssignableRuntimeType determines whether the current type is runtime assignable from the input runtimeType. At runtime, parameterized types are era
common/types/types.go:328
↓ 5 callersMethodIsLocalVariable
(name string)
interpreter/interpreter.go:122
↓ 5 callersFunctionJSONFieldNames
JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
checker/options.go:62
↓ 5 callersFunctionJSONFieldNames
JSONFieldNames supports accessing protocol buffer fields by json-name. Enabling JSON field name support will create a copy of the types.Registry with
cel/options.go:508
← previousnext →701–800 of 9,178, ranked by callers