MCPcopy Create free account

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

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

↓ 3 callersMethodcopy
copy creates a new Group instance with a shallow copy of the variables and functions. If callers need to mutate the exprpb.Decl definitions for a Func
checker/scopes.go:152
↓ 3 callersFunctiondescribeCELType
(t *types.Type)
common/decls/decls.go:1128
↓ 3 callersFunctiondoubleToUint64Lossless
(v float64)
common/types/overflow.go:399
↓ 3 callersFunctionequalValue
(fd protoreflect.FieldDescriptor, x, y protoreflect.Value)
common/types/pb/equal.go:150
↓ 3 callersMethodexpr
expr returns the output expression for the step.
policy/composer.go:421
↓ 3 callersFunctionextractIdent
(e ast.Expr)
parser/macro.go:597
↓ 3 callersFunctionfieldTypeConversionError
(field *pb.FieldDescription, err error)
common/types/provider.go:813
↓ 3 callersFunctionfileExists
(path string)
conformance/policy/policy_conformance_test.go:148
↓ 3 callersMethodfind
(from *types.Type)
checker/mapping.go:35
↓ 3 callersFunctionfnEnvOption
()
tools/celtest/test_runner_test.go:175
↓ 3 callersFunctionfuncDecl
(t testing.TB, name string, opts ...decls.FunctionOpt)
interpreter/interpreter_test.go:2443
↓ 3 callersMethodgetLocation
(id int64)
parser/helper.go:183
↓ 3 callersMethodhasField
hasField returns whether a field name has a corresponding Golang reflect.StructField
ext/native.go:755
↓ 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:242
↓ 3 callersFunctionisBinaryOrTernaryOperator
Indicate whether this is a binary or ternary operator.
parser/unparser.go:521
↓ 3 callersFunctionisCELNamespace
(target ast.Expr)
conformance/conformance_test.go:403
↓ 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 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:834
↓ 3 callersFunctionmatchRuntimeArgType
(nonStrict, disableTypeGuards bool, argType *types.Type, arg ref.Val)
common/decls/decls.go:824
↓ 3 callersFunctionmaybeInteropProvider
(provider any)
cel/options.go:962
↓ 3 callersFunctionmaybeSuffixError
(val ref.Val, suffix string)
ext/math.go:940
↓ 3 callersFunctionmultiplyUint64NoOverflow
multiplyUint64NoOverflow multiplies non-negative ints. If the result is exceeds math.MaxUint64, math.MaxUint64 is returned.
checker/cost.go:233
↓ 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 callersFunctionnewFormatValidator
(funcName string, argNum int, check argChecker)
cel/validator.go:237
↓ 3 callersMethodnewLiteralString
(ctx any, value string)
parser/helper.go:56
↓ 3 callersFunctionnewMapping
()
checker/mapping.go:25
↓ 3 callersFunctionnewNonOptionalCompositionStep
newNonOptionalCompositionStep returns an output step whose output is not optional.
policy/composer.go:448
↓ 3 callersFunctionnewOptionalCompositionStep
newOptionalCompositionStep returns an output step with an optional policy output.
policy/composer.go:506
↓ 3 callersFunctionnewRunner
(name, expr string, parseOpts []ParserOption, opts ...cel.EnvOption)
policy/compiler_test.go:293
↓ 3 callersMethodnewTypeVar
()
checker/checker.go:634
↓ 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:848
↓ 3 callersMethodregisterAllTypes
(fd *pb.FileDescription)
common/types/provider.go:442
↓ 3 callersFunctionrequest
request constructs a `google.rpc.context.AttributeContext.Request` message.
codelab/solution/codelab.go:505
↓ 3 callersFunctionsafeMul
(x, y uint64)
ext/costs.go:117
↓ 3 callersFunctionsanitize
sanitize replaces all invalid runes in the given string with utf8.RuneError.
ext/strings.go:879
↓ 3 callersMethodsetSize
(e ast.Expr, size *SizeEstimate)
checker/cost.go:916
↓ 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 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 callersFunctiontrackAllocatingListCall
trackAllocatingListCall computes costs as a function of the size of the result list with a baseline cost for the call dispatch and the associated list
ext/lists.go:781
↓ 3 callersFunctiontrackListSelfCompare
trackListSelfCompare computes costs as a worst-case O(n^2) operation over the input list.
ext/lists.go:766
↓ 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:349
↓ 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 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:231
↓ 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 callersFunctionCheckedExprToAstWithSource
CheckedExprToAstWithSource converts a checked expression proto message to an Ast, using the provided Source as the textual contents. In general the s
cel/io.go:50
↓ 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:141
↓ 2 callersMethodClearOffsetRange
ClearOffsetRange removes the OffsetRange for the given expression id.
common/ast/ast.go:369
↓ 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:421
↓ 2 callersMethodConditionIsLiteral
ConditionIsLiteral indicates whether the condition for the match is a literal with a given value.
policy/compiler.go:139
↓ 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:257
↓ 2 callersFunctionConfigToYAML
ConfigToYAML returns the config serialized to YAML Provided as a convenience wrapper around a tested YAML Marshaler.
common/env/io.go:269
↓ 2 callersMethodConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/timestamp.go:82
↓ 2 callersMethodConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/duration.go:94
↓ 2 callersMethodConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/timestamp.go:110
↓ 2 callersMethodConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/duration.go:122
↓ 2 callersMethodCopy
Copy the input expression with a brand new set of identifiers.
parser/macro.go:199
↓ 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:222
↓ 2 callersFunctionCostLimit
CostLimit enables cost tracking and sets configures program evaluation to exit early with a "runtime cost limit exceeded" error if the runtime cost ex
cel/options.go:769
↓ 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:179
↓ 2 callersFunctionCustomDecorator
CustomDecorator configures a custom interpretable decorator for the program.
interpreter/interpreter.go:150
↓ 2 callersFunctionDefaultTagVisitor
DefaultTagVisitor creates a tag visitor which produces errors for any non-canonical YAML tag.
policy/parser.go:447
↓ 2 callersFunctionDefaultUTCTimeZone
DefaultUTCTimeZone ensures that time-based operations use the UTC timezone rather than the input time's local timezone.
cel/options.go:913
↓ 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:121
↓ 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:973
↓ 2 callersMethodDescriptor
()
test/proto3pb/test_all_types.pb.go:62
↓ 2 callersMethodDescriptor
()
test/proto2pb/test_all_types.pb.go:122
↓ 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:682
↓ 2 callersFunctionEnableHiddenAccumulatorName
EnableHiddenAccumulatorName uses an accumulator variable name that is not a normally accessible identifier in source for comprehension macros. Compati
parser/options.go:146
↓ 2 callersFunctionEnableHiddenAccumulatorName
EnableHiddenAccumulatorName sets the parser to use the identifier '@result' for accumulators which is not normally accessible from CEL source.
cel/options.go:955
← previousnext →901–1,000 of 7,240, ranked by callers