Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,844 in github.com/cel-expr/cel-go
⨍
Functions
7,844
◇
Types & classes
931
↓ 3 callers
Method
GetOverloadIDs
GetOverloadIDs returns the set of overload function names for a given expression id. If the expression id is not a function call, or the AST is not t
common/ast/ast.go:79
↓ 3 callers
Method
GetT
GetT returns the t rule contexts.
repl/parser/commands_parser.go:1903
↓ 3 callers
Method
GetValues
GetValues returns the values rule context list.
repl/parser/commands_parser.go:8739
↓ 3 callers
Method
GetVar_
GetVar_ returns the var_ rule contexts.
repl/parser/commands_parser.go:949
↓ 3 callers
Method
GlobalCall
GlobalCall creates a function call Expr value for a global (free) function.
cel/macro.go:127
↓ 3 callers
Method
HasOptionalOutput
HasOptionalOutput returns whether the rule returns a concrete or optional value. The rule may return an optional value if all match expressions under
policy/compiler.go:82
↓ 3 callers
Method
HasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:391
↓ 3 callers
Function
HomogeneousAggregateLiterals
HomogeneousAggregateLiterals disables mixed type list and map literal values. Note, it is still possible to have heterogeneous aggregates when provid
cel/options.go:237
↓ 3 callers
Method
Imports
Imports returns the list of imports associated with the policy.
policy/parser.go:88
↓ 3 callers
Function
IndexOrError
IndexOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:571
↓ 3 callers
Function
InitEmptyUnaryContext
(p *UnaryContext)
parser/gen/cel_parser.go:1770
↓ 3 callers
Function
InitEmptyUnaryContext
(p *UnaryContext)
repl/parser/commands_parser.go:5728
↓ 3 callers
Method
InitVals
InitVals returns all the list elements, map key and values or struct field values.
interpreter/interpretable.go:139
↓ 3 callers
Method
Insert
Insert a key, value pair into the map, returning the map if the insert is successful and an error if key already exists in the mutable map.
common/types/traits/mapper.go:44
↓ 3 callers
Method
IsEnum
IsEnum returns true if the field type refers to an enum value.
common/types/pb/type.go:321
↓ 3 callers
Function
JSONFieldNames
JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
checker/options.go:46
↓ 3 callers
Method
LineOffsets
LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
common/ast/ast.go:308
↓ 3 callers
Method
LocationOffset
LocationOffset translates a Location to an offset. Given the line and column of the Location returns the Location's character offset in the Source, an
common/source.go:43
↓ 3 callers
Function
MathVersion
MathVersion sets the library version for math extensions.
ext/math.go:400
↓ 3 callers
Function
MaxExpressionNodeCount
MaxExpressionNodeCount limits the maximum number of expression nodes that may be emitted by the parser, including nodes created by macro expansion.
parser/options.go:103
↓ 3 callers
Function
MaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 3 callers
Method
MaybeUnwrap
MaybeUnwrap accepts a proto message as input and unwraps it to a primitive CEL type if possible. This method returns the unwrapped value and 'true',
common/types/pb/type.go:134
↓ 3 callers
Method
Metadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:108
↓ 3 callers
Method
Modulo
Modulo returns the result of taking the modulus of the current value by the denominator. A denominator value of zero results in an error.
common/types/traits/math.go:42
↓ 3 callers
Method
Name
Name returns the snake_case name of the field within the proto-based struct.
common/types/pb/type.go:359
↓ 3 callers
Method
Name
Name returns the fully-qualified variable name
common/decls/decls.go:1059
↓ 3 callers
Function
NewBufferAndLineOffsetsWithLimit
NewBufferAndLineOffsetsWithLimit returns an efficient implementation of Buffer for the given text and enforces a code point limit while constructing t
common/runes/buffer.go:143
↓ 3 callers
Function
NewCommandsLexer
NewCommandsLexer produces a new lexer instance for the optional input antlr.CharStream.
repl/parser/commands_lexer.go:345
↓ 3 callers
Function
NewCommandsParser
NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
repl/parser/commands_parser.go:282
↓ 3 callers
Function
NewConstant
NewConstant creates a new constant declaration.
common/decls/decls.go:1028
↓ 3 callers
Function
NewExampleDoc
NewExampleDoc creates a new Doc struct specifically for holding an example.
common/doc.go:161
↓ 3 callers
Function
NewFunctionWithDoc
NewFunctionWithDoc creates a serializable function and overload set.
common/env/env.go:346
↓ 3 callers
Function
NewGlobalVarArgMacro
NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count.
parser/macro.go:73
↓ 3 callers
Function
NewLimit
NewLimit creates a new limit.
common/env/env.go:762
↓ 3 callers
Function
NewMutableList
NewMutableList creates a new mutable list whose internal state can be modified.
common/types/list.go:92
↓ 3 callers
Function
NewObjectType
NewObjectType creates an object type for a qualified type name.
checker/decls/decls.go:168
↓ 3 callers
Function
NewTestRunner
NewTestRunner creates a Test Runner with the provided options. The options can be used to: - configure the Compiler used for parsing and compiling the
tools/celtest/test_runner.go:419
↓ 3 callers
Function
NewTypeValue
NewTypeValue creates an opaque type which has a set of optional type traits as defined in the common/types/traits package. Deprecated: use cel.Object
common/types/types.go:570
↓ 3 callers
Function
NewVariableWithDoc
NewVariableWithDoc returns a serializable variable from a name, type definition, and doc string.
common/env/env.go:249
↓ 3 callers
Function
OptionalTypesVersion
OptionalTypesVersion configures the version of the optional type library. The version limits which functions are available. Only functions introduced
cel/library.go:390
↓ 3 callers
Function
OverloadIsNonStrict
OverloadIsNonStrict enables the function to be called with error and unknown argument values. Note: do not use this option unless absoluately necessa
cel/decls.go:382
↓ 3 callers
Method
ParseSource
ParseSource parses the input source to an Ast and/or set of Issues. Parsing has failed if the returned Issues value and its Issues.Err() value is non
cel/env.go:714
↓ 3 callers
Function
ParseTypeDesc
ParseTypeDesc parses a TypeDesc from the type specifier format: "map<string, int>"
common/env/io.go:117
↓ 3 callers
Function
PartialEvalProgramOption
PartialEvalProgramOption returns a TestRunnerOption which enables partial evaluation for the CEL program by setting the OptPartialEval eval option. N
tools/celtest/test_runner.go:537
↓ 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:306
↓ 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
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:137
↓ 3 callers
Method
RegisterDescriptor
(protoreflect.FileDescriptor)
cel/options.go:334
↓ 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
Method
SetAsyncMaxConcurrency
SetAsyncMaxConcurrency sets the maximum concurrency for asynchronous function calls. A non-positive value indicates that concurrency is unbounded.
interpreter/frame.go:307
↓ 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:565
↓ 3 callers
Function
SizeCalculatorMaxTraversal
SizeCalculatorMaxTraversal sets the maximum object traversal limit before saturating to math.MaxUint32.
common/types/size_calc.go:46
↓ 3 callers
Method
String
String converts the issues to a suitable display string.
cel/env.go:1114
↓ 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
Function
ToDebugStringWithIDs
ToDebugStringWithIDs returns a string representation with AST node IDs.
common/debug/debug.go:327
↓ 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
Method
Type
Type returns the types.Type value associated with the variable.
common/decls/decls.go:1077
↓ 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:746
↓ 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:254
↓ 3 callers
Function
ValidateRegexLiterals
ValidateRegexLiterals ensures that regex patterns are validated after type-check.
cel/validator.go:226
↓ 3 callers
Function
ValidatedDeclarations
ValidatedDeclarations provides a reference to validated declarations which will be inherited as a parent scope without copying.
checker/options.go:38
↓ 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:204
↓ 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
adaptToExpr
(e *exprpb.Expr)
cel/macro.go:545
↓ 3 callers
Method
addPath
(e ast.Expr, path []string)
checker/cost.go:865
↓ 3 callers
Method
adorn
(e any)
common/debug/debug.go:292
↓ 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:452
↓ 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
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
Function
computeHMAC
(msg, secret []byte, hType crypto.Hash)
ext/security/hmac/hmac.go:334
↓ 3 callers
Method
condition
condition returns the condition associated with the output.
policy/composer.go:459
↓ 3 callers
Method
container
container returns the container kind (list or map) of the entry.
checker/cost.go:303
↓ 3 callers
Function
describeCELType
(t *types.Type)
common/decls/decls.go:1224
↓ 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
doubleToUint64Lossless
(v float64)
common/types/overflow.go:399
↓ 3 callers
Function
equalValue
(fd protoreflect.FieldDescriptor, x, y protoreflect.Value)
common/types/pb/equal.go:150
↓ 3 callers
Function
estimateElementEqualityCost
(estimator checker.CostEstimator, elemType *types.Type, itemSize checker.SizeEstimate)
ext/lists.go:995
↓ 3 callers
Function
estimateItemSize
(estimator checker.CostEstimator, node checker.AstNode)
ext/lists.go:975
↓ 3 callers
Function
extractIdent
(e ast.Expr)
parser/macro.go:597
↓ 3 callers
Function
fieldTypeConversionError
(field *pb.FieldDescription, err error)
common/types/provider.go:1019
↓ 3 callers
Function
fileExists
(path string)
conformance/policy/policy_conformance_test.go:148
↓ 3 callers
Method
find
(from *types.Type)
checker/mapping.go:35
↓ 3 callers
Function
fnEnvOption
()
tools/celtest/test_runner_test.go:175
↓ 3 callers
Function
funcDecl
(t testing.TB, name string, opts ...decls.FunctionOpt)
interpreter/interpreter_test.go:2700
← previous
next →
901–1,000 of 7,844, ranked by callers