MCPcopy Create free account

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

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

↓ 3 callersMethodPop
Pop returns the parent Scopes value for the current scope, or the current scope if the parent is nil.
checker/scopes.go:59
↓ 3 callersMethodPrograms
Programs creates a list of CEL programs from the input expressions configured in the test runner using the provided program options.
tools/celtest/test_runner.go:574
↓ 3 callersFunctionProtoAsValue
ProtoAsValue converts between cel.expr.Value and ref.Val.
cel/io.go:330
↓ 3 callersMethodQualifierValueEquals
QualifierValueEquals returns true if the input value is equal to the value held in the Qualifier.
interpreter/attribute_patterns.go:138
↓ 3 callersMethodQualifiers
Qualifiers returns the list of qualifiers associated with the Attribute.
interpreter/attributes.go:126
↓ 3 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/attributes.go:85
↓ 3 callersFunctionReceiverVarArgMacro
ReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
cel/macro.go:175
↓ 3 callersFunctionRefValueToValue
RefValueToValue converts between ref.Val and google.api.expr.v1alpha1.Value. The result Value is the serialized proto form. The ref.Val must not be er
cel/io.go:161
↓ 3 callersMethodRegisterDescriptor
(protoreflect.FileDescriptor)
cel/options.go:362
↓ 3 callersMethodRender
Render renders the user prompt with the associated context from the prompt template for use with LLM generators. User-supplied input is passed as tem
cel/prompt.go:140
↓ 3 callersMethodReportErrorString
ReportErrorString records an error at a source location.
common/errors.go:50
↓ 3 callersFunctionSafeTrunc
SafeTrunc returns the integer part of the input, saturating at math.MaxUint64 and flooring at zero. # Negative inputs return zero, and NaN saturates
common/cost/cost.go:145
↓ 3 callersMethodSetAsyncMaxConcurrency
SetAsyncMaxConcurrency sets the maximum concurrency for asynchronous function calls. A non-positive value indicates that concurrency is unbounded.
interpreter/frame.go:462
↓ 3 callersMethodSetName
SetName configures the policy name.
policy/parser.go:128
↓ 3 callersMethodSetValue
SetValue sets the observed value of the expression id.
interpreter/evalstate.go:31
↓ 3 callersFunctionSingletonAsyncBinding
SingletonAsyncBinding creates a singleton async function definition to be used with all function overloads. The provided function is called in its own
common/decls/decls.go:586
↓ 3 callersMethodSize
Size returns the estimated size of an AST node.
common/cost/model.go:1383
↓ 3 callersFunctionStandardOverloadEstimators
StandardOverloadEstimators returns the map of FunctionEstimator instances for standard overloads.
common/cost/standard.go:223
↓ 3 callersFunctionStandardOverloadTrackersWithOptions
StandardOverloadTrackersWithOptions returns the map of FunctionTracker instances for standard overloads, configured by the supplied options. The mode
common/cost/standard.go:247
↓ 3 callersMethodString
String converts the issues to a suitable display string.
cel/env.go:1236
↓ 3 callersMethodString
String implements the fmt.Stringer interface method.
common/types/native.go:278
↓ 3 callersMethodSyntaxVersion
SyntaxVersion returns the syntax version associated with the text expression.
common/ast/ast.go:292
↓ 3 callersMethodTests
Tests creates a list of tests from the test suite file and test suite parser configured in the test runner. Note: The test setup uses env.PartialVars
tools/celtest/test_runner.go:613
↓ 3 callersMethodToCatalog
ToCatalog converts the Config to a Catalog containing its functions, variables, container, and imports.
common/env/catalog.go:264
↓ 3 callersMethodToConfig
ToConfig produces a YAML-serializable env.Config object from the given environment. The serialized configuration value is intended to represent a bas
cel/env.go:255
↓ 3 callersMethodToImmutableList
()
common/types/traits/lister.go:35
↓ 3 callersMethodToImmutableMap
ToImmutableMap converts a mutable map into an immutable map.
common/types/traits/mapper.go:47
↓ 3 callersFunctionToQualifiedName
ToQualifiedName converts an expression AST into a qualified name if possible, with a boolean 'found' value that indicates if the conversion is success
common/containers/container.go:313
↓ 3 callersFunctionTrackerLimitExceededHandler
TrackerLimitExceededHandler sets a custom handler invoked when the cost limit is exceeded.
common/cost/tracker.go:91
↓ 3 callersFunctionTrackerPresenceTestHasCost
TrackerPresenceTestHasCost determines whether presence testing has a cost of one or zero. Defaults to presence test has a cost of one.
common/cost/tracker.go:83
↓ 3 callersMethodType
Type of the expression. If the expression is type-checked, the type check metadata is returned. If the expression has not been type-checked, the type
common/ast/navigable.go:31
↓ 3 callersMethodType
Type returns the types.Type value associated with the variable.
common/decls/decls.go:1165
↓ 3 callersFunctionTypeDescriptorSetFile
TypeDescriptorSetFile returns an EnvOption which loads type descriptors from a file. The file must be in binary format.
tools/compiler/compiler.go:437
↓ 3 callersMethodTypeParams
TypeParams returns the type parameter names associated with the overload.
common/decls/decls.go:775
↓ 3 callersFunctionTypeToExprType
TypeToExprType converts a CEL-native type representation to a protobuf CEL Type representation.
cel/decls.go:396
↓ 3 callersFunctionUintValue
UintValue returns the value of a non-negative literal int or uint node as a uint64, or false if the node is not a non-negative integer literal.
common/cost/cost.go:454
↓ 3 callersMethodUnknownAttributePatterns
UnknownAttributePaths returns a set of AttributePattern values which match Attribute expressions for data accesses whose values are not yet known.
interpreter/activation.go:221
↓ 3 callersFunctionValidateBindNestingLimit
ValidateBindNestingLimit ensures that cel.bind() macro nesting does not exceed the specified limit. This validator can be useful for preventing arbit
cel/validator.go:264
↓ 3 callersFunctionValidateRegexLiterals
ValidateRegexLiterals ensures that regex patterns are validated after type-check.
cel/validator.go:236
↓ 3 callersFunctionValidatedDeclarations
ValidatedDeclarations provides a reference to validated declarations which will be inherited as a parent scope without copying.
checker/options.go:54
↓ 3 callersMethodValue
Value returns the constant value associated with the qualifier.
interpreter/attributes.go:96
↓ 3 callersFunctionValueAsProto
ValueAsProto converts between ref.Val and cel.expr.Value. The result Value is the serialized proto form. The ref.Val must not be error or unknown.
cel/io.go:228
↓ 3 callersMethodVarDecl
()
repl/parser/commands_parser.go:1508
↓ 3 callersMethodVariables
Variables returns the order set of Variable tuples.
policy/parser.go:257
↓ 3 callersMethodWildcard
Wildcard adds a special sentinel qualifier pattern that will match any single qualifier.
interpreter/attribute_patterns.go:92
↓ 3 callersFunctionadaptLiteral
adaptLiteral converts a runtime CEL value to its equivalent literal expression. For strongly typed values, the type-provider will be used to reconstr
cel/folding.go:472
↓ 3 callersFunctionadaptToExpr
(e *exprpb.Expr)
cel/macro.go:545
↓ 3 callersMethodadd
(from, to *types.Type)
checker/mapping.go:41
↓ 3 callersMethodaddTerm
addTerm adds an operation identifier and term to the set of terms to be balanced.
parser/helper.go:328
↓ 3 callersMethodadorn
(e any)
common/debug/debug.go:292
↓ 3 callersFunctionallowFor
allowFor builds allowlist entries for a label, so that the keys line up with the case names.
common/cost/cost_bounds_test.go:590
↓ 3 callersFunctionanyDataPtr
anyDataPtr returns the data pointer word from an empty interface value.
common/types/provider.go:1134
↓ 3 callersFunctionapplyQualifiers
(vars Activation, obj any, qualifiers []Qualifier)
interpreter/attributes.go:1490
↓ 3 callersFunctionassertConfigEquals
(t *testing.T, got, want *Config)
common/env/env_test.go:256
↓ 3 callersFunctionasyncControllable
asyncControllable returns a channel-based AsyncOp whose calls block until release is closed, tracking the number of concurrently live calls and the hi
interpreter/async_test.go:529
↓ 3 callersFunctionauth
Functions for constructing CEL inputs. auth constructs a `google.rpc.context.AttributeContext.Auth` message.
codelab/solution/codelab.go:493
↓ 3 callersFunctionbase64DecodeString
(str string)
ext/encoders.go:384
↓ 3 callersFunctioncanQualifyRawVal
(adapter Adapter, elemType reflect.Type, metaQualifyRaw bool)
common/types/provider.go:1219
↓ 3 callersFunctioncarriesElements
carriesElements reports whether an expression may denote a container, and so whether an absent element or key size on its estimate means "unknown" rat
common/cost/helper.go:455
↓ 3 callersFunctioncompareDouble
(a, b Double)
common/types/compare.go:69
↓ 3 callersFunctioncompareDoubleInt
(d Double, i Int)
common/types/compare.go:23
↓ 3 callersFunctioncompareDoubleUint
(d Double, u Uint)
common/types/compare.go:37
↓ 3 callersFunctioncompareIntUint
(i Int, u Uint)
common/types/compare.go:51
↓ 3 callersMethodcompile
compile binds each model's function in order, so a later model replaces an earlier one with the same ID.
common/cost/version.go:125
↓ 3 callersFunctioncomputeExprSize
computeExprSize computes the size estimate from literal and declared container expressions.
common/cost/estimator.go:1271
↓ 3 callersFunctioncomputeHMAC
(msg, secret []byte, hType crypto.Hash)
ext/security/hmac/hmac.go:416
↓ 3 callersMethodcomputeOffset
computeOffset converts a 0-based character offset from the local source content to the corresponding absolute character offset in the parent SourceInf
parser/helper.go:158
↓ 3 callersMethodcondition
condition returns the condition associated with the output.
policy/composer.go:465
↓ 3 callersFunctionconstructTestActivation
(t testing.TB, in any)
interpreter/runtimememory_test.go:319
↓ 3 callersMethodcopySizeEstimates
copySizeEstimates copies computed sizes and entry sizes from a source expression to a destination expression.
common/cost/estimator.go:1163
↓ 3 callersMethoddeleteID
(id int64)
parser/helper.go:217
↓ 3 callersFunctiondescribeCELType
(t *types.Type)
common/decls/decls.go:1312
↓ 3 callersFunctiondoubleToInt64Checked
doubleToInt64Checked converts a double to an int64 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:302
↓ 3 callersFunctionequalValue
(fd protoreflect.FieldDescriptor, x, y protoreflect.Value)
common/types/pb/equal.go:150
↓ 3 callersFunctionestimateModelCost
estimateModelCost compiles a single-argument global model with the given sizing strategy and returns its cost estimate for an argument of the given si
common/cost/totals_test.go:27
↓ 3 callersFunctionestimateRegexSearchCost
(c cost.Estimator, args []cost.AstNode)
ext/regex.go:329
↓ 3 callersFunctionestimateSelfCompareCost
(estimator cost.Estimator, keysNode, targetNode cost.AstNode, elemType *types.Type, legacy, clampMin bool)
ext/lists.go:1156
↓ 3 callersMethodexprEquiv
(e1, e2 Expr)
common/ast/equiv.go:198
↓ 3 callersFunctionextractIdent
(e ast.Expr)
parser/macro.go:597
↓ 3 callersFunctionfieldTypeConversionError
(field *pb.FieldDescription, err error)
common/types/provider.go:1101
↓ 3 callersFunctionfileExists
(path string)
conformance/policy/policy_conformance_test.go:148
↓ 3 callersMethodfindStructDescriptorByReflectType
(rt reflect.Type)
common/types/provider.go:589
↓ 3 callersFunctionfnEnvOption
()
tools/celtest/test_runner_test.go:175
↓ 3 callersFunctionformatList
(l traits.Lister, sb *strings.Builder)
common/types/list.go:461
↓ 3 callersFunctionformatMap
(m traits.Mapper, sb *strings.Builder)
common/types/map.go:356
↓ 3 callersFunctionformatSuggestionSuffix
(name string, syms []*env.CatalogSymbol)
checker/errors.go:162
↓ 3 callersFunctionfuncDecl
(t testing.TB, name string, opts ...decls.FunctionOpt)
interpreter/interpreter_test.go:2874
↓ 3 callersMethodgetCatalog
()
checker/errors.go:33
↓ 3 callersFunctiongetDynamicSliceMeta
(rt reflect.Type)
common/types/provider.go:1262
↓ 3 callersFunctiongetMapElementsAggregateSize
getMapElementsAggregateSize computes the aggregate size of a map payload.
common/types/size_calc.go:439
↓ 3 callersFunctiongetProtoListAggregateSize
(c *sizeContext, l protoreflect.List)
common/types/size_calc.go:338
↓ 3 callersFunctiongetProtoMapAggregateSize
(c *sizeContext, m protoreflect.Map)
common/types/size_calc.go:352
↓ 3 callersFunctiongetProtoMessageAggregateSize
(c *sizeContext, m protoreflect.Message)
common/types/size_calc.go:323
↓ 3 callersFunctiongetSliceElementsAggregateSize
getSliceElementsAggregateSize computes the aggregate size of known slice payloads without reflection.
common/types/size_calc.go:369
↓ 3 callersMethodgetSourceInfo
()
parser/helper.go:44
↓ 3 callersMethodhasDeclaredPrefix
(env *Env, qualifierPrefixes ...string)
checker/errors.go:150
↓ 3 callersMethodhasField
(fieldName string)
common/types/native.go:302
↓ 3 callersFunctionhashCall
hashCall computes the composite bucket key for an async call. Only string, int, double, uint, and bool argument values contribute to the hash. More c
interpreter/async.go:202
↓ 3 callersFunctioninternalIsAssignable
internalIsAssignable returns true if t1 is assignable to t2.
checker/types.go:123
↓ 3 callersFunctionisAlpha
(c byte)
common/env/io.go:386
← previousnext →1,201–1,300 of 9,178, ranked by callers