MCPcopy Create free account

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

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

↓ 8 callersMethodNewComprehension
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 callersFunctionNewEvalState
NewEvalState returns an EvalState instanced used to observe the intermediate evaluations of an expression.
interpreter/evalstate.go:44
↓ 8 callersMethodNewIdent
NewIdent creates an identifier Expr value.
parser/macro.go:270
↓ 8 callersMethodNewMap
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 callersMethodNewMemberCall
NewMemberCall creates a function call Expr value for a receiver-style function.
parser/macro.go:282
↓ 8 callersFunctionNewRefValList
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 callersMethodNewSelect
NewSelect creates an Expr representing a field selection on an operand expression.
common/ast/factory.go:68
↓ 8 callersFunctionNewStringStringMap
NewStringStringMap returns a specialized traits.Mapper with string keys and values.
common/types/map.go:81
↓ 8 callersMethodOffsetRanges
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 callersMethodReflectType
ReflectType returns the backing Go reflect.Type associated with the struct (or nil if non-reflected).
common/types/struct.go:26
↓ 8 callersMethodRegisterMessage
RegisterMessage registers a protocol buffer message and its dependencies.
common/types/ref/provider.go:73
↓ 8 callersMethodRelativeAttribute
RelativeAttribute creates an attribute whose value is a qualification of a dynamic computation rather than a static variable reference.
interpreter/attributes.go:53
↓ 8 callersMethodResidualAst
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 callersMethodSetKindCase
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 callersFunctionStringsVersion
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 callersMethodType
Type returns the type constructed.
interpreter/interpretable.go:142
↓ 8 callersFunctionValidateHomogeneousAggregateLiterals
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 callersFunctionassertShared
(t *testing.T, reg *Registry)
common/types/provider_test.go:73
↓ 8 callersMethodcomputeEntrySize
(e ast.Expr)
checker/cost.go:977
↓ 8 callersFunctiondurationOf
(d time.Duration)
common/types/duration.go:39
↓ 8 callersFunctioneval
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 callersFunctionfile_test_proto2pb_test_all_types_proto_rawDescGZIP
()
test/proto2pb/test_all_types.pb.go:1256
↓ 8 callersMethodgetPath
(e ast.Expr)
checker/cost.go:886
↓ 8 callersFunctionnewTestRegistry
(t testing.TB)
checker/env_test.go:93
↓ 8 callersMethodtypeOf
(id int64)
ext/formatting_v2.go:547
↓ 8 callersMethodtypeOf
(id int64)
ext/formatting.go:607
↓ 8 callersMethodvisit
(expr ast.Expr)
parser/unparser.go:87
↓ 7 callersMethodAddExtensions
AddExtensions appends a set of extensions to the config.
common/env/env.go:198
↓ 7 callersMethodAddImports
AddImports appends a set of imports to the config.
common/env/env.go:192
↓ 7 callersMethodAddIncludedFunctions
AddIncludedFunctions allow-lists one or more functions from the subset. Note, this option will override any excluded functions.
common/env/env.go:681
↓ 7 callersFunctionAstToCheckedExpr
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 callersFunctionAsyncBinding
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 callersMethodCollectMetadata
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 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
↓ 7 callersFunctionContextProtoVars
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 callersMethodCopyASTAndMetadata
CopyASTAndMetadata copies the input AST and propagates the macro metadata into the AST being optimized.
cel/optimizer.go:293
↓ 7 callersFunctionCustomTypeAdapter
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 callersFunctionEncoders
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 callersFunctionEqual
Equal returns whether the two ref.Value are heterogeneously equivalent.
common/types/util.go:41
↓ 7 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
↓ 7 callersMethodExpr
()
parser/gen/cel_parser.go:600
↓ 7 callersMethodFindType
FindType looks up the Type given a qualified typeName. Returns false if not found.
common/types/ref/provider.go:36
↓ 7 callersMethodGetE
GetE returns the e rule contexts.
repl/parser/commands_parser.go:955
↓ 7 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
↓ 7 callersMethodGetName
()
test/proto2pb/test_all_types.pb.go:780
↓ 7 callersMethodGetStartLocation
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 callersFunctionInitEmptyPrimaryContext
(p *PrimaryContext)
parser/gen/cel_parser.go:2810
↓ 7 callersFunctionInitEmptyPrimaryContext
(p *PrimaryContext)
repl/parser/commands_parser.go:6768
↓ 7 callersMethodIsChecked
IsChecked returns whether the Ast value has been successfully type-checked.
cel/env.go:79
↓ 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 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
↓ 7 callersMethodJSONName
JSONName returns the JSON name of the field, if present.
common/types/pb/type.go:364
↓ 7 callersMethodLT
LT mimics (*antlr.InputStream).LT.
parser/input.go:53
↓ 7 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
↓ 7 callersMethodMacroCalls
MacroCalls returns the map of macro calls currently in the context.
cel/optimizer.go:316
↓ 7 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:347
↓ 7 callersMethodNegate
Negate returns the complement of the current value.
common/types/traits/math.go:54
↓ 7 callersMethodNewAccuIdent
NewAccuIdent creates an Expr value representing an accumulator identifier within a comprehension.
common/ast/factory.go:44
↓ 7 callersFunctionNewActivation
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 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 callersMethodNewError
NewError associates an error message with a given expression id.
cel/macro.go:142
↓ 7 callersFunctionNewExecutionFrame
NewExecutionFrame creates a new execution frame from the pool.
interpreter/frame.go:84
↓ 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:904
↓ 7 callersMethodPlanProgram
PlanProgram generates an evaluable instance of the AST in the go-native representation within the environment (Env).
cel/env.go:735
↓ 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 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:212
↓ 7 callersFunctionReceiverMacro
ReceiverMacro creates a Macro for a receiver function matching the specified arg count.
cel/macro.go:165
↓ 7 callersMethodRegisterType
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 callersMethodResultType
ResultType indicates the output type from calling the function.
common/decls/decls.go:737
↓ 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:369
↓ 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:124
↓ 7 callersFunctionStringSource
StringSource converts a string and location description to a model.Source.
policy/source.go:27
↓ 7 callersMethodToConfig
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 callersFunctionadaptToProto
(e ast.Expr)
cel/macro.go:566
↓ 7 callersFunctionassertUnshared
(t *testing.T, reg *Registry)
common/types/provider_test.go:80
↓ 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 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:953
↓ 7 callersFunctionmustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callersMethodnewExpr
(ctx any)
parser/helper.go:151
↓ 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
← previousnext →401–500 of 7,701, ranked by callers