Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,240 in github.com/cel-expr/cel-go
⨍
Functions
7,240
◇
Types & classes
842
↓ 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
JSONName
JSONName returns the JSON name of the field, if present.
common/types/pb/type.go:364
↓ 7 callers
Function
KindMatcher
KindMatcher returns an ExprMatcher which will return true if the input NavigableExpr.Kind() matches the specified `kind`.
common/ast/navigable.go:78
↓ 7 callers
Method
LT
LT mimics (*antlr.InputStream).LT.
parser/input.go:53
↓ 7 callers
Method
MacroCalls
MacroCalls returns the map of macro calls currently in the context.
cel/optimizer.go:316
↓ 7 callers
Function
MergeUnknowns
MergeUnknowns combines two unknown values into a new unknown value.
common/types/unknown.go:290
↓ 7 callers
Method
Negate
Negate returns the complement of the current value.
common/types/traits/math.go:54
↓ 7 callers
Method
NewAST
NewAST creates an AST from the current expression using the tracked source info which is modified and managed by the OptimizerContext.
cel/optimizer.go:273
↓ 7 callers
Method
NewAccuIdent
NewAccuIdent creates an Expr value representing an accumulator identifier within a comprehension.
common/ast/factory.go:44
↓ 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
Function
NewConstantFoldingOptimizer
NewConstantFoldingOptimizer creates an optimizer which inlines constant scalar an aggregate literal values within function calls and select statements
cel/folding.go:60
↓ 7 callers
Method
NewError
NewError associates an error message with a given expression id.
cel/macro.go:142
↓ 7 callers
Function
NewEvalState
NewEvalState returns an EvalState instanced used to observe the intermediate evaluations of an expression.
interpreter/evalstate.go:44
↓ 7 callers
Function
NewExprVisitor
NewExprVisitor creates a visitor which only visits expression nodes.
common/ast/navigable.go:167
↓ 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:842
↓ 7 callers
Method
PlanProgram
PlanProgram generates an evaluable instance of the AST in the go-native representation within the environment (Env).
cel/env.go:695
↓ 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
Push
Push pushes the given activation onto the activation stack and returns the new frame. This operation is internal to the interpreter and is used to ha
interpreter/frame.go:138
↓ 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:137
↓ 7 callers
Function
ReceiverMacro
ReceiverMacro creates a Macro for a receiver function matching the specified arg count.
cel/macro.go:165
↓ 7 callers
Method
ReflectType
ReflectType returns the Golang reflect.Type for this type.
common/types/pb/type.go:149
↓ 7 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
↓ 7 callers
Method
ResultType
ResultType indicates the output type from calling the function.
common/decls/decls.go:693
↓ 7 callers
Method
SetContext
SetContext sets the context for the execution frame.
interpreter/frame.go:87
↓ 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:361
↓ 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:122
↓ 7 callers
Function
StringSource
StringSource converts a string and location description to a model.Source.
policy/source.go:27
↓ 7 callers
Function
adaptToProto
(e ast.Expr)
cel/macro.go:566
↓ 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
fieldNameByTag
(structTagToParse string)
ext/native.go:146
↓ 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:945
↓ 7 callers
Function
mustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callers
Method
newExpr
(ctx any)
parser/helper.go:147
↓ 7 callers
Function
newNativeType
(fieldNameHandler NativeTypesFieldNameHandler, rawType reflect.Type)
ext/native.go:654
↓ 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
↓ 7 callers
Function
substitute
substitute replaces all direct and indirect occurrences of bound type parameters. Unbound type parameters are replaced by DYN if typeParamToDyn is tru
checker/types.go:277
↓ 7 callers
Function
timestampOf
(t time.Time)
common/types/timestamp.go:39
↓ 7 callers
Method
verifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting_v2.go:551
↓ 7 callers
Method
verifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting.go:611
↓ 6 callers
Method
AddExcludedMacros
AddExcludedMacros deny-lists one or more macros by function name.
common/env/env.go:673
↓ 6 callers
Method
AddFeatures
AddFeatures appends one or more features to the config.
common/env/env.go:210
↓ 6 callers
Method
AddIncludedMacros
AddIncludedMacros allow-lists one or more macros by function name. Note, this option will override any excluded macros.
common/env/env.go:667
↓ 6 callers
Method
AddSerializableOption
AddSerializableOption adds an option to the basic environment that is flagged as YAML compatible.
repl/evaluator.go:680
↓ 6 callers
Method
Attr
Attr returns the Attribute value.
interpreter/interpretable.go:86
↓ 6 callers
Method
Buffer
(e ast.Expr)
common/debug/debug.go:83
↓ 6 callers
Method
Children
Children returns a list of child expression nodes.
common/ast/navigable.go:37
↓ 6 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
↓ 6 callers
Method
Consume
Consume implements (antlr.CharStream).Consume.
parser/input.go:30
↓ 6 callers
Method
ContextEval
ContextEval evaluates the program with a set of input variables and a context object in order to support cancellation and timeouts. This method must b
cel/program.go:54
↓ 6 callers
Method
CopyExpr
CopyExpr creates a deep copy of the input Expr value.
common/ast/factory.go:22
↓ 6 callers
Method
Documentation
Documentation returns the documentation coded by the DocKind to assist with text formatting.
common/doc.go:183
↓ 6 callers
Function
Equal
Equal returns whether the two ref.Value are heterogeneously equivalent.
common/types/util.go:41
↓ 6 callers
Function
ErrorRecoveryLimit
ErrorRecoveryLimit limits the number of attempts the parser will perform to recover from an error.
parser/options.go:65
↓ 6 callers
Method
EstimateCost
EstimateCost estimates the cost of a type checked CEL expression using the length estimates of input data and extension functions provided by estimato
cel/env.go:809
↓ 6 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
↓ 6 callers
Method
Extensions
Extensions returns the set of extensions present in the source.
common/ast/ast.go:433
↓ 6 callers
Method
FindStructFieldNames
FindStructFieldNames returns thet field names associated with the type, if the type is found.
common/types/provider.go:59
↓ 6 callers
Function
FixedSizeEstimate
FixedSizeEstimate returns a size estimate with a fixed min and max range.
checker/cost.go:110
↓ 6 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
↓ 6 callers
Method
HasIterVar2
HasIterVar2 returns true if the second iteration variable is non-empty.
common/ast/expr.go:286
↓ 6 callers
Method
Index
Index implements (antlr.CharStream).Index.
parser/input.go:66
↓ 6 callers
Method
IsChecked
IsChecked returns whether the Ast value has been successfully type-checked.
cel/env.go:74
↓ 6 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
↓ 6 callers
Function
JSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:106
↓ 6 callers
Method
Kind
Kind indicates general category of the type.
common/types/types.go:284
↓ 6 callers
Function
LateFunctionBinding
LateFunctionBinding indicates that the function has a binding which is not known at compile time. This is useful for functions which have side-effects
common/decls/decls.go:902
↓ 6 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
↓ 6 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:345
↓ 6 callers
Method
Member
()
parser/gen/cel_parser.go:2535
↓ 6 callers
Method
Name
Name returns the function name in human-readable terms, e.g. 'contains' of 'math.least'
common/decls/decls.go:111
↓ 6 callers
Function
NewCheckedAST
NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
common/ast/ast.go:121
↓ 6 callers
Function
NewEmptyRegistry
NewEmptyRegistry returns a registry which is completely unconfigured.
common/types/provider.go:165
↓ 6 callers
Function
NewIdentReference
NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
common/ast/ast.go:475
↓ 6 callers
Method
NewMap
NewMap creates a CreateStruct instruction for a map where the map is comprised of the optional set of key, value entries.
cel/macro.go:85
↓ 6 callers
Method
NewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
parser/macro.go:212
↓ 6 callers
Method
NewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
cel/macro.go:88
↓ 6 callers
Method
NewPresenceTest
NewPresenceTest creates a Select TestOnly Expr value for modelling has() semantics.
parser/macro.go:285
↓ 6 callers
Function
NewRegistry
NewRegistry accepts a list of proto message instances and returns a type provider which can create new instances of the provided message or any messag
common/types/provider.go:98
↓ 6 callers
Method
Parent
Parent returns the parent of the current activation, may be nil. If non-nil, the parent will be searched during resolve calls.
interpreter/activation.go:34
↓ 6 callers
Function
ParseType
ParseType parses a human readable type string into the protobuf representation.
repl/typefmt.go:215
← previous
next →
401–500 of 7,240, ranked by callers