MCPcopy Create free account

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

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

↓ 3 callersMethodgetLocation
(id int64)
parser/helper.go:187
↓ 3 callersMethodhasField
(fieldName string)
common/types/native.go:185
↓ 3 callersFunctionint64ToUint64Lossless
(v int64)
common/types/overflow.go:421
↓ 3 callersFunctioninternalIsAssignable
internalIsAssignable returns true if t1 is assignable to t2.
checker/types.go:100
↓ 3 callersFunctionisAlpha
(c byte)
common/env/io.go:246
↓ 3 callersFunctionisBinaryOrTernaryOperator
Indicate whether this is a binary or ternary operator.
parser/unparser.go:521
↓ 3 callersFunctionisCELNamespace
(target ast.Expr)
conformance/conformance_test.go:404
↓ 3 callersMethodisConditional
isConditional returns true if the condition expression is not trivially true.
policy/composer.go:462
↓ 3 callersMethodisDyn
isDyn indicates whether the type is dynamic in any way.
common/types/types.go:416
↓ 3 callersFunctionisSamePrecedence
isSamePrecedence indicates whether the precedence of the input operator is the same as the precedence of the (possible) operation represented in the i
parser/unparser.go:482
↓ 3 callersFunctionisStrictRFC3339
isStrictRFC3339 reports whether s matches strictRFC3339Pattern, hand-rolled to keep the conversion path off the regexp engine and its per-call cost.
common/types/timestamp.go:74
↓ 3 callersFunctionk8sParserOpts
()
tools/celtest/test_runner_test.go:100
↓ 3 callersFunctionloadFile
(path string)
tools/compiler/compiler.go:180
↓ 3 callersFunctionloadProtoFile
(path string, format FileFormat, out protoreflect.ProtoMessage)
tools/compiler/compiler.go:188
↓ 3 callersFunctionmakeQuantifier
(kind quantifierKind, eh ExprHelper, target ast.Expr, args []ast.Expr)
parser/macro.go:558
↓ 3 callersFunctionmatchOperandTrait
(trait int, arg ref.Val)
common/decls/decls.go:896
↓ 3 callersFunctionmatchRuntimeArgType
(nonStrict, disableTypeGuards bool, argType *types.Type, arg ref.Val)
common/decls/decls.go:884
↓ 3 callersMethodmatchesRuntimeSignature
matchesRuntimeSignature indicates whether the argument types are runtime assiganble to the overload's expected arguments.
common/decls/decls.go:869
↓ 3 callersFunctionmaybeInteropProvider
(provider any)
cel/options.go:1062
↓ 3 callersFunctionmaybeSuffixError
(val ref.Val, suffix string)
ext/math.go:964
↓ 3 callersFunctionmustNewFunction
(t *testing.T, name string, opts ...decls.FunctionOpt)
common/env/env_test.go:1484
↓ 3 callersFunctionnewBufferWithLimit
(data string, lines bool, limit int)
common/runes/buffer.go:159
↓ 3 callersMethodnewEntryExpr
(id int64, e entryExprKindCase)
common/ast/factory.go:323
↓ 3 callersMethodnewExecutionFrame
newExecutionFrame creates an ExecutionFrame for the given input without a timeout context.
cel/program.go:442
↓ 3 callersFunctionnewFormatValidator
(funcName string, argNum int, check argChecker)
cel/validator.go:265
↓ 3 callersFunctionnewGroup
newGroup creates a new Group with empty maps for identifiers and functions.
checker/scopes.go:146
↓ 3 callersMethodnewLiteralString
(ctx any, value string)
parser/helper.go:60
↓ 3 callersFunctionnewMapping
()
checker/mapping.go:25
↓ 3 callersFunctionnewRunner
(name, expr string, parseOpts []ParserOption, envOpts ...cel.EnvOption)
policy/compiler_test.go:277
↓ 3 callersMethodnewTypeVar
()
checker/checker.go:634
↓ 3 callersFunctionnormalizeAlgName
(alg string)
ext/security/hmac/hmac.go:312
↓ 3 callersFunctionnumericValueEquals
numericValueEquals uses CEL equality to determine whether two number values are
interpreter/attribute_patterns.go:175
↓ 3 callersMethodprogramOptions
programOptions generates the program options for planning. Assumes context has been planned.
repl/evaluator.go:521
↓ 3 callersFunctionquote
quote implements a string quoting function. The string will be wrapped in double quotes, and all valid CEL escape sequences will be escaped to show up
ext/strings.go:849
↓ 3 callersMethodregisterAllTypes
(fd *pb.FileDescription)
common/types/provider.go:792
↓ 3 callersFunctionrequest
request constructs a `google.rpc.context.AttributeContext.Request` message.
codelab/solution/codelab.go:505
↓ 3 callersMethodresolveHash
(alg string)
ext/security/hmac/hmac.go:323
↓ 3 callersFunctionsafeUint32FromBoxedInt
(v Int)
common/types/overflow.go:445
↓ 3 callersFunctionsafeUint32FromInt
(n int)
common/types/overflow.go:438
↓ 3 callersFunctionsanitize
sanitize replaces all invalid runes in the given string with utf8.RuneError.
ext/strings.go:880
↓ 3 callersMethodsetSize
(e ast.Expr, size *SizeEstimate)
checker/cost.go:886
↓ 3 callersFunctionsubtractInt64Checked
subtractInt64Checked performs subtraction with overflow detection of two int64 values. If the operation fails the error return value will be non-nil.
common/types/overflow.go:39
↓ 3 callersFunctiontestCost
(t *testing.T, expr string, estimatedCost checker.CostEstimate, runtimeCost uint64)
ext/network_test.go:897
↓ 3 callersFunctiontestData
(t testing.TB)
interpreter/interpreter_test.go:68
↓ 3 callersFunctiontestFunction
(t testing.TB, name string, opts ...decls.FunctionOpt)
checker/checker_test.go:2865
↓ 3 callersFunctiontrackListSelfCompare
trackListSelfCompare computes costs as a worst-case O(n^2) operation over the input list.
ext/lists.go:887
↓ 3 callersMethodundeclaredReference
(id int64, l common.Location, container string, name string)
checker/errors.go:82
↓ 3 callersMethodvalSize
valSize returns the SizeEstimate for the value if one exists.
checker/cost.go:319
↓ 3 callersMethodvalue
(id int64)
interpreter/prune.go:468
↓ 3 callersFunctionzeroValueOf
zeroValueOf will return the strongest possible proto.Message representing the default protobuf message value of the input msg type.
common/types/pb/type.go:625
↓ 2 callersMethodActiveCalls
ActiveCalls returns the number of active asynchronous calls.
interpreter/async.go:525
↓ 2 callersMethodAddDeclFn
AddDeclFn declares a function in the environment but doesn't register an expr with it. This allows planning to succeed, but with no value for the func
repl/evaluator.go:654
↓ 2 callersMethodAddDeclVar
AddDeclVar declares a variable in the environment but doesn't register an expr with it. This allows planning to succeed, but with no value for the var
repl/evaluator.go:641
↓ 2 callersMethodAddFunctionDecls
AddFunctionDecls adds one or more functions to the config, converting them to serializable values first. FunctionDecl inputs are expected to be well-
common/env/env.go:146
↓ 2 callersMethodAddMatch
AddMatch addes a Match to the rule.
policy/parser.go:272
↓ 2 callersMethodAddOption
AddOption adds an option to the basic environment. Options are applied before evaluating any of the let statements. Returns an error if setting the op
repl/evaluator.go:668
↓ 2 callersMethodAddVariableDecls
AddVariableDecls adds one or more variables to the config, converting them to serializable values first. VariableDecl inputs are expected to be well-
common/env/env.go:118
↓ 2 callersMethodAppend
Append creates a new Errors object with the current and input errors.
common/errors.go:74
↓ 2 callersMethodArg
Arg returns the ref.Val at the given index, or an error if one occurred.
ext/formatting.go:775
↓ 2 callersMethodAsCELFunction
AsCELFunction converts the serializable form of the Function into CEL environment declaration.
common/env/env.go:378
↓ 2 callersMethodAsCELVariable
AsCELVariable converts the serializable form of the Variable into a CEL environment declaration.
common/env/env.go:305
↓ 2 callersFunctionByteSource
ByteSource converts a byte sequence and location description to a model.Source.
policy/source.go:22
↓ 2 callersMethodCalc
(i int)
repl/parser/commands_parser.go:5412
↓ 2 callersMethodClaim
Claim queries a claim value by key name using the provided types.Adapter, returning an optional dyn value.
ext/security/jwt/jwt.go:300
↓ 2 callersFunctionClearMacros
ClearMacros options clears all parser macros. Clearing macros will ensure CEL expressions can only contain linear evaluation paths, as comprehensions
cel/options.go:156
↓ 2 callersMethodClearOffsetRange
ClearOffsetRange removes the OffsetRange for the given expression id.
common/ast/ast.go:377
↓ 2 callersFunctionClock
Clock sets a custom clock function for time validation (defaults to time.Now).
ext/security/jwt/jwt.go:77
↓ 2 callersMethodCmd
Cmd returns the normalized name for the command.
repl/commands.go:113
↓ 2 callersMethodComputeOffsetAbsolute
ComputeOffsetAbsolute calculates the 0-based character offset from a 1-based line and 0-based column based on the absolute line and column of the Sour
common/ast/ast.go:429
↓ 2 callersMethodConditionIsLiteral
ConditionIsLiteral indicates whether the condition for the match is a literal with a given value.
policy/compiler.go:153
↓ 2 callersFunctionConfigFromYAML
ConfigFromYAML returns a config from YAML source. Adds custom parsing logic for normalizing shorthand for specifiying some fields in a YAML document
common/env/io.go:261
↓ 2 callersFunctionConfigToYAML
ConfigToYAML returns the config serialized to YAML Provided as a convenience wrapper around a tested YAML Marshaler.
common/env/io.go:273
↓ 2 callersMethodContains
Contains returns true if the input unknown is a subset of the current unknown.
common/types/unknown.go:200
↓ 2 callersMethodConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/timestamp.go:159
↓ 2 callersMethodConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/native.go:141
↓ 2 callersMethodConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/duration.go:94
↓ 2 callersMethodConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/timestamp.go:187
↓ 2 callersMethodConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/native.go:146
↓ 2 callersMethodConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/duration.go:122
↓ 2 callersMethodCopy
Copy copies the current state of the registry into its own memory space.
common/types/provider.go:223
↓ 2 callersFunctionCopySourceInfo
CopySourceInfo creates a deep copy of the MacroCalls within the input SourceInfo. Copies of macro Expr values are generated using an internal default
common/ast/ast.go:230
↓ 2 callersFunctionCostObserver
CostObserver provides an observer that tracks runtime cost.
interpreter/runtimecost.go:50
↓ 2 callersFunctionCostTrackerFactory
CostTrackerFactory configures the factory method to generate a new cost-tracker per-evaluation.
interpreter/runtimecost.go:42
↓ 2 callersFunctionCostTrackerLimit
CostTrackerLimit sets the runtime limit on the evaluation cost during execution and will terminate the expression evaluation if the limit is exceeded.
interpreter/runtimecost.go:181
↓ 2 callersFunctionCustomDecorator
CustomDecorator configures a custom interpretable decorator for the program.
interpreter/interpreter.go:158
↓ 2 callersFunctionDefaultTagVisitor
DefaultTagVisitor creates a tag visitor which produces errors for any non-canonical YAML tag.
policy/parser.go:489
↓ 2 callersFunctionDefaultUTCTimeZone
DefaultUTCTimeZone ensures that time-based operations use the UTC timezone rather than the input time's local timezone.
cel/options.go:973
↓ 2 callersMethodDelLetVar
DelLetVar removes a variable from the evaluation context. If deleting the variable breaks a later expression, this function will return an error witho
repl/evaluator.go:705
↓ 2 callersMethodDescription
Description provides an overview of the function's purpose. Usage examples should be included on specific overloads.
common/decls/decls.go:125
↓ 2 callersMethodDescription
Description returns the usage documentation for the variable, if set. Good usage instructions provide information about the valid formats, ranges, si
common/decls/decls.go:1069
↓ 2 callersMethodDescriptor
()
test/proto3pb/test_all_types.pb.go:62
↓ 2 callersMethodDescriptor
()
test/proto2pb/test_all_types.pb.go:122
↓ 2 callersFunctionDrainAll
DrainAll returns a strategy that waits for all currently pending calls to complete before re-evaluating. Note: This strategy is optimal for independe
cel/async/async.go:105
↓ 2 callersFunctionDrainNone
DrainNone returns a strategy that re-evaluates after every single completion. This is the default strategy.
cel/async/async.go:70
↓ 2 callersMethodElements
()
common/ast/expr.go:635
↓ 2 callersFunctionEnableCoverage
EnableCoverage returns a TestRunnerOption which enables coverage calculation for the test run.
tools/celtest/test_runner.go:545
↓ 2 callersFunctionEnableErrorOnBadPresenceTest
EnableErrorOnBadPresenceTest error generation when a presence test or optional field selection is performed on a primitive type.
interpreter/attributes.go:134
↓ 2 callersFunctionEnableErrorOnBadPresenceTest
EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field selection is performed on a primitive type.
cel/library.go:719
↓ 2 callersFunctionEnableHiddenAccumulatorName
EnableHiddenAccumulatorName uses an accumulator variable name that is not a normally accessible identifier in source for comprehension macros. Compati
parser/options.go:159
↓ 2 callersFunctionEnableHiddenAccumulatorName
EnableHiddenAccumulatorName sets the parser to use the identifier '@result' for accumulators which is not normally accessible from CEL source.
cel/options.go:1055
← previousnext →1,001–1,100 of 7,844, ranked by callers