MCPcopy Create free account

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

Functions7,240 in github.com/cel-expr/cel-go

↓ 7 callersMethodIsList
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 callersMethodIsMap
IsMap returns true if the field is of map type.
common/types/pb/type.go:326
↓ 7 callersMethodIsOptional
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 callersMethodJSONName
JSONName returns the JSON name of the field, if present.
common/types/pb/type.go:364
↓ 7 callersFunctionKindMatcher
KindMatcher returns an ExprMatcher which will return true if the input NavigableExpr.Kind() matches the specified `kind`.
common/ast/navigable.go:78
↓ 7 callersMethodLT
LT mimics (*antlr.InputStream).LT.
parser/input.go:53
↓ 7 callersMethodMacroCalls
MacroCalls returns the map of macro calls currently in the context.
cel/optimizer.go:316
↓ 7 callersFunctionMergeUnknowns
MergeUnknowns combines two unknown values into a new unknown value.
common/types/unknown.go:290
↓ 7 callersMethodNegate
Negate returns the complement of the current value.
common/types/traits/math.go:54
↓ 7 callersMethodNewAST
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 callersMethodNewAccuIdent
NewAccuIdent creates an Expr value representing an accumulator identifier within a comprehension.
common/ast/factory.go:44
↓ 7 callersFunctionNewBuffer
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 callersMethodNewComprehension
NewComprehension creates an Expr value representing a one-variable comprehension over a value range.
common/ast/factory.go:31
↓ 7 callersFunctionNewConstantFoldingOptimizer
NewConstantFoldingOptimizer creates an optimizer which inlines constant scalar an aggregate literal values within function calls and select statements
cel/folding.go:60
↓ 7 callersMethodNewError
NewError associates an error message with a given expression id.
cel/macro.go:142
↓ 7 callersFunctionNewEvalState
NewEvalState returns an EvalState instanced used to observe the intermediate evaluations of an expression.
interpreter/evalstate.go:44
↓ 7 callersFunctionNewExprVisitor
NewExprVisitor creates a visitor which only visits expression nodes.
common/ast/navigable.go:167
↓ 7 callersFunctionNewExtension
NewExtension creates a serializable Extension from a name and version string.
common/env/env.go:473
↓ 7 callersFunctionNewFeature
NewFeature creates a new feature flag with a boolean enablement flag.
common/env/env.go:733
↓ 7 callersMethodNewMapEntry
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 callersFunctionNewMemberOverload
NewMemberOverload returns a new serializable representation of a member (receiver) overload.
common/env/env.go:402
↓ 7 callersFunctionNewOverload
NewOverload returns a new serializable representation of a global overload.
common/env/env.go:397
↓ 7 callersMethodNewPresenceTest
NewPresenceTest creates an Expr representing a field presence test on an operand expression.
common/ast/factory.go:65
↓ 7 callersMethodNewUnspecifiedExpr
NewUnspecifiedExpr creates an empty expression node.
common/ast/factory.go:79
↓ 7 callersFunctionOverloadExamples
OverloadExamples configures example expressions for the overload.
common/decls/decls.go:842
↓ 7 callersMethodPlanProgram
PlanProgram generates an evaluable instance of the AST in the go-native representation within the environment (Env).
cel/env.go:695
↓ 7 callersMethodProtoReflect
()
test/proto3pb/test_all_types.pb.go:216
↓ 7 callersFunctionProtoToExpr
ProtoToExpr converts a protobuf Expr value to an ast.Expr value.
common/ast/conversion.go:108
↓ 7 callersMethodPush
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 callersMethodRangeMap
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 callersMethodReceive
Receive implements traits.Receiver.Receive.
common/types/timestamp.go:137
↓ 7 callersFunctionReceiverMacro
ReceiverMacro creates a Macro for a receiver function matching the specified arg count.
cel/macro.go:165
↓ 7 callersMethodReflectType
ReflectType returns the Golang reflect.Type for this type.
common/types/pb/type.go:149
↓ 7 callersMethodRelativeAttribute
RelativeAttribute creates an attribute whose value is a qualification of a dynamic computation rather than a static variable reference.
interpreter/attributes.go:53
↓ 7 callersMethodResultType
ResultType indicates the output type from calling the function.
common/decls/decls.go:693
↓ 7 callersMethodSetContext
SetContext sets the context for the execution frame.
interpreter/frame.go:87
↓ 7 callersMethodSetContextVariable
SetContextVariable configures the ContextVariable for this configuration.
common/env/env.go:138
↓ 7 callersMethodSetMacroCall
SetMacroCall sets the macro call metadata for the given macro id within the tracked source info metadata.
cel/optimizer.go:311
↓ 7 callersMethodSetOffsetRange
SetOffsetRange sets the OffsetRange for the given expression id.
common/ast/ast.go:361
↓ 7 callersMethodSetStdLib
SetStdLib configures the LibrarySubset for the standard library.
common/env/env.go:186
↓ 7 callersFunctionStdLibSubset
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 callersFunctionStringSource
StringSource converts a string and location description to a model.Source.
policy/source.go:27
↓ 7 callersFunctionadaptToProto
(e ast.Expr)
cel/macro.go:566
↓ 7 callersFunctioncompile
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 callersFunctionexprInternal
(factory ExprFactory, e *exprpb.Expr)
common/ast/conversion.go:125
↓ 7 callersFunctionfieldNameByTag
(structTagToParse string)
ext/native.go:146
↓ 7 callersFunctionfixedSizeEstimate
(val uint64)
ext/costs.go:92
↓ 7 callersMethodgetType
(e ast.Expr)
checker/checker.go:680
↓ 7 callersMethodglobalCallOrMacro
(exprID int64, function string, args ...ast.Expr)
parser/parser.go:945
↓ 7 callersFunctionmustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callersMethodnewExpr
(ctx any)
parser/helper.go:147
↓ 7 callersFunctionnewNativeType
(fieldNameHandler NativeTypesFieldNameHandler, rawType reflect.Type)
ext/native.go:654
↓ 7 callersFunctionparsePolicy
(t testing.TB, name string, parseOpts []ParserOption)
policy/compiler_test.go:492
↓ 7 callersMethodplan
(expr ast.Expr)
interpreter/planner.go:87
↓ 7 callersMethodreportIssue
(e error)
repl/commands.go:159
↓ 7 callersFunctionsubstitute
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 callersFunctiontimestampOf
(t time.Time)
common/types/timestamp.go:39
↓ 7 callersMethodverifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting_v2.go:551
↓ 7 callersMethodverifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting.go:611
↓ 6 callersMethodAddExcludedMacros
AddExcludedMacros deny-lists one or more macros by function name.
common/env/env.go:673
↓ 6 callersMethodAddFeatures
AddFeatures appends one or more features to the config.
common/env/env.go:210
↓ 6 callersMethodAddIncludedMacros
AddIncludedMacros allow-lists one or more macros by function name. Note, this option will override any excluded macros.
common/env/env.go:667
↓ 6 callersMethodAddSerializableOption
AddSerializableOption adds an option to the basic environment that is flagged as YAML compatible.
repl/evaluator.go:680
↓ 6 callersMethodAttr
Attr returns the Attribute value.
interpreter/interpretable.go:86
↓ 6 callersMethodBuffer
(e ast.Expr)
common/debug/debug.go:83
↓ 6 callersMethodChildren
Children returns a list of child expression nodes.
common/ast/navigable.go:37
↓ 6 callersMethodConditionalAttribute
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 callersMethodConsume
Consume implements (antlr.CharStream).Consume.
parser/input.go:30
↓ 6 callersMethodContextEval
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 callersMethodCopyExpr
CopyExpr creates a deep copy of the input Expr value.
common/ast/factory.go:22
↓ 6 callersMethodDocumentation
Documentation returns the documentation coded by the DocKind to assist with text formatting.
common/doc.go:183
↓ 6 callersFunctionEqual
Equal returns whether the two ref.Value are heterogeneously equivalent.
common/types/util.go:41
↓ 6 callersFunctionErrorRecoveryLimit
ErrorRecoveryLimit limits the number of attempts the parser will perform to recover from an error.
parser/options.go:65
↓ 6 callersMethodEstimateCost
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 callersFunctionEvalStateObserver
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 callersMethodExtensions
Extensions returns the set of extensions present in the source.
common/ast/ast.go:433
↓ 6 callersMethodFindStructFieldNames
FindStructFieldNames returns thet field names associated with the type, if the type is found.
common/types/provider.go:59
↓ 6 callersFunctionFixedSizeEstimate
FixedSizeEstimate returns a size estimate with a fixed min and max range.
checker/cost.go:110
↓ 6 callersMethodGetFrom
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 callersMethodHasIterVar2
HasIterVar2 returns true if the second iteration variable is non-empty.
common/ast/expr.go:286
↓ 6 callersMethodIndex
Index implements (antlr.CharStream).Index.
parser/input.go:66
↓ 6 callersMethodIsChecked
IsChecked returns whether the Ast value has been successfully type-checked.
cel/env.go:74
↓ 6 callersMethodIsSet
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 callersFunctionJSONFieldNames
JSONFieldNames configures JSON field name support within the protobuf types in the registry.
common/types/provider.go:106
↓ 6 callersMethodKind
Kind indicates general category of the type.
common/types/types.go:284
↓ 6 callersFunctionLateFunctionBinding
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 callersFunctionLists
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 callersFunctionMath
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 callersMethodMember
()
parser/gen/cel_parser.go:2535
↓ 6 callersMethodName
Name returns the function name in human-readable terms, e.g. 'contains' of 'math.least'
common/decls/decls.go:111
↓ 6 callersFunctionNewCheckedAST
NewCheckedAST wraps an parsed AST and augments it with type and reference metadata.
common/ast/ast.go:121
↓ 6 callersFunctionNewEmptyRegistry
NewEmptyRegistry returns a registry which is completely unconfigured.
common/types/provider.go:165
↓ 6 callersFunctionNewIdentReference
NewIdentReference creates a ReferenceInfo instance for an identifier with an optional constant value.
common/ast/ast.go:475
↓ 6 callersMethodNewMap
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 callersMethodNewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
parser/macro.go:212
↓ 6 callersMethodNewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
cel/macro.go:88
↓ 6 callersMethodNewPresenceTest
NewPresenceTest creates a Select TestOnly Expr value for modelling has() semantics.
parser/macro.go:285
↓ 6 callersFunctionNewRegistry
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 callersMethodParent
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 callersFunctionParseType
ParseType parses a human readable type string into the protobuf representation.
repl/typefmt.go:215
← previousnext →401–500 of 7,240, ranked by callers