MCPcopy Create free account

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

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

↓ 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:246
↓ 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:107
↓ 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:958
↓ 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:914
↓ 7 callersMethodCopyASTAndMetadata
CopyASTAndMetadata copies the input AST and propagates the macro metadata into the AST being optimized.
cel/optimizer.go:293
↓ 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 callersMethodGetE
GetE returns the e rule contexts.
repl/parser/commands_parser.go:955
↓ 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:78
↓ 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 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:92
↓ 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:894
↓ 7 callersFunctionParseStructTag
ParseStructTag configures the struct tag to parse. The 0th item in the tag is used as the name of the CEL field. For example: If the tag to parse is "
ext/native.go:198
↓ 7 callersMethodPlanProgram
PlanProgram generates an evaluable instance of the AST in the go-native representation within the environment (Env).
cel/env.go:728
↓ 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 callersMethodReflectType
ReflectType returns the Golang reflect.Type for this type.
common/types/pb/type.go:149
↓ 7 callersMethodResultType
ResultType indicates the output type from calling the function.
common/decls/decls.go:727
↓ 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: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:953
↓ 7 callersFunctionmustAdaptToExprs
(exprs []*exprpb.Expr)
cel/macro.go:532
↓ 7 callersMethodnewExpr
(ctx any)
parser/helper.go:151
↓ 7 callersFunctionnewNativeType
(fieldNameHandler NativeTypesFieldNameHandler, rawType reflect.Type)
ext/native.go:665
↓ 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 callersFunctiontestEvalWithCost
(t *testing.T, env *cel.Env, ast *cel.Ast, in any, wantCost uint64)
ext/sets_test.go:502
↓ 7 callersFunctiontimestampOf
(t time.Time)
common/types/timestamp.go:41
↓ 7 callersMethodverifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting_v2.go:551
↓ 7 callersMethodverifyTypeOneOf
(id int64, validTypes ...*cel.Type)
ext/formatting.go:611
↓ 6 callersMethodActiveAsyncCalls
ActiveAsyncCalls returns the number of async function calls that have been launched but whose completions have not yet been drained.
interpreter/frame.go:267
↓ 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 callersMethodAsCost
AsCost converts a size estimates to an equivalent cost estimate.
checker/cost.go:163
↓ 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 callersMethodConsume
Consume implements (antlr.CharStream).Consume.
parser/input.go:30
↓ 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 callersFunctionErrorRecoveryLimit
ErrorRecoveryLimit limits the number of attempts the parser will perform to recover from an error.
parser/options.go:66
↓ 6 callersFunctionEvalStateFactory
EvalStateFactory configures the EvalState generator to be used by the EvalStateObserver.
interpreter/interpreter.go:85
← previousnext →401–500 of 7,546, ranked by callers