Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,701 in github.com/cel-expr/cel-go
⨍
Functions
7,701
◇
Types & classes
905
↓ 8 callers
Method
NewComprehension
NewComprehension creates a new one-variable comprehension instruction. - iterRange represents the expression that resolves to a list or map where the
parser/macro.go:236
↓ 8 callers
Function
NewEvalState
NewEvalState returns an EvalState instanced used to observe the intermediate evaluations of an expression.
interpreter/evalstate.go:44
↓ 8 callers
Method
NewIdent
NewIdent creates an identifier Expr value.
parser/macro.go:270
↓ 8 callers
Method
NewMap
NewMap creates a CreateStruct instruction for a map where the map is comprised of the optional set of key, value entries.
parser/macro.go:209
↓ 8 callers
Method
NewMemberCall
NewMemberCall creates a function call Expr value for a receiver-style function.
parser/macro.go:282
↓ 8 callers
Function
NewRefValList
NewRefValList returns a traits.Lister with ref.Val elements. This type specialization is used with list literals within CEL expressions.
common/types/list.go:60
↓ 8 callers
Method
NewSelect
NewSelect creates an Expr representing a field selection on an operand expression.
common/ast/factory.go:68
↓ 8 callers
Function
NewStringStringMap
NewStringStringMap returns a specialized traits.Mapper with string keys and values.
common/types/map.go:81
↓ 8 callers
Method
OffsetRanges
OffsetRanges returns a map of expression id to OffsetRange values where the range indicates either: the start and end position in the input stream whe
common/ast/ast.go:352
↓ 8 callers
Method
ReflectType
ReflectType returns the backing Go reflect.Type associated with the struct (or nil if non-reflected).
common/types/struct.go:26
↓ 8 callers
Method
RegisterMessage
RegisterMessage registers a protocol buffer message and its dependencies.
common/types/ref/provider.go:73
↓ 8 callers
Method
RelativeAttribute
RelativeAttribute creates an attribute whose value is a qualification of a dynamic computation rather than a static variable reference.
interpreter/attributes.go:53
↓ 8 callers
Method
ResidualAst
ResidualAst takes an Ast and its EvalDetails to produce a new Ast which only contains the attribute references which are unknown. Residual expression
cel/env.go:860
↓ 8 callers
Method
SetKindCase
SetKindCase replaces the contents of the current expression with the contents of the other. The SetKindCase takes ownership of any expression instanc
common/ast/expr.go:113
↓ 8 callers
Function
StringsVersion
StringsVersion configures the version of the string library. The version limits which functions are available. Only functions introduced below or equ
ext/strings.go:363
↓ 8 callers
Method
Type
Type returns the type constructed.
interpreter/interpretable.go:142
↓ 8 callers
Function
ValidateHomogeneousAggregateLiterals
ValidateHomogeneousAggregateLiterals checks that all list and map literals entries have the same types, i.e. no mixed list element types or mixed map
cel/validator.go:235
↓ 8 callers
Function
assertShared
(t *testing.T, reg *Registry)
common/types/provider_test.go:73
↓ 8 callers
Method
computeEntrySize
(e ast.Expr)
checker/cost.go:977
↓ 8 callers
Function
durationOf
(d time.Duration)
common/types/duration.go:39
↓ 8 callers
Function
eval
eval will evaluate a given program `prg` against a set of variables `vars` and return the output, eval details (optional), or error that results from
codelab/solution/codelab.go:404
↓ 8 callers
Function
file_test_proto2pb_test_all_types_proto_rawDescGZIP
()
test/proto2pb/test_all_types.pb.go:1256
↓ 8 callers
Method
getPath
(e ast.Expr)
checker/cost.go:886
↓ 8 callers
Function
newTestRegistry
(t testing.TB)
checker/env_test.go:93
↓ 8 callers
Method
typeOf
(id int64)
ext/formatting_v2.go:547
↓ 8 callers
Method
typeOf
(id int64)
ext/formatting.go:607
↓ 8 callers
Method
visit
(expr ast.Expr)
parser/unparser.go:87
↓ 7 callers
Method
AddExtensions
AddExtensions appends a set of extensions to the config.
common/env/env.go:198
↓ 7 callers
Method
AddImports
AddImports appends a set of imports to the config.
common/env/env.go:192
↓ 7 callers
Method
AddIncludedFunctions
AddIncludedFunctions allow-lists one or more functions from the subset. Note, this option will override any excluded functions.
common/env/env.go:681
↓ 7 callers
Function
AstToCheckedExpr
AstToCheckedExpr converts an Ast to an protobuf CheckedExpr value. If the Ast.IsChecked() returns false, this conversion method will return an error.
cel/io.go:66
↓ 7 callers
Function
AsyncBinding
AsyncBinding provides the implementation of an asynchronous overload. The provided function is called in its own goroutine with the provided context.
common/decls/decls.go:968
↓ 7 callers
Method
CollectMetadata
CollectMetadata records the source position information of a given YAML node, and returns the id associated with the source metadata which is returned
policy/parser.go:682
↓ 7 callers
Method
ConditionalAttribute
ConditionalAttribute creates an attribute with two Attribute branches, where the Attribute that is resolved depends on the boolean evaluation of the i
interpreter/attributes.go:43
↓ 7 callers
Function
ContextProtoVars
ContextProtoVars uses the fields of the input proto.Messages as top-level variables within an Activation. Consider using with `DeclareContextProto` t
cel/options.go:917
↓ 7 callers
Method
CopyASTAndMetadata
CopyASTAndMetadata copies the input AST and propagates the macro metadata into the AST being optimized.
cel/optimizer.go:293
↓ 7 callers
Function
CustomTypeAdapter
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:166
↓ 7 callers
Function
Encoders
Encoders returns a cel.EnvOption to configure extended functions for string, byte, and object encodings. # Base64.Decode Decodes base64-encoded stri
ext/encoders.go:69
↓ 7 callers
Function
Equal
Equal returns whether the two ref.Value are heterogeneously equivalent.
common/types/util.go:41
↓ 7 callers
Function
EvalStateObserver
EvalStateObserver provides an observer which records the value associated with the given expression id. EvalState must be provided to the observer.
interpreter/interpreter.go:94
↓ 7 callers
Method
Expr
()
parser/gen/cel_parser.go:600
↓ 7 callers
Method
FindType
FindType looks up the Type given a qualified typeName. Returns false if not found.
common/types/ref/provider.go:36
↓ 7 callers
Method
GetE
GetE returns the e rule contexts.
repl/parser/commands_parser.go:955
↓ 7 callers
Method
GetFrom
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
↓ 7 callers
Method
GetName
()
test/proto2pb/test_all_types.pb.go:780
↓ 7 callers
Method
GetStartLocation
GetStartLocation calculates the human-readable 1-based line and 0-based column of the first character of the expression node at the id.
common/ast/ast.go:385
↓ 7 callers
Function
InitEmptyPrimaryContext
(p *PrimaryContext)
parser/gen/cel_parser.go:2810
↓ 7 callers
Function
InitEmptyPrimaryContext
(p *PrimaryContext)
repl/parser/commands_parser.go:6768
↓ 7 callers
Method
IsChecked
IsChecked returns whether the Ast value has been successfully type-checked.
cel/env.go:79
↓ 7 callers
Method
IsList
IsList returns true if the field is a repeated value. This method will also return true for map values, so check whether the field is also a map.
common/types/pb/type.go:345
↓ 7 callers
Method
IsMap
IsMap returns true if the field is of map type.
common/types/pb/type.go:326
↓ 7 callers
Method
IsOptional
IsOptional specifies whether the qualifier is optional. Instead of a direct qualification, an optional qualifier will be resolved via QualifyIfPresent
interpreter/attributes.go:75
↓ 7 callers
Method
IsSet
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
↓ 7 callers
Method
JSONName
JSONName returns the JSON name of the field, if present.
common/types/pb/type.go:364
↓ 7 callers
Method
LT
LT mimics (*antlr.InputStream).LT.
parser/input.go:53
↓ 7 callers
Function
Lists
Lists returns a cel.EnvOption to configure extended functions for list manipulation. As a general note, all indices are zero-based. # Distinct Intro
ext/lists.go:155
↓ 7 callers
Method
MacroCalls
MacroCalls returns the map of macro calls currently in the context.
cel/optimizer.go:316
↓ 7 callers
Function
Math
Math returns a cel.EnvOption to configure namespaced math helper macros and functions. Note, all macros use the 'math' namespace; however, at the tim
ext/math.go:347
↓ 7 callers
Method
Negate
Negate returns the complement of the current value.
common/types/traits/math.go:54
↓ 7 callers
Method
NewAccuIdent
NewAccuIdent creates an Expr value representing an accumulator identifier within a comprehension.
common/ast/factory.go:44
↓ 7 callers
Function
NewActivation
NewActivation returns an activation based on a map-based binding where the map keys are expected to be qualified names used with ResolveName calls. T
cel/program.go:93
↓ 7 callers
Function
NewBuffer
NewBuffer returns an efficient implementation of Buffer for the given text based on the ranges of the encoded code points contained within.
common/runes/buffer.go:129
↓ 7 callers
Method
NewComprehension
NewComprehension creates an Expr value representing a one-variable comprehension over a value range.
common/ast/factory.go:31
↓ 7 callers
Method
NewError
NewError associates an error message with a given expression id.
cel/macro.go:142
↓ 7 callers
Function
NewExecutionFrame
NewExecutionFrame creates a new execution frame from the pool.
interpreter/frame.go:84
↓ 7 callers
Function
NewExtension
NewExtension creates a serializable Extension from a name and version string.
common/env/env.go:473
↓ 7 callers
Function
NewFeature
NewFeature creates a new feature flag with a boolean enablement flag.
common/env/env.go:733
↓ 7 callers
Method
NewMapEntry
NewMapEntry creates a MapEntry with a given key, value, and a flag indicating whether the key is optionally set.
common/ast/factory.go:62
↓ 7 callers
Function
NewMemberOverload
NewMemberOverload returns a new serializable representation of a member (receiver) overload.
common/env/env.go:402
↓ 7 callers
Function
NewOverload
NewOverload returns a new serializable representation of a global overload.
common/env/env.go:397
↓ 7 callers
Method
NewPresenceTest
NewPresenceTest creates an Expr representing a field presence test on an operand expression.
common/ast/factory.go:65
↓ 7 callers
Method
NewUnspecifiedExpr
NewUnspecifiedExpr creates an empty expression node.
common/ast/factory.go:79
↓ 7 callers
Function
OverloadExamples
OverloadExamples configures example expressions for the overload.
common/decls/decls.go:904
↓ 7 callers
Method
PlanProgram
PlanProgram generates an evaluable instance of the AST in the go-native representation within the environment (Env).
cel/env.go:735
↓ 7 callers
Method
ProtoReflect
()
test/proto3pb/test_all_types.pb.go:216
↓ 7 callers
Function
ProtoToExpr
ProtoToExpr converts a protobuf Expr value to an ast.Expr value.
common/ast/conversion.go:108
↓ 7 callers
Method
RangeMap
RangeMap iterates over the map and calls the provided function for each key-value pair. If the function returns false, the iteration will stop.
policy/yaml.go:49
↓ 7 callers
Method
Receive
Receive implements traits.Receiver.Receive.
common/types/timestamp.go:212
↓ 7 callers
Function
ReceiverMacro
ReceiverMacro creates a Macro for a receiver function matching the specified arg count.
cel/macro.go:165
↓ 7 callers
Method
RegisterType
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
↓ 7 callers
Method
ResultType
ResultType indicates the output type from calling the function.
common/decls/decls.go:737
↓ 7 callers
Method
SetContextVariable
SetContextVariable configures the ContextVariable for this configuration.
common/env/env.go:138
↓ 7 callers
Method
SetMacroCall
SetMacroCall sets the macro call metadata for the given macro id within the tracked source info metadata.
cel/optimizer.go:311
↓ 7 callers
Method
SetOffsetRange
SetOffsetRange sets the OffsetRange for the given expression id.
common/ast/ast.go:369
↓ 7 callers
Method
SetStdLib
SetStdLib configures the LibrarySubset for the standard library.
common/env/env.go:186
↓ 7 callers
Function
StdLibSubset
StdLibSubset configures the standard library to use a subset of its functions and macros. Since the StdLib is a singleton library, only the first ins
cel/library.go:124
↓ 7 callers
Function
StringSource
StringSource converts a string and location description to a model.Source.
policy/source.go:27
↓ 7 callers
Method
ToConfig
ToConfig converts the internal configuration of an ASTValidator into an env.Validator instance which minimally must include the validator name, but ma
cel/validator.go:140
↓ 7 callers
Function
adaptToProto
(e ast.Expr)
cel/macro.go:566
↓ 7 callers
Function
assertUnshared
(t *testing.T, reg *Registry)
common/types/provider_test.go:80
↓ 7 callers
Function
compile
Functions to assist with CEL execution. compile will parse and check an expression `expr` against a given environment `env` and determine whether the
codelab/solution/codelab.go:388
↓ 7 callers
Function
exprInternal
(factory ExprFactory, e *exprpb.Expr)
common/ast/conversion.go:125
↓ 7 callers
Function
fixedSizeEstimate
(val uint64)
ext/costs.go:92
↓ 7 callers
Method
getType
(e ast.Expr)
checker/checker.go:680
↓ 7 callers
Method
globalCallOrMacro
(exprID int64, function string, args ...ast.Expr)
parser/parser.go:953
↓ 7 callers
Function
mustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callers
Method
newExpr
(ctx any)
parser/helper.go:151
↓ 7 callers
Function
parsePolicy
(t testing.TB, name string, parseOpts []ParserOption)
policy/compiler_test.go:492
↓ 7 callers
Method
plan
(expr ast.Expr)
interpreter/planner.go:87
↓ 7 callers
Method
reportIssue
(e error)
repl/commands.go:159
← previous
next →
401–500 of 7,701, ranked by callers