MCPcopy Create free account

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

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

↓ 2 callersFunctionPresenceTestHasCost
PresenceTestHasCost determines whether presence testing has a cost of one or zero. Defaults to presence test has a cost of one.
checker/cost.go:229
↓ 2 callersMethodPrimary
()
parser/gen/cel_parser.go:3392
↓ 2 callersFunctionPrint
Print returns a string representation of the Expr message, annotated with types from the CheckedExpr. The Expr must be a sub-expression embedded in t
checker/printer.go:71
↓ 2 callersFunctionProtoAsDeclaration
ProtoAsDeclaration converts a canonical celpb.Decl value describing a variable or function into an EnvOption.
cel/decls.go:417
↓ 2 callersFunctionProtoConstantAsVal
ProtoConstantAsVal converts a canonical celpb.Constant protobuf to a CEL-native ref.Val.
common/ast/conversion.go:681
↓ 2 callersMethodProtoReflect
()
test/proto3pb/test_all_types.pb.go:666
↓ 2 callersFunctionProtoToEntryExpr
ProtoToEntryExpr converts a protobuf struct/map entry to an ast.EntryExpr
common/ast/conversion.go:114
↓ 2 callersFunctionProtoToReferenceInfo
ProtoToReferenceInfo converts a protobuf Reference into a CEL-native ReferenceInfo instance.
common/ast/conversion.go:625
↓ 2 callersFunctionProtosVersion
ProtosVersion sets the library version for extensions for protobuf utilities.
ext/protos.go:66
↓ 2 callersFunctionPruneAst
TODO Consider having a separate walk of the AST that finds common subexpressions. This can be called before or after constant folding to find common s
interpreter/prune.go:69
↓ 2 callersMethodQualId
()
repl/parser/commands_parser.go:3210
↓ 2 callersMethodQualifiers
Qualifiers returns the list of qualifiers associated with the Attribute.
interpreter/attributes.go:126
↓ 2 callersMethodQualify
Qualify performs a qualification, e.g. field selection, on the input object and returns the value of the access and whether the value was set. A non-n
interpreter/attributes.go:80
↓ 2 callersMethodRangeList
RangeList iterates over the list and calls the provided function for each element. If the function returns false, the iteration will stop.
policy/yaml.go:31
↓ 2 callersFunctionReferenceInfoToProto
ReferenceInfoToProto converts a ReferenceInfo instance to a protobuf Reference suitable for serialization.
common/ast/conversion.go:612
↓ 2 callersFunctionRegexProgramSizeLimit
RegexProgramSizeLimit caps the maximum regex program plan size permitted during evaluation.
interpreter/interpreter.go:230
↓ 2 callersFunctionRegexProgramSizeLimit
RegexProgramSizeLimit caps the maximum regex program plan size permitted for regular expressions. A negative or zero value means unbounded.
cel/options.go:1036
↓ 2 callersFunctionRegexVersion
RegexVersion configures the version of the Regex library definitions to use. See [Regex] for supported values.
ext/regex.go:119
↓ 2 callersMethodRelease
Release releases a concurrency slot and decrements the active calls count (used for defensive recovery).
interpreter/async.go:492
↓ 2 callersMethodReportErrorAtID
ReportErrorAtID records an error at a source location and expression id.
common/errors.go:55
↓ 2 callersMethodResultOrUnknown
ResultOrUnknown returns the cached result if the call has completed, an Unknown with the call ID if pending, or nil if the call has not been started.
interpreter/async.go:294
↓ 2 callersMethodResultType
ResultType returns the output type of the expression if the Ast has been type-checked, else returns chkdecls.Dyn as the parse step cannot infer the ty
cel/env.go:96
↓ 2 callersFunctionSafeCeil
SafeCeil returns the smallest integer value greater than or equal to the input, saturating at math.MaxUint64 and flooring at zero. Negative and NaN i
common/cost/cost.go:69
↓ 2 callersMethodSemantic
Semantic returns the evaluation semantic for the rule.
policy/parser.go:215
↓ 2 callersMethodSetCondition
SetCondition sets the CEL condition for the match.
policy/parser.go:401
↓ 2 callersMethodSetExpression
SetExpression sets the variable expression.
policy/parser.go:335
↓ 2 callersMethodSetOutput
SetOutput sets the output expression for the match.
policy/parser.go:406
↓ 2 callersMethodSetRule
SetRule sets the rule for the match.
policy/parser.go:416
↓ 2 callersMethodSetSemantic
SetSemantic configures the evaluation semantic for the rule.
policy/parser.go:223
↓ 2 callersMethodSetType
SetType sets the type of the expression node at the given id.
common/ast/ast.go:59
↓ 2 callersFunctionSetsVersion
SetsVersion sets the library version for set extensions.
ext/sets.go:91
↓ 2 callersFunctionSingletonFunctionBinding
SingletonFunctionBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is
cel/decls.go:291
↓ 2 callersMethodSize
Size implements the traits.Sizer interface method.
common/types/list.go:268
↓ 2 callersFunctionSizeCalculatorMaxDepth
SizeCalculatorMaxDepth sets the maximum object depth limit before saturating to math.MaxUint32.
common/types/size_calc.go:39
↓ 2 callersMethodSort
Sort is a convenience method: x.Sort() calls Sort(x).
cel/folding_test.go:1278
↓ 2 callersMethodSort
Sort is a convenience method: x.Sort() calls Sort(x).
common/types/unknown.go:339
↓ 2 callersMethodSourceID
SourceID returns the source identifier associated with the rule.
policy/parser.go:231
↓ 2 callersMethodStartCommand
()
repl/parser/commands_parser.go:490
↓ 2 callersMethodString
String takes a ref.Val and a string representing the current locale identifier and returns the Val formatted as a string, or an error if one occurred.
ext/formatting_v2.go:642
↓ 2 callersMethodString
String implements the fmt.Stringer interface method.
common/types/native.go:166
↓ 2 callersFunctionStringsLocale
StringsLocale configures the library with the given locale. The locale tag will be checked for validity at the time that EnvOptions are configured. If
ext/strings.go:348
↓ 2 callersFunctionStringsValidateFormatCalls
StringsValidateFormatCalls validates type-checked ASTs to ensure that string.format() calls have valid formatting clauses and valid argument types for
ext/strings.go:375
↓ 2 callersMethodSubsetFunction
SubsetFunction produces a function declaration which matches the supported subset, or nil if the function is not supported by the LibrarySubset. For
common/env/env.go:581
↓ 2 callersMethodSubsetMacro
SubsetMacro indicates whether the macro function should be included in the library subset.
common/env/env.go:625
↓ 2 callersFunctionTestRunnerOptionsFromFlags
TestRunnerOptionsFromFlags returns a TestRunnerOption which configures the following attributes of the test runner using the parsed flags and the opti
tools/celtest/test_runner.go:184
↓ 2 callersMethodToConfig
ToConfig produces a YAML-serializable env.Config object from the given environment. The serialized configuration value is intended to represent a bas
cel/env.go:198
↓ 2 callersFunctionToFoldableList
ToFoldableList will create a Foldable version of a list suitable for key-value pair iteration. For values which are already Foldable, this call is a
common/types/list.go:595
↓ 2 callersFunctionToFoldableMap
ToFoldableMap will create a Foldable version of a map suitable for key-value pair iteration. For values which are already Foldable, this call is a no
common/types/map.go:1031
↓ 2 callersMethodToImmutableList
()
common/types/traits/lister.go:35
↓ 2 callersFunctionTwoVarComprehensionsVersion
TwoVarComprehensionsVersion sets the library version for two-variable comprehensions.
ext/comprehensions.go:175
↓ 2 callersMethodType
()
common/types/native.go:358
↓ 2 callersMethodType
()
common/types/object.go:162
↓ 2 callersMethodType
Type of the expression. If the expression is type-checked, the type check metadata is returned. If the expression has not been type-checked, the type
common/ast/navigable.go:31
↓ 2 callersMethodTypeProvider
TypeProvider returns the `ref.TypeProvider` configured for the environment. Deprecated: use CELTypeProvider()
cel/env.go:801
↓ 2 callersFunctionTypeToExprType
TypeToExprType converts a CEL-native type representation to a protobuf CEL Type representation.
cel/decls.go:393
↓ 2 callersFunctionTypeVariable
TypeVariable creates a new type identifier for use within a types.Provider
common/decls/decls.go:1102
↓ 2 callersMethodUnknownAttributePatterns
UnknownAttributePaths returns a set of AttributePattern values which match Attribute expressions for data accesses whose values are not yet known.
interpreter/activation.go:188
↓ 2 callersFunctionUnknownCostEstimate
UnknownCostEstimate returns a cost with an unknown impact.
checker/cost.go:175
↓ 2 callersFunctionUnknownSizeEstimate
UnknownSizeEstimate returns a size between 0 and max uint
checker/cost.go:106
↓ 2 callersFunctionUnparseExprType
UnparseExprType pretty-prints a type (proto representation) for the REPL.
repl/typefmt.go:32
↓ 2 callersFunctionUnsupportedRefValConversionErr
UnsupportedRefValConversionErr returns a types.NewErr instance with a no such conversion message that indicates that the native value could not be con
common/types/err.go:95
↓ 2 callersFunctionValidateTimes
ValidateTimes enables automatic time validation (iat, nbf, exp) during token parsing with an optional clock leeway.
ext/security/jwt/jwt.go:66
↓ 2 callersMethodValidators
Validators returns a shallow copy of the set of ASTValidators configured on the environment.
cel/env.go:691
↓ 2 callersMethodValue
Value returns the constant value of the instruction.
interpreter/interpretable.go:78
↓ 2 callersMethodValue
Value implements the ref.Val interface method.
common/types/native.go:181
↓ 2 callersFunctionVariableDeclToExprDecl
VariableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.
common/decls/decls.go:1107
↓ 2 callersFunctionVariableWithDoc
VariableWithDoc creates an instance of a variable declaration with a variable name, type, and doc string.
cel/decls.go:149
↓ 2 callersMethodVariables
Variables returns a shallow copy of the variables associated with the environment.
cel/env.go:671
↓ 2 callersFunctionWrapOnOperators
WrapOnOperators specifies which operators to perform word wrapping on an output expression when its string length exceeds the column limit set by Wrap
parser/unparser.go:622
↓ 2 callersFunctionactualSize
actualSize returns the size of the value for all traits.Sizer values, a fixed size for all proto-based objects, and a size of 1 for all other value ty
interpreter/runtimecost.go:336
↓ 2 callersFunctionadaptLiteral
adaptLiteral converts a runtime CEL value to its equivalent literal expression. For strongly typed values, the type-provider will be used to reconstr
cel/folding.go:454
↓ 2 callersMethodadd
(from, to *types.Type)
checker/mapping.go:31
↓ 2 callersMethodaddLetFn
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:493
↓ 2 callersMethodaddLetVar
Add or update an existing let then invalidate any computed plans.
repl/evaluator.go:441
↓ 2 callersMethodaddOption
(opt Optioner, isYAML bool)
repl/evaluator.go:509
↓ 2 callersMethodaddTerm
addTerm adds an operation identifier and term to the set of terms to be balanced.
parser/helper.go:291
↓ 2 callersFunctionaddTimeDurationChecked
addDurationChecked performs addition with overflow detection of a time.Time and time.Duration. If the operation fails due to overflow the error retur
common/types/overflow.go:196
↓ 2 callersFunctionaliasAs
(kind, qualifiedName, alias string, requireQualified bool)
common/containers/container.go:249
↓ 2 callersMethodapplyContextOptions
(env *cel.Env)
repl/evaluator.go:369
↓ 2 callersFunctionapplyQualifiers
(vars Activation, obj any, qualifiers []Qualifier)
interpreter/attributes.go:1302
↓ 2 callersFunctionassertFuncEquals
(t *testing.T, got, want *decls.FunctionDecl)
common/env/env_test.go:1493
↓ 2 callersFunctionawaitResult
awaitResult re-evaluates ComputeResult until it returns a non-Unknown value or the deadline fires.
interpreter/async_test.go:66
↓ 2 callersFunctionbinaryFormatError
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting.go:667
↓ 2 callersFunctionbinaryFormatErrorV2
helper routines for reporting common errors during string formatting static validation and runtime execution.
ext/formatting_v2.go:607
↓ 2 callersFunctioncacheableAggregateSize
cacheableAggregateSize reports whether a size computed with the given sizer is safe to memoize on the value. Only totals from computations which verif
common/types/size_calc.go:141
↓ 2 callersMethodcalc
(_p int)
parser/gen/cel_parser.go:1613
↓ 2 callersMethodcalc
(_p int)
repl/parser/commands_parser.go:5571
↓ 2 callersMethodcheckAttempts
(recognizer antlr.Parser)
parser/parser.go:306
↓ 2 callersFunctioncheckInvalidArgs
(meh cel.MacroExprFactory, funcName string, args []ast.Expr)
ext/math.go:913
↓ 2 callersFunctioncheckLoadedASTDepth
checkLoadedASTDepth guards ASTs that enter through the proto conversion helpers (ParsedExprToAst / CheckedExprToAst) against nesting deeper than the p
cel/io.go:106
↓ 2 callersFunctioncheckOptionArgs
(idx int, args []string)
repl/evaluator.go:1172
↓ 2 callersMethodcheckSelectField
(e, operand ast.Expr, field string, optional bool)
checker/checker.go:215
↓ 2 callersFunctionclauseForType
(argType ref.Type)
ext/formatting.go:39
↓ 2 callersFunctioncollectEnumValues
collectEnumValues accumulates the enum values within an enum declaration.
common/types/pb/file.go:187
↓ 2 callersFunctioncollectExtensions
(extensions protoreflect.ExtensionDescriptors, msgExtensionMap map[string][]protoreflect.ExtensionDescriptor)
common/types/pb/file.go:199
↓ 2 callersFunctioncollectParamNames
(paramNames map[string]struct{}, arg *types.Type)
common/decls/decls.go:1168
↓ 2 callersMethodcombine
combine assembles two output expressions into a single output step.
policy/composer.go:468
↓ 2 callersFunctioncompareIntDouble
(i Int, d Double)
common/types/compare.go:33
↓ 2 callersFunctioncompareUintDouble
(u Uint, d Double)
common/types/compare.go:47
↓ 2 callersFunctioncompareUintInt
(u Uint, i Int)
common/types/compare.go:65
← previousnext →1,201–1,300 of 7,844, ranked by callers