MCPcopy Create free account

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

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

↓ 8 callersMethodCreateEnv
CreateEnv creates a singleton CEL environment with the configured environment options.
tools/compiler/compiler.go:95
↓ 8 callersFunctionCrossTypeNumericComparisons
CrossTypeNumericComparisons toggles type-checker support for numeric comparisons across type See https://github.com/google/cel-spec/wiki/proposal-210
checker/options.go:29
↓ 8 callersFunctionEagerlyValidateDeclarations
EagerlyValidateDeclarations ensures that any collisions between configured declarations are caught at the time of the `NewEnv` call. Eagerly validati
cel/options.go:228
↓ 8 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:70
↓ 8 callersMethodEnumValue
EnumValue returns the numeric value of the given enum value name.
common/types/provider.go:46
↓ 8 callersFunctionFixedSizeEstimate
FixedSizeEstimate returns a size estimate with a fixed min and max range.
checker/cost.go:111
↓ 8 callersFunctionFromConfig
FromConfig produces and applies a set of EnvOption values derived from an env.Config object. For configuration elements which refer to features outsi
cel/options.go:548
↓ 8 callersFunctionFunctionDocs
FunctionDocs configures documentation from a list of strings separated by newlines.
common/decls/decls.go:463
↓ 8 callersMethodIndex
Index implements (antlr.CharStream).Index.
parser/input.go:66
↓ 8 callersFunctionInferFileFormat
InferFileFormat infers the file format from the file path.
tools/compiler/compiler.go:201
↓ 8 callersFunctionInitEmptyLiteralContext
(p *LiteralContext)
parser/gen/cel_parser.go:5499
↓ 8 callersFunctionInitEmptyLiteralContext
(p *LiteralContext)
repl/parser/commands_parser.go:9457
↓ 8 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
↓ 8 callersMethodIsMap
IsMap returns true if the field is of map type.
common/types/pb/type.go:326
↓ 8 callersFunctionJSONFieldNames
JSONFieldNames configures the Db to support proto field accesses by their JSON names.
common/types/pb/pb.go:91
↓ 8 callersMethodJSONFieldNames
JSONFieldNames returns whether json field names are enabled in this registry.
common/types/provider.go:252
↓ 8 callersMethodKind
()
common/ast/expr.go:329
↓ 8 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:156
↓ 8 callersFunctionNewEvalState
NewEvalState returns an EvalState instanced used to observe the intermediate evaluations of an expression.
interpreter/evalstate.go:44
↓ 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 callersMethodNewSelect
NewSelect creates an Expr representing a field selection on an operand expression.
common/ast/factory.go:68
↓ 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 callersMethodSourceInfo
SourceInfo returns the policy file metadata about expression positions.
policy/parser.go:83
↓ 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:364
↓ 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:74
↓ 8 callersMethodcomputeEntrySize
(e ast.Expr)
checker/cost.go:947
↓ 8 callersFunctioncreateTestJWT
(t *testing.T, header, payload map[string]any)
ext/security/jwt/jwt_test.go:31
↓ 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:856
↓ 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 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:724
↓ 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 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 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 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:348
↓ 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:214
↓ 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 callersMethodState
State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
cel/program.go:148
↓ 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
← previousnext →401–500 of 7,844, ranked by callers