MCPcopy Create free account

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

Functions9,178 in github.com/cel-expr/cel-go

↓ 1 callersFunctiontestEnvs
(t testing.TB)
checker/checker_test.go:2456
↓ 1 callersFunctiontestExprTypeToType
(t testing.TB, fieldType *exprpb.Type)
interpreter/attributes_test.go:1556
↓ 1 callersFunctiontestMathCostsEnv
(t *testing.T, version int, opts ...cel.EnvOption)
ext/math_test.go:672
↓ 1 callersFunctiontestMerge
(t *testing.T, funcs ...*FunctionDecl)
common/decls/decls_test.go:1536
↓ 1 callersFunctiontestPackAny
(t *testing.T, val proto.Message)
common/types/null_test.go:139
↓ 1 callersFunctiontestRunnerCompilerFromFlags
(testCompilerOpts ...any)
tools/celtest/test_runner.go:213
↓ 1 callersFunctiontestSliceListType
(t *testing.T, adapter Adapter, slice []T, matchVal, mismatchVal, altMatchVal, get0Val ref.Val)
common/types/list_test.go:1711
↓ 1 callersFunctiontimestampGetDayOfMonthOneBased
(ts, tz ref.Val)
common/stdlib/standard.go:1002
↓ 1 callersFunctiontimestampGetDayOfMonthZeroBased
(ts, tz ref.Val)
common/stdlib/standard.go:994
↓ 1 callersFunctiontimestampGetDayOfWeek
(ts, tz ref.Val)
common/stdlib/standard.go:1010
↓ 1 callersFunctiontimestampGetDayOfYear
(ts, tz ref.Val)
common/stdlib/standard.go:986
↓ 1 callersFunctiontimestampGetFullYear
(ts, tz ref.Val)
common/stdlib/standard.go:968
↓ 1 callersFunctiontimestampGetHours
(ts, tz ref.Val)
common/stdlib/standard.go:1018
↓ 1 callersFunctiontimestampGetMilliseconds
(ts, tz ref.Val)
common/stdlib/standard.go:1042
↓ 1 callersFunctiontimestampGetMinutes
(ts, tz ref.Val)
common/stdlib/standard.go:1026
↓ 1 callersFunctiontimestampGetMonth
(ts, tz ref.Val)
common/stdlib/standard.go:976
↓ 1 callersFunctiontimestampGetSeconds
(ts, tz ref.Val)
common/stdlib/standard.go:1034
↓ 1 callersFunctiontoInt64Key
(key ref.Val)
common/types/map.go:564
↓ 1 callersMethodtoQualifiedName
toQualifiedName converts an expression AST into a qualified name if possible, with a boolean 'found' value that indicates if the conversion is success
interpreter/planner.go:925
↓ 1 callersFunctiontoUint64Key
(key ref.Val)
common/types/map.go:577
↓ 1 callersFunctiontrackCostCreateList
(frame *ExecutionFrame, id int64, res ref.Val)
interpreter/interpretable.go:2191
↓ 1 callersFunctiontrackCostCreateMap
(frame *ExecutionFrame, id int64, res ref.Val)
interpreter/interpretable.go:2197
↓ 1 callersFunctiontrackCostCreateStruct
(frame *ExecutionFrame, id int64, res ref.Val)
interpreter/interpretable.go:2203
↓ 1 callersFunctiontrackEvalPasses
(count *atomic.Int32)
cel/program_async_test.go:1146
↓ 1 callersFunctiontrackPtr
(u uint64)
common/cost/cost_test.go:706
↓ 1 callersFunctiontrackSetsCost
(costFactor float64)
ext/sets.go:246
↓ 1 callersFunctiontrackerCompiler
(opts ...ModelOption)
common/cost/version.go:156
↓ 1 callersFunctiontrimBearerPrefix
(tokenStr string)
ext/security/jwt/jwt.go:433
↓ 1 callersFunctiontrimSpace
(str string)
ext/strings.go:770
↓ 1 callersMethodtryFold
tryFold attempts to evaluate a sub-expression to a literal. If the evaluation succeeds, the input expr value will be modified to become a literal, ot
cel/folding.go:153
↓ 1 callersMethodtypeDefToType
()
common/types/pb/type.go:416
↓ 1 callersMethodtypeDoesNotSupportFieldSelection
(id int64, l common.Location, t *types.Type)
checker/errors.go:85
↓ 1 callersMethodtypeMismatch
(iss *Issues, id int64, expected, actual *Type)
cel/validator.go:433
↓ 1 callersFunctionuint64ToUint16Checked
uint64ToUint16Checked converts a uint64 to a uint16 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:372
↓ 1 callersFunctionuint64ToUint32Checked
uint64ToUint32Checked converts a uint64 to a uint32 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:382
↓ 1 callersFunctionuint64ToUint8Checked
uint64ToUint8Checked converts a uint64 to a uint8 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:362
↓ 1 callersFunctionunboundedCostModel
unboundedCostModel charges the maximum cost and reports an unbounded result size for JSON and YAML functions: encoding traverses an arbitrary containe
ext/encoders.go:1147
↓ 1 callersMethodundefinedField
(id int64, l common.Location, field string)
checker/errors.go:94
↓ 1 callersFunctionunescapeChar
unescapeChar takes a string input and returns the following info: value - the escaped unicode rune at the front of the string. encode - the value s
parser/unescape.go:104
↓ 1 callersFunctionunescapeIdent
(in string)
parser/antlr_parser.go:77
↓ 1 callersMethodunexpectedASTType
(id int64, l common.Location, kind, typeName string)
checker/errors.go:185
↓ 1 callersMethodunexpectedFailedResolution
(id int64, l common.Location, typeName string)
checker/errors.go:181
↓ 1 callersFunctionunhex
(b byte)
parser/unescape.go:222
↓ 1 callersFunctionunixTimeFromFloat
(f float64)
common/types/timestamp.go:328
↓ 1 callersFunctionunknownActivation
(vars ...string)
interpreter/prune_test.go:558
↓ 1 callersFunctionunknownSize
()
ext/lists.go:1110
↓ 1 callersFunctionunknownsEquivalent
(t *testing.T, a *types.Unknown, b *types.Unknown)
cel/cel_test.go:3907
↓ 1 callersFunctionunmarshalJSON
(t *testing.T, data []byte)
common/env/env_test.go:1652
↓ 1 callersFunctionunmarshalYAML
(t *testing.T, data []byte)
common/env/env_test.go:1643
↓ 1 callersFunctionunnest
unnest traverses down the left-hand side of the parse graph until it encounters the first compound parse node or the first leaf in the parse graph.
parser/antlr_parser.go:929
↓ 1 callersFunctionunsupportedTypeConversionError
(field *pb.FieldDescription, val ref.Val)
common/types/provider.go:1096
↓ 1 callersMethodupdate
(env *cel.Env)
repl/evaluator.go:219
↓ 1 callersMethodupdateImpl
(env *cel.Env)
repl/evaluator.go:137
↓ 1 callersFunctionupdateRunfilesPathForFlags
(testResourcesDir string)
tools/celtest/test_runner.go:75
↓ 1 callersFunctionupperASCII
(str string)
ext/strings.go:774
↓ 1 callersFunctionupperCamelCase
(s string)
common/types/map.go:1517
↓ 1 callersMethodvalToFoldAny
(v V)
common/types/map.go:701
↓ 1 callersFunctionvalidateIdentifier
(expr ast.Expr)
ext/protos.go:142
↓ 1 callersFunctionvalidatePriors
(m OverloadModel)
common/cost/validate.go:93
↓ 1 callersFunctionvalidateStrictJSON
(v any, t reflect.Type)
common/env/io.go:409
↓ 1 callersMethodvalidatedDeclarations
validatedDeclarations returns a reference to the validated variable and function declaration scope stack. must be copied before use.
checker/env.go:338
↓ 1 callersFunctionvalidatorIntConfig
(val *env.Validator, configKey string)
cel/validator.go:610
↓ 1 callersFunctionvalueToJSON
valueToJSON converts the CEL type to a protobuf JSON representation and marshals the result to a string.
codelab/solution/codelab.go:515
↓ 1 callersFunctionvalueToRefValue
(v *exprpb.Value)
fuzzing/fuzz_interpreter_test.go:46
↓ 1 callersFunctionvariableDeclToExprDecl
variableDeclToExprDecl converts a go-native variable declaration into a protobuf-type variable declaration.
common/decls/decls.go:1200
↓ 1 callersFunctionvariadicLogicalOperatorASTs
variadicLogicalOperatorASTs flatten like-operator chained logical expressions into a single variadic call with N-terms. This behavior is useful when s
cel/options.go:261
↓ 1 callersMethodverifyBytes
(msg, sig, secret []byte, alg string)
ext/security/hmac/hmac.go:310
↓ 1 callersFunctionverifySourceInfoTransfer
verifySourceInfoTransfer checks that each offset range in the compiledRule has a corresponding node in composed
policy/composer_test.go:212
↓ 1 callersMethodverifyString
(sub ast.Expr)
ext/formatting_v2.go:565
↓ 1 callersMethodverifyString
(sub ast.Expr)
ext/formatting.go:625
↓ 1 callersMethodverifyString
(msgStr, sigStr, secretStr, alg string)
ext/security/hmac/hmac.go:322
↓ 1 callersMethodviolated
violated returns true if the tracked cost fell outside the estimated range.
common/cost/cost_bounds_test.go:98
↓ 1 callersFunctionvisit
(expr ast.Expr, visitor astVisitor)
interpreter/prune.go:515
↓ 1 callersMethodvisitCall
(expr ast.Expr)
parser/unparser.go:151
↓ 1 callersMethodvisitCallBinary
(expr ast.Expr)
parser/unparser.go:193
↓ 1 callersMethodvisitCallConditional
(expr ast.Expr)
parser/unparser.go:220
↓ 1 callersMethodvisitCallFunc
(expr ast.Expr)
parser/unparser.go:248
↓ 1 callersMethodvisitCallIndex
(expr ast.Expr)
parser/unparser.go:277
↓ 1 callersMethodvisitCallOptIndex
(expr ast.Expr)
parser/unparser.go:281
↓ 1 callersMethodvisitCallUnary
(expr ast.Expr)
parser/unparser.go:302
↓ 1 callersMethodvisitConst
(expr ast.Expr)
parser/unparser.go:366
↓ 1 callersMethodvisitConstVal
(val ref.Val)
parser/unparser.go:315
↓ 1 callersMethodvisitIdent
(expr ast.Expr)
parser/unparser.go:374
↓ 1 callersMethodvisitList
(expr ast.Expr)
parser/unparser.go:379
↓ 1 callersMethodvisitListInit
(ctx gen.IListInitContext)
parser/antlr_parser.go:758
↓ 1 callersMethodvisitMaybeMacroCall
(expr ast.Expr)
parser/unparser.go:488
↓ 1 callersMethodvisitOptSelect
(expr ast.Expr)
parser/unparser.go:403
↓ 1 callersMethodvisitSelect
(expr ast.Expr)
parser/unparser.go:411
↓ 1 callersMethodvisitSlice
(expressions []gen.IExprContext)
parser/antlr_parser.go:782
↓ 1 callersMethodvisitStructMap
(expr ast.Expr)
parser/unparser.go:460
↓ 1 callersMethodvisitStructMsg
(expr ast.Expr)
parser/unparser.go:434
↓ 1 callersFunctionwrapInParens
(inner string, count int)
parser/parser_test.go:3147
↓ 1 callersFunctionyamlParseString
(adapter types.Adapter, str string)
ext/encoders.go:1043
↓ 1 callersFunctionyamlParseWithType
(adapter types.Adapter, provider types.Provider, str string, targetType ref.Type)
ext/encoders.go:1054
↓ 1 callersFunctionzeroValueExpr
zeroValueExpr creates an expression representing the empty or zero value for the given type Note: bytes, lists, maps, and strings are supported via th
cel/inlining.go:192
MethodARROW
()
repl/parser/commands_parser.go:969
MethodARROW
()
repl/parser/commands_parser.go:1044
MethodAccept
(visitor antlr.ParseTreeVisitor)
parser/gen/cel_parser.go:368
MethodAccept
(visitor antlr.ParseTreeVisitor)
parser/gen/cel_parser.go:590
MethodAccept
(visitor antlr.ParseTreeVisitor)
parser/gen/cel_parser.go:843
← previousnext →3,601–3,700 of 9,178, ranked by callers