Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
9,178 in github.com/cel-expr/cel-go
⨍
Functions
9,178
◇
Types & classes
1,189
↓ 3 callers
Method
Pop
Pop returns the parent Scopes value for the current scope, or the current scope if the parent is nil.
checker/scopes.go:59
↓ 3 callers
Method
Programs
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 callers
Function
ProtoAsValue
ProtoAsValue converts between cel.expr.Value and ref.Val.
cel/io.go:330
↓ 3 callers
Method
QualifierValueEquals
QualifierValueEquals returns true if the input value is equal to the value held in the Qualifier.
interpreter/attribute_patterns.go:138
↓ 3 callers
Method
Qualifiers
Qualifiers returns the list of qualifiers associated with the Attribute.
interpreter/attributes.go:126
↓ 3 callers
Method
QualifyIfPresent
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 callers
Function
ReceiverVarArgMacro
ReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
cel/macro.go:175
↓ 3 callers
Function
RefValueToValue
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 callers
Method
RegisterDescriptor
(protoreflect.FileDescriptor)
cel/options.go:362
↓ 3 callers
Method
Render
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 callers
Method
ReportErrorString
ReportErrorString records an error at a source location.
common/errors.go:50
↓ 3 callers
Function
SafeTrunc
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 callers
Method
SetAsyncMaxConcurrency
SetAsyncMaxConcurrency sets the maximum concurrency for asynchronous function calls. A non-positive value indicates that concurrency is unbounded.
interpreter/frame.go:462
↓ 3 callers
Method
SetName
SetName configures the policy name.
policy/parser.go:128
↓ 3 callers
Method
SetValue
SetValue sets the observed value of the expression id.
interpreter/evalstate.go:31
↓ 3 callers
Function
SingletonAsyncBinding
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 callers
Method
Size
Size returns the estimated size of an AST node.
common/cost/model.go:1383
↓ 3 callers
Function
StandardOverloadEstimators
StandardOverloadEstimators returns the map of FunctionEstimator instances for standard overloads.
common/cost/standard.go:223
↓ 3 callers
Function
StandardOverloadTrackersWithOptions
StandardOverloadTrackersWithOptions returns the map of FunctionTracker instances for standard overloads, configured by the supplied options. The mode
common/cost/standard.go:247
↓ 3 callers
Method
String
String converts the issues to a suitable display string.
cel/env.go:1236
↓ 3 callers
Method
String
String implements the fmt.Stringer interface method.
common/types/native.go:278
↓ 3 callers
Method
SyntaxVersion
SyntaxVersion returns the syntax version associated with the text expression.
common/ast/ast.go:292
↓ 3 callers
Method
Tests
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 callers
Method
ToCatalog
ToCatalog converts the Config to a Catalog containing its functions, variables, container, and imports.
common/env/catalog.go:264
↓ 3 callers
Method
ToConfig
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 callers
Method
ToImmutableList
()
common/types/traits/lister.go:35
↓ 3 callers
Method
ToImmutableMap
ToImmutableMap converts a mutable map into an immutable map.
common/types/traits/mapper.go:47
↓ 3 callers
Function
ToQualifiedName
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 callers
Function
TrackerLimitExceededHandler
TrackerLimitExceededHandler sets a custom handler invoked when the cost limit is exceeded.
common/cost/tracker.go:91
↓ 3 callers
Function
TrackerPresenceTestHasCost
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 callers
Method
Type
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 callers
Method
Type
Type returns the types.Type value associated with the variable.
common/decls/decls.go:1165
↓ 3 callers
Function
TypeDescriptorSetFile
TypeDescriptorSetFile returns an EnvOption which loads type descriptors from a file. The file must be in binary format.
tools/compiler/compiler.go:437
↓ 3 callers
Method
TypeParams
TypeParams returns the type parameter names associated with the overload.
common/decls/decls.go:775
↓ 3 callers
Function
TypeToExprType
TypeToExprType converts a CEL-native type representation to a protobuf CEL Type representation.
cel/decls.go:396
↓ 3 callers
Function
UintValue
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 callers
Method
UnknownAttributePatterns
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 callers
Function
ValidateBindNestingLimit
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 callers
Function
ValidateRegexLiterals
ValidateRegexLiterals ensures that regex patterns are validated after type-check.
cel/validator.go:236
↓ 3 callers
Function
ValidatedDeclarations
ValidatedDeclarations provides a reference to validated declarations which will be inherited as a parent scope without copying.
checker/options.go:54
↓ 3 callers
Method
Value
Value returns the constant value associated with the qualifier.
interpreter/attributes.go:96
↓ 3 callers
Function
ValueAsProto
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 callers
Method
VarDecl
()
repl/parser/commands_parser.go:1508
↓ 3 callers
Method
Variables
Variables returns the order set of Variable tuples.
policy/parser.go:257
↓ 3 callers
Method
Wildcard
Wildcard adds a special sentinel qualifier pattern that will match any single qualifier.
interpreter/attribute_patterns.go:92
↓ 3 callers
Function
adaptLiteral
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 callers
Function
adaptToExpr
(e *exprpb.Expr)
cel/macro.go:545
↓ 3 callers
Method
add
(from, to *types.Type)
checker/mapping.go:41
↓ 3 callers
Method
addTerm
addTerm adds an operation identifier and term to the set of terms to be balanced.
parser/helper.go:328
↓ 3 callers
Method
adorn
(e any)
common/debug/debug.go:292
↓ 3 callers
Function
allowFor
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 callers
Function
anyDataPtr
anyDataPtr returns the data pointer word from an empty interface value.
common/types/provider.go:1134
↓ 3 callers
Function
applyQualifiers
(vars Activation, obj any, qualifiers []Qualifier)
interpreter/attributes.go:1490
↓ 3 callers
Function
assertConfigEquals
(t *testing.T, got, want *Config)
common/env/env_test.go:256
↓ 3 callers
Function
asyncControllable
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 callers
Function
auth
Functions for constructing CEL inputs. auth constructs a `google.rpc.context.AttributeContext.Auth` message.
codelab/solution/codelab.go:493
↓ 3 callers
Function
base64DecodeString
(str string)
ext/encoders.go:384
↓ 3 callers
Function
canQualifyRawVal
(adapter Adapter, elemType reflect.Type, metaQualifyRaw bool)
common/types/provider.go:1219
↓ 3 callers
Function
carriesElements
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 callers
Function
compareDouble
(a, b Double)
common/types/compare.go:69
↓ 3 callers
Function
compareDoubleInt
(d Double, i Int)
common/types/compare.go:23
↓ 3 callers
Function
compareDoubleUint
(d Double, u Uint)
common/types/compare.go:37
↓ 3 callers
Function
compareIntUint
(i Int, u Uint)
common/types/compare.go:51
↓ 3 callers
Method
compile
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 callers
Function
computeExprSize
computeExprSize computes the size estimate from literal and declared container expressions.
common/cost/estimator.go:1271
↓ 3 callers
Function
computeHMAC
(msg, secret []byte, hType crypto.Hash)
ext/security/hmac/hmac.go:416
↓ 3 callers
Method
computeOffset
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 callers
Method
condition
condition returns the condition associated with the output.
policy/composer.go:465
↓ 3 callers
Function
constructTestActivation
(t testing.TB, in any)
interpreter/runtimememory_test.go:319
↓ 3 callers
Method
copySizeEstimates
copySizeEstimates copies computed sizes and entry sizes from a source expression to a destination expression.
common/cost/estimator.go:1163
↓ 3 callers
Method
deleteID
(id int64)
parser/helper.go:217
↓ 3 callers
Function
describeCELType
(t *types.Type)
common/decls/decls.go:1312
↓ 3 callers
Function
doubleToInt64Checked
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 callers
Function
equalValue
(fd protoreflect.FieldDescriptor, x, y protoreflect.Value)
common/types/pb/equal.go:150
↓ 3 callers
Function
estimateModelCost
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 callers
Function
estimateRegexSearchCost
(c cost.Estimator, args []cost.AstNode)
ext/regex.go:329
↓ 3 callers
Function
estimateSelfCompareCost
(estimator cost.Estimator, keysNode, targetNode cost.AstNode, elemType *types.Type, legacy, clampMin bool)
ext/lists.go:1156
↓ 3 callers
Method
exprEquiv
(e1, e2 Expr)
common/ast/equiv.go:198
↓ 3 callers
Function
extractIdent
(e ast.Expr)
parser/macro.go:597
↓ 3 callers
Function
fieldTypeConversionError
(field *pb.FieldDescription, err error)
common/types/provider.go:1101
↓ 3 callers
Function
fileExists
(path string)
conformance/policy/policy_conformance_test.go:148
↓ 3 callers
Method
findStructDescriptorByReflectType
(rt reflect.Type)
common/types/provider.go:589
↓ 3 callers
Function
fnEnvOption
()
tools/celtest/test_runner_test.go:175
↓ 3 callers
Function
formatList
(l traits.Lister, sb *strings.Builder)
common/types/list.go:461
↓ 3 callers
Function
formatMap
(m traits.Mapper, sb *strings.Builder)
common/types/map.go:356
↓ 3 callers
Function
formatSuggestionSuffix
(name string, syms []*env.CatalogSymbol)
checker/errors.go:162
↓ 3 callers
Function
funcDecl
(t testing.TB, name string, opts ...decls.FunctionOpt)
interpreter/interpreter_test.go:2874
↓ 3 callers
Method
getCatalog
()
checker/errors.go:33
↓ 3 callers
Function
getDynamicSliceMeta
(rt reflect.Type)
common/types/provider.go:1262
↓ 3 callers
Function
getMapElementsAggregateSize
getMapElementsAggregateSize computes the aggregate size of a map payload.
common/types/size_calc.go:439
↓ 3 callers
Function
getProtoListAggregateSize
(c *sizeContext, l protoreflect.List)
common/types/size_calc.go:338
↓ 3 callers
Function
getProtoMapAggregateSize
(c *sizeContext, m protoreflect.Map)
common/types/size_calc.go:352
↓ 3 callers
Function
getProtoMessageAggregateSize
(c *sizeContext, m protoreflect.Message)
common/types/size_calc.go:323
↓ 3 callers
Function
getSliceElementsAggregateSize
getSliceElementsAggregateSize computes the aggregate size of known slice payloads without reflection.
common/types/size_calc.go:369
↓ 3 callers
Method
getSourceInfo
()
parser/helper.go:44
↓ 3 callers
Method
hasDeclaredPrefix
(env *Env, qualifierPrefixes ...string)
checker/errors.go:150
↓ 3 callers
Method
hasField
(fieldName string)
common/types/native.go:302
↓ 3 callers
Function
hashCall
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 callers
Function
internalIsAssignable
internalIsAssignable returns true if t1 is assignable to t2.
checker/types.go:123
↓ 3 callers
Function
isAlpha
(c byte)
common/env/io.go:386
← previous
next →
1,201–1,300 of 9,178, ranked by callers