MCPcopy Create free account

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

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

↓ 6 callersFunctionExhaustiveEval
ExhaustiveEval replaces operations that short-circuit with versions that evaluate expressions and couples this behavior with the TrackState() decorato
interpreter/interpreter.go:186
↓ 6 callersMethodExtensions
Extensions returns the set of extensions present in the source.
common/ast/ast.go:441
↓ 6 callersMethodFindStructFieldNames
FindStructFieldNames returns thet field names associated with the type, if the type is found.
common/types/provider.go:59
↓ 6 callersMethodGetFrom
GetFrom returns the accessor method associated with the field on the proto generated struct. If the field is not set, the proto default value is retu
common/types/pb/type.go:284
↓ 6 callersMethodHasIterVar2
HasIterVar2 returns true if the second iteration variable is non-empty.
common/ast/expr.go:286
↓ 6 callersMethodHasLateBinding
HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
common/decls/decls.go:316
↓ 6 callersMethodIndex
Index implements (antlr.CharStream).Index.
parser/input.go:66
↓ 6 callersMethodIsSet
IsSet returns true if the field is defined and set to a non-default value. The method will return false if defined and not set, and an error if the fi
common/types/traits/field_tester.go:29
↓ 6 callersFunctionJSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:106
↓ 6 callersMethodKind
Kind indicates general category of the type.
common/types/types.go:284
↓ 6 callersFunctionLateFunctionBinding
LateFunctionBinding indicates that the function has a binding which is not known at compile time. This is useful for functions which have side-effects
common/decls/decls.go:988
↓ 6 callersFunctionMaybeNoSuchOverload
MaybeNoSuchOverload determines whether to propagate an error if one is provided as an argument, or to return an unknown set, or to produce a new error
common/decls/decls.go:430
↓ 6 callersMethodMember
()
parser/gen/cel_parser.go:2535
↓ 6 callersMethodName
Name returns the function name in human-readable terms, e.g. 'contains' of 'math.least'
common/decls/decls.go:112
↓ 6 callersFunctionNewCheckedAST
NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
common/ast/ast.go:121
↓ 6 callersFunctionNewEmptyRegistry
NewEmptyRegistry returns a registry which is completely unconfigured.
common/types/provider.go:165
↓ 6 callersFunctionNewIdentReference
NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
common/ast/ast.go:483
↓ 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 callersFunctionNewRegistry
NewRegistry accepts a list of proto message instances and returns a type provider which can create new instances of the provided message or any messag
common/types/provider.go:98
↓ 6 callersMethodObserveExec
ObserveExec evaluates an interpretable and performs per-evaluation state-tracking. This method is concurrency safe and the expectation is that the ob
interpreter/interpretable.go:179
↓ 6 callersMethodParent
Parent returns the parent of the current activation, may be nil. If non-nil, the parent will be searched during resolve calls.
interpreter/activation.go:34
↓ 6 callersMethodParse
Parse parses the expression represented by source and returns the result.
parser/parser.go:98
↓ 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/parser.go:300
↓ 6 callersMethodRegisterMessage
RegisterMessage registers a protocol buffer message and its dependencies.
common/types/ref/provider.go:73
↓ 6 callersMethodRegisterType
RegisterType registers a type value with the provider which ensures the provider is aware of how to map the type to an identifier. If a type is provi
common/types/ref/provider.go:80
↓ 6 callersFunctionSerializeTypeDesc
SerializeTypeDesc converts a CEL native *types.Type to a serializable TypeDesc.
common/env/env.go:969
↓ 6 callersMethodSetContainer
SetContainer configures the container name for this configuration.
common/env/env.go:110
↓ 6 callersMethodSetDisabled
SetDisabled disables or enables the library.
common/env/env.go:653
↓ 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:531
↓ 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:251
↓ 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:115
↓ 6 callersMethodState
State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
cel/program.go:147
↓ 6 callersMethodSubtract
Subtract returns the result of subtracting the input from the current value.
common/types/traits/math.go:61
↓ 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 callersFunctionTwoVarComprehensions
TwoVarComprehensions introduces support for two-variable comprehensions. The two-variable form of comprehensions looks similar to the one-variable co
ext/comprehensions.go:163
↓ 6 callersFunctionUnparse
Unparse takes an input expression and source position information and generates a human-readable expression. Note, unparsing an AST will often genera
parser/unparser.go:44
↓ 6 callersMethodUnwrap
Unwrap returns the Activation which omits local state.
interpreter/interpreter.go:113
↓ 6 callersFunctionValidateComprehensionNestingLimit
ValidateComprehensionNestingLimit ensures that comprehension nesting does not exceed the specified limit. This validator can be useful for preventing
cel/validator.go:258
↓ 6 callersFunctionawaitEval
awaitEval runs ConcurrentEval and returns the result or fails on timeout.
cel/program_async_test.go:919
↓ 6 callersFunctionbuildZeroArgAsync
buildZeroArgAsync builds a zero-arity async overload from an option and returns its AsyncOp.
cel/async/async_test.go:43
↓ 6 callersMethodcomputeSize
(e ast.Expr)
checker/cost.go:943
↓ 6 callersFunctionestimateAllocatingListCall
estimateAllocatingListCall computes cost as a function of the size of the result list with a baseline cost for the call dispatch and the associated li
ext/lists.go:830
↓ 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 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:218
↓ 6 callersMethodgetType
(e ast.Expr)
checker/cost.go:882
↓ 6 callersFunctioninRange
inRange reports whether s is all decimal digits and its value lies in [lo, hi].
common/types/timestamp.go:116
↓ 6 callersMethodisAssignable
(t1, t2 *types.Type)
checker/checker.go:640
↓ 6 callersFunctionisDyn
isDyn returns true if the input t is either type DYN or a well-known ANY message.
checker/types.go:22
↓ 6 callersMethodmaybeCreateLiteral
(id int64, val ref.Val)
interpreter/prune.go:89
↓ 6 callersMethodmaybeValue
(id int64)
interpreter/prune.go:473
↓ 6 callersMethodnewLiteral
(ctx any, value ref.Val)
parser/helper.go:52
↓ 6 callersFunctionnewTestEnv
(t testing.TB, cont *containers.Container, reg *types.Registry)
interpreter/interpreter_test.go:2561
↓ 6 callersFunctionsetLimit
(id limitID, limit int)
cel/options.go:978
↓ 6 callersMethodsetup
(t testing.TB, env *cel.Env, ast *cel.Ast)
policy/compiler_test.go:334
↓ 6 callersMethodskipWhitespace
()
common/env/io.go:236
↓ 6 callersFunctiontestCompreEnv
(t *testing.T, opts ...cel.EnvOption)
ext/comprehensions_test.go:795
↓ 6 callersFunctiontestMustParse
(t testing.TB, data any)
interpreter/interpreter_test.go:2539
↓ 6 callersMethodtypeMismatch
(id int64, l common.Location, expected, actual *types.Type)
checker/errors.go:73
↓ 6 callersMethodvisitMaybeNested
(expr ast.Expr, nested bool)
parser/unparser.go:458
↓ 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:687
↓ 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:1049
↓ 5 callersFunctionAsPartialActivation
AsPartialActivation walks the activation hierarchy and returns the first PartialActivation, if found.
interpreter/activation.go:214
↓ 5 callersMethodAsPartialActivation
AsPartialActivation converts the current activation to a PartialActivation
interpreter/activation.go:194
↓ 5 callersFunctionAstToParsedExpr
AstToParsedExpr converts an Ast to an protobuf ParsedExpr value.
cel/io.go:114
↓ 5 callersFunctionBindingsVersion
BindingsVersion sets the version of the bindings library to an explicit version.
ext/bindings.go:73
↓ 5 callersFunctionCheckedExprToAst
CheckedExprToAst converts a checked expression proto message to an Ast.
cel/io.go:37
↓ 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 callersMethodConcurrentEval
ConcurrentEval evaluates the program concurrently, returning a channel that will receive the final EvalResult when all asynchronous operations complet
cel/program.go:71
↓ 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 callersFunctionCustomDecoratorV2
CustomDecoratorV2 configures a custom V2 interpretable decorator for the program.
interpreter/interpreter.go:174
↓ 5 callersFunctionCustomTypeAdapter
CustomTypeAdapter swaps the default types.Adapter implementation with a custom one. Note: This option must be specified before the Types and TypeDesc
cel/options.go:163
↓ 5 callersFunctionCustomTypeProvider
CustomTypeProvider replaces the types.Provider implementation with a custom one. The `provider` variable type may either be types.Provider or ref.Typ
cel/options.go:175
↓ 5 callersMethodDeclarationIsEquivalent
DeclarationIsEquivalent returns true if one variable declaration has the same name and same type as the input.
common/decls/decls.go:1084
↓ 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:881
↓ 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:955
↓ 5 callersMethodEnumValue
EnumValue returns the numeric value of the given enum value name.
common/types/provider.go:43
↓ 5 callersMethodEquals
Equals returns whether two references are identical to each other.
common/ast/ast.go:507
↓ 5 callersFunctionErrorRecoveryLookaheadTokenLimit
ErrorRecoveryLookaheadTokenLimit limits the number of lexer tokens that may be considered during error recovery. Error recovery often involves lookin
parser/options.go:55
↓ 5 callersMethodErrors
Errors returns the collection of errors encountered in more granular detail.
cel/env.go:1041
↓ 5 callersMethodEstimateSize
EstimateSize returns a SizeEstimate for the given AstNode, or nil if the estimator has no estimate to provide. The size is equivalent to the result o
checker/cost.go:41
↓ 5 callersMethodExtend
Extend creates a new Container with the existing settings and applies a series of ContainerOptions to further configure the new container.
common/containers/container.go:60
↓ 5 callersFunctionExtendedValidations
ExtendedValidations collects a set of common AST validations which reduce the likelihood of runtime errors. - Validate duration and timestamp literal
cel/validator.go:217
↓ 5 callersFunctionExtensionOptionFactory
ExtensionOptionFactory converts an ExtensionConfig value to a CEL environment option.
ext/extension_option_factory.go:25
↓ 5 callersMethodFieldMap
FieldMap returns a string field name to FieldDescription map.
common/types/pb/type.go:101
↓ 5 callersMethodFindFieldType
FieldFieldType returns the field type for a checked type value. Returns false if the field could not be found.
common/types/ref/provider.go:40
↓ 5 callersMethodFindType
FindType looks up the Type given a qualified typeName. Returns false if not found.
common/types/ref/provider.go:36
↓ 5 callersMethodFunctions
Functions returns a shallow copy of the Functions, keyed by function name, that have been configured in the environment.
cel/env.go:651
← previousnext →501–600 of 7,546, ranked by callers