MCPcopy Create free account

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

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

↓ 1 callersMethodPrimary
()
repl/parser/commands_parser.go:7350
↓ 1 callersMethodProgramOptions
ProgramOptions returns a collection of functional options which should be included in every Program generated from the Env.Program() call.
cel/library.go:66
↓ 1 callersMethodProtoReflect
()
test/proto3pb/test_all_types.pb.go:727
↓ 1 callersMethodPushInherited
PushInherited creates a new Scopes value which references the current Scope as its inherited parent.
checker/scopes.go:50
↓ 1 callersMethodQualBool
QualBool adds a bool qualifier pattern for a map index operation to the AttributePattern.
interpreter/attribute_patterns.go:85
↓ 1 callersMethodQualUint
QualUint adds an uint qualifier pattern for a map index operation to the AttributePattern.
interpreter/attribute_patterns.go:78
↓ 1 callersMethodQualifierPath
QualifierPath returns the optional set of qualifying fields or indices applied to the variable.
common/types/unknown.go:99
↓ 1 callersMethodQualifierPatterns
QualifierPatterns returns the set of AttributeQualifierPattern values on the AttributePattern.
interpreter/attribute_patterns.go:105
↓ 1 callersMethodQualify
Qualify is an implementation of the Qualifier interface method.
interpreter/attributes.go:562
↓ 1 callersFunctionQualifyAttribute
QualifyAttribute qualifies an attribute using a valid AttributeQualifier type.
common/types/unknown.go:143
↓ 1 callersMethodQualifyIfPresent
QualifyIfPresent is an implementation of the Qualifier interface method.
interpreter/attributes.go:567
↓ 1 callersMethodREPLConfig
REPLConfig returns a stringified view of the current evaluator state in terms of REPL Commands.
repl/evaluator.go:798
↓ 1 callersMethodReceiverCall
ReceiverCall creates a function call Expr value for a receiver-style function.
cel/macro.go:130
↓ 1 callersFunctionRefValToExprValue
RefValToExprValue converts between ref.Val and google.api.expr.v1alpha1.ExprValue. The result ExprValue is the serialized proto form.
cel/io.go:179
↓ 1 callersMethodRegisterNativeType
RegisterNativeType creates nativeType instances for the given reflect.Type and registers them.
common/types/provider.go:560
↓ 1 callersMethodRegisterType
(...ref.Type)
cel/options.go:363
↓ 1 callersMethodRelSource
RelSource returns a RelativeSource for a given expression id.
policy/compiler.go:217
↓ 1 callersMethodRelation
(i int)
repl/parser/commands_parser.go:5136
↓ 1 callersMethodRelation_Sempred
(localctx antlr.RuleContext, predIndex int)
parser/gen/cel_parser.go:6160
↓ 1 callersMethodRelation_Sempred
(localctx antlr.RuleContext, predIndex int)
repl/parser/commands_parser.go:10118
↓ 1 callersMethodRelative
Relative produces a RelativeSource object for the content provided at the absolute location within the parent Source as indicated by the line and colu
policy/source.go:40
↓ 1 callersMethodRenumberIDs
RenumberIDs performs an in-place update of the expression IDs within the SourceInfo.
common/ast/ast.go:275
↓ 1 callersMethodResolveFunction
ResolveFunction implements the FunctionActivation interface using the bindings resolved when the evaluation began, so the cost of a lookup does not de
interpreter/frame.go:297
↓ 1 callersMethodResult
()
common/ast/expr.go:579
↓ 1 callersMethodResult
Result returns the size estimate of the result, if the model's result size has been estimated.
common/cost/model.go:1370
↓ 1 callersMethodResult
Result returns the runtime size of the result.
common/cost/model.go:1578
↓ 1 callersMethodResultMatcher
ResultMatcher returns the result matcher function of the test case.
tools/celtest/test_runner.go:400
↓ 1 callersMethodResultVal
ResultVal returns the evaluated result value.
common/cost/model.go:1554
↓ 1 callersFunctionRetry
Retry wraps a BlockingAsyncOp with a retry policy. It will retry the operation if it returns a types.Err that wraps a RetryableError returning true fo
cel/async/async.go:174
↓ 1 callersMethodRuleTag
RuleTag accepts a parser context, field id, tag name, yaml node, as well as the parent policy and current rule to allow for continued parsing within c
policy/parser.go:477
↓ 1 callersFunctionRunCase
RunCase evaluates a single test case against a custom environment, running three different variants of the expression: optimized, unoptimized, and tra
test/bench/bench.go:270
↓ 1 callersFunctionRunDynamicEnvCase
RunDynamicEnvCase runs a singular DynamicEnvCase.
test/bench/bench.go:315
↓ 1 callersFunctionRunReferenceCases
RunReferenceCases evaluates the set of ReferenceCases against a custom CEL environment. See: bench_test.go for an example.
test/bench/bench.go:245
↓ 1 callersFunctionRunReferenceDynamicEnvCases
RunReferenceDynamicEnvCases evaluates the set of ReferenceDynamicEnvCases.
test/bench/bench.go:253
↓ 1 callersMethodScientific
Scientific functions identically to Fixed, except the string returned from the closure is expected to be in scientific notation.
ext/formatting_v2.go:656
↓ 1 callersMethodScientific
Scientific functions identically to Fixed, except the string returned from the closure is expected to be in scientific notation.
ext/formatting.go:756
↓ 1 callersMethodScope
Scope returns the local activation scope for this frame, if present.
interpreter/frame.go:101
↓ 1 callersMethodSelect
Select create a field traversal Expr value.
cel/macro.go:136
↓ 1 callersMethodSemantic
Semantic returns the evaluation semantic for the policy.
policy/parser.go:62
↓ 1 callersMethodSetCostTracker
SetCostTracker sets the active CostTracker for this evaluation pass.
interpreter/frame.go:381
↓ 1 callersMethodSetDescription
SetDescription configures the policy description.
policy/parser.go:133
↓ 1 callersMethodSetDescription
SetDescription configures the description for the rule.
policy/parser.go:267
↓ 1 callersMethodSetExplanation
SetExplanation sets the explanation expression for the match.
policy/parser.go:411
↓ 1 callersMethodSetFunction
SetFunction adds the function Decl to the current scope. Note: Any previous entry for a function in the current scope with the same name is overwritte
checker/scopes.go:112
↓ 1 callersMethodSetID
SetID configures the id for the rule.
policy/parser.go:262
↓ 1 callersMethodSetName
SetName updates the fully qualified type name for the import.
policy/parser.go:190
↓ 1 callersMethodSetReference
SetReference adds a reference to the checked AST type map.
common/ast/ast.go:95
↓ 1 callersMethodSetResult
SetResult sets the completed result for an asynchronous function call.
interpreter/async.go:312
↓ 1 callersMethodSetRule
SetRule configures the policy rule entry point.
policy/parser.go:138
↓ 1 callersMethodSetSemantic
SetSemantic configures the evaluation semantic for the policy.
policy/parser.go:70
↓ 1 callersMethodSignatureEquals
SignatureEquals determines whether the incoming overload declaration signature is equal to the current signature. Result type, operand trait, and str
common/decls/decls.go:791
↓ 1 callersMethodSignatureOverlaps
SignatureOverlaps indicates whether two functions have non-equal, but overloapping function signatures. For example, list(dyn) collides with list(str
common/decls/decls.go:810
↓ 1 callersMethodSimple
()
repl/parser/commands_parser.go:2386
↓ 1 callersFunctionSimpleVariables
SimpleVariables configures the parser to allow for key-value pairs to declare a variable name and expression. For example: variables: - foo: bar
policy/parser.go:540
↓ 1 callersFunctionSingletonFunctionImpl
SingletonFunctionImpl creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is ex
cel/decls.go:283
↓ 1 callersMethodSize
Size implements the traits.Sizer interface method.
common/types/map.go:306
↓ 1 callersMethodSize
()
common/types/map.go:1083
↓ 1 callersMethodSize
()
common/types/list.go:1321
↓ 1 callersMethodSourceID
SourceID returns the source metadata identifier associated with the variable.
policy/compiler.go:113
↓ 1 callersMethodStartType
()
repl/parser/commands_parser.go:3406
↓ 1 callersMethodStart_
()
parser/gen/cel_parser.go:378
↓ 1 callersMethodTarget
()
common/ast/expr.go:493
↓ 1 callersMethodTarget
Target returns the size estimate for the receiver/target object.
common/cost/model.go:1362
↓ 1 callersMethodTarget
Target returns the runtime size of the receiver/target object.
common/cost/model.go:1570
↓ 1 callersMethodTargetType
TargetType returns the type of the receiver/target object.
common/cost/model.go:1407
↓ 1 callersMethodTargetType
TargetType returns the type of the receiver/target object.
common/cost/model.go:1487
↓ 1 callersMethodTargetVal
TargetVal returns the value of the receiver/target object.
common/cost/model.go:1546
↓ 1 callersMethodTargetValue
TargetValue returns the uint64 value of the receiver/target, or defaultVal if not a literal int/uint.
common/cost/model.go:1431
↓ 1 callersMethodTargetValue
TargetValue returns the uint64 value of the receiver/target object, or defaultVal.
common/cost/model.go:1479
↓ 1 callersFunctionTestSuiteParserOption
TestSuiteParserOption returns a TestRunnerOption which configures the test runner with a custom test suite parser.
tools/celtest/test_runner.go:315
↓ 1 callersFunctionTimeout
Timeout wraps a BlockingAsyncOp with a per-call timeout. The timeout is enforced even when the wrapped function ignores its context: the function run
cel/async/async.go:124
↓ 1 callersFunctionTimeoutBinding
TimeoutBinding wraps a BlockingAsyncOp with a per-call timeout and returns an OverloadOpt.
cel/async/async.go:140
↓ 1 callersFunctionToDebugString
ToDebugString gives the unadorned string representation of the Expr.
common/debug/debug.go:56
↓ 1 callersMethodTryAcquire
TryAcquire attempts to acquire a concurrency slot and increments the active calls count.
interpreter/async.go:481
↓ 1 callersMethodType
Type implements the InterpretableConstructor Type function.
interpreter/interpretable.go:1915
↓ 1 callersMethodType
()
common/types/provider_test.go:1687
↓ 1 callersMethodTypeId
Getter signatures
repl/parser/commands_parser.go:3453
↓ 1 callersMethodTypeId
()
repl/parser/commands_parser.go:3781
↓ 1 callersMethodTypeParamList
()
repl/parser/commands_parser.go:4142
↓ 1 callersFunctionTypeToProto
TypeToProto converts from a CEL-native type representation to canonical CEL celpb.Type protobuf type.
common/types/types.go:805
↓ 1 callersFunctionTypes
Types creates a RegistryOption which registers individual custom type references or descriptors with the registry.
common/types/provider.go:144
↓ 1 callersMethodUnary
()
parser/gen/cel_parser.go:2006
↓ 1 callersMethodUnary
()
repl/parser/commands_parser.go:5964
↓ 1 callersMethodUnion
Union returns a CostEstimate that encompasses both input CostEstimates.
common/cost/cost.go:375
↓ 1 callersFunctionUnknownCostEstimate
UnknownCostEstimate returns a cost with an unknown impact. Deprecated: use cost.UnknownCostEstimate
checker/cost.go:78
↓ 1 callersFunctionUnknownSizeEstimate
UnknownSizeEstimate returns a size between 0 and max uint. Deprecated: use cost.UnknownSizeEstimate
checker/cost.go:64
↓ 1 callersMethodUnknownVars
UnknownVars returns a PartialActivation which marks all variables declared in the Env as unknown AttributePattern values. Note, the UnknownVars will
cel/env.go:878
↓ 1 callersFunctionUpdateTestResourcesPaths
UpdateTestResourcesPaths updates the list of paths with their absolute paths as per their location in the testResourcesDir directory. This will allow
tools/celtest/test_runner.go:105
↓ 1 callersMethodValidate
Validate validates the import configuration is well-formed.
common/env/env.go:233
↓ 1 callersMethodValidate
Validate validates the variable configuration is well-formed.
common/env/env.go:271
↓ 1 callersMethodValidate
Validate validates the context-variable configuration is well-formed.
common/env/env.go:330
↓ 1 callersMethodValidate
Validate validates the function configuration is well-formed.
common/env/env.go:358
↓ 1 callersMethodValidate
Validate validates the overload configuration is well-formed.
common/env/env.go:416
↓ 1 callersMethodValidate
Validate validates the type configuration is well-formed.
common/env/env.go:810
↓ 1 callersMethodValue
Value implements ref.Val.Value.
common/types/uint.go:250
↓ 1 callersMethodValue
Value implements the ref.Val interface method.
common/types/bool.go:128
↓ 1 callersMethodValue
Value implements ref.Val.Value.
common/types/int.go:290
↓ 1 callersMethodValue
Value implements ref.Val.Value.
common/types/string.go:189
↓ 1 callersMethodValue
Value implements ref.Val.Value.
common/types/null.go:118
↓ 1 callersMethodValue
Value implements the ref.Val interface method.
common/types/bytes.go:142
← previousnext →2,601–2,700 of 9,178, ranked by callers