Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,240 in github.com/cel-expr/cel-go
⨍
Functions
7,240
◇
Types & classes
842
↓ 3 callers
Method
copy
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 callers
Function
describeCELType
(t *types.Type)
common/decls/decls.go:1128
↓ 3 callers
Function
doubleToUint64Lossless
(v float64)
common/types/overflow.go:399
↓ 3 callers
Function
equalValue
(fd protoreflect.FieldDescriptor, x, y protoreflect.Value)
common/types/pb/equal.go:150
↓ 3 callers
Method
expr
expr returns the output expression for the step.
policy/composer.go:421
↓ 3 callers
Function
extractIdent
(e ast.Expr)
parser/macro.go:597
↓ 3 callers
Function
fieldTypeConversionError
(field *pb.FieldDescription, err error)
common/types/provider.go:813
↓ 3 callers
Function
fileExists
(path string)
conformance/policy/policy_conformance_test.go:148
↓ 3 callers
Method
find
(from *types.Type)
checker/mapping.go:35
↓ 3 callers
Function
fnEnvOption
()
tools/celtest/test_runner_test.go:175
↓ 3 callers
Function
funcDecl
(t testing.TB, name string, opts ...decls.FunctionOpt)
interpreter/interpreter_test.go:2443
↓ 3 callers
Method
getLocation
(id int64)
parser/helper.go:183
↓ 3 callers
Method
hasField
hasField returns whether a field name has a corresponding Golang reflect.StructField
ext/native.go:755
↓ 3 callers
Function
int64ToUint64Lossless
(v int64)
common/types/overflow.go:421
↓ 3 callers
Function
internalIsAssignable
internalIsAssignable returns true if t1 is assignable to t2.
checker/types.go:100
↓ 3 callers
Function
isAlpha
(c byte)
common/env/io.go:242
↓ 3 callers
Function
isBinaryOrTernaryOperator
Indicate whether this is a binary or ternary operator.
parser/unparser.go:521
↓ 3 callers
Function
isCELNamespace
(target ast.Expr)
conformance/conformance_test.go:403
↓ 3 callers
Method
isDyn
isDyn indicates whether the type is dynamic in any way.
common/types/types.go:416
↓ 3 callers
Function
isSamePrecedence
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 callers
Function
k8sParserOpts
()
tools/celtest/test_runner_test.go:100
↓ 3 callers
Function
loadFile
(path string)
tools/compiler/compiler.go:180
↓ 3 callers
Function
loadProtoFile
(path string, format FileFormat, out protoreflect.ProtoMessage)
tools/compiler/compiler.go:188
↓ 3 callers
Function
makeQuantifier
(kind quantifierKind, eh ExprHelper, target ast.Expr, args []ast.Expr)
parser/macro.go:558
↓ 3 callers
Function
matchOperandTrait
(trait int, arg ref.Val)
common/decls/decls.go:834
↓ 3 callers
Function
matchRuntimeArgType
(nonStrict, disableTypeGuards bool, argType *types.Type, arg ref.Val)
common/decls/decls.go:824
↓ 3 callers
Function
maybeInteropProvider
(provider any)
cel/options.go:962
↓ 3 callers
Function
maybeSuffixError
(val ref.Val, suffix string)
ext/math.go:940
↓ 3 callers
Function
multiplyUint64NoOverflow
multiplyUint64NoOverflow multiplies non-negative ints. If the result is exceeds math.MaxUint64, math.MaxUint64 is returned.
checker/cost.go:233
↓ 3 callers
Function
mustNewFunction
(t *testing.T, name string, opts ...decls.FunctionOpt)
common/env/env_test.go:1484
↓ 3 callers
Function
newBufferWithLimit
(data string, lines bool, limit int)
common/runes/buffer.go:159
↓ 3 callers
Method
newEntryExpr
(id int64, e entryExprKindCase)
common/ast/factory.go:323
↓ 3 callers
Function
newFormatValidator
(funcName string, argNum int, check argChecker)
cel/validator.go:237
↓ 3 callers
Method
newLiteralString
(ctx any, value string)
parser/helper.go:56
↓ 3 callers
Function
newMapping
()
checker/mapping.go:25
↓ 3 callers
Function
newNonOptionalCompositionStep
newNonOptionalCompositionStep returns an output step whose output is not optional.
policy/composer.go:448
↓ 3 callers
Function
newOptionalCompositionStep
newOptionalCompositionStep returns an output step with an optional policy output.
policy/composer.go:506
↓ 3 callers
Function
newRunner
(name, expr string, parseOpts []ParserOption, opts ...cel.EnvOption)
policy/compiler_test.go:293
↓ 3 callers
Method
newTypeVar
()
checker/checker.go:634
↓ 3 callers
Function
numericValueEquals
numericValueEquals uses CEL equality to determine whether two number values are
interpreter/attribute_patterns.go:175
↓ 3 callers
Method
programOptions
programOptions generates the program options for planning. Assumes context has been planned.
repl/evaluator.go:521
↓ 3 callers
Function
quote
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 callers
Method
registerAllTypes
(fd *pb.FileDescription)
common/types/provider.go:442
↓ 3 callers
Function
request
request constructs a `google.rpc.context.AttributeContext.Request` message.
codelab/solution/codelab.go:505
↓ 3 callers
Function
safeMul
(x, y uint64)
ext/costs.go:117
↓ 3 callers
Function
sanitize
sanitize replaces all invalid runes in the given string with utf8.RuneError.
ext/strings.go:879
↓ 3 callers
Method
setSize
(e ast.Expr, size *SizeEstimate)
checker/cost.go:916
↓ 3 callers
Function
subtractInt64Checked
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 callers
Function
testData
(t testing.TB)
interpreter/interpreter_test.go:68
↓ 3 callers
Function
testFunction
(t testing.TB, name string, opts ...decls.FunctionOpt)
checker/checker_test.go:2865
↓ 3 callers
Function
trackAllocatingListCall
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 callers
Function
trackListSelfCompare
trackListSelfCompare computes costs as a worst-case O(n^2) operation over the input list.
ext/lists.go:766
↓ 3 callers
Method
undeclaredReference
(id int64, l common.Location, container string, name string)
checker/errors.go:82
↓ 3 callers
Method
valSize
valSize returns the SizeEstimate for the value if one exists.
checker/cost.go:349
↓ 3 callers
Method
value
(id int64)
interpreter/prune.go:468
↓ 3 callers
Function
zeroValueOf
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 callers
Method
AddDeclFn
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 callers
Method
AddDeclVar
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 callers
Method
AddFunctionDecls
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 callers
Method
AddMatch
AddMatch addes a Match to the rule.
policy/parser.go:231
↓ 2 callers
Method
AddOption
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 callers
Method
AddVariableDecls
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 callers
Method
Append
Append creates a new Errors object with the current and input errors.
common/errors.go:74
↓ 2 callers
Method
Arg
Arg returns the ref.Val at the given index, or an error if one occurred.
ext/formatting.go:775
↓ 2 callers
Method
AsCELFunction
AsCELFunction converts the serializable form of the Function into CEL environment declaration.
common/env/env.go:378
↓ 2 callers
Method
AsCELVariable
AsCELVariable converts the serializable form of the Variable into a CEL environment declaration.
common/env/env.go:305
↓ 2 callers
Function
ByteSource
ByteSource converts a byte sequence and location description to a model.Source.
policy/source.go:22
↓ 2 callers
Method
Calc
(i int)
repl/parser/commands_parser.go:5412
↓ 2 callers
Function
CheckedExprToAstWithSource
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 callers
Function
ClearMacros
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 callers
Method
ClearOffsetRange
ClearOffsetRange removes the OffsetRange for the given expression id.
common/ast/ast.go:369
↓ 2 callers
Method
Cmd
Cmd returns the normalized name for the command.
repl/commands.go:113
↓ 2 callers
Method
ComputeOffsetAbsolute
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 callers
Method
ConditionIsLiteral
ConditionIsLiteral indicates whether the condition for the match is a literal with a given value.
policy/compiler.go:139
↓ 2 callers
Function
ConfigFromYAML
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 callers
Function
ConfigToYAML
ConfigToYAML returns the config serialized to YAML Provided as a convenience wrapper around a tested YAML Marshaler.
common/env/io.go:269
↓ 2 callers
Method
ConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/timestamp.go:82
↓ 2 callers
Method
ConvertToNative
ConvertToNative implements ref.Val.ConvertToNative.
common/types/duration.go:94
↓ 2 callers
Method
ConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/timestamp.go:110
↓ 2 callers
Method
ConvertToType
ConvertToType implements ref.Val.ConvertToType.
common/types/duration.go:122
↓ 2 callers
Method
Copy
Copy the input expression with a brand new set of identifiers.
parser/macro.go:199
↓ 2 callers
Function
CopySourceInfo
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 callers
Function
CostLimit
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 callers
Function
CostObserver
CostObserver provides an observer that tracks runtime cost.
interpreter/runtimecost.go:50
↓ 2 callers
Function
CostTrackerFactory
CostTrackerFactory configures the factory method to generate a new cost-tracker per-evaluation.
interpreter/runtimecost.go:42
↓ 2 callers
Function
CostTrackerLimit
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 callers
Function
CustomDecorator
CustomDecorator configures a custom interpretable decorator for the program.
interpreter/interpreter.go:150
↓ 2 callers
Function
DefaultTagVisitor
DefaultTagVisitor creates a tag visitor which produces errors for any non-canonical YAML tag.
policy/parser.go:447
↓ 2 callers
Function
DefaultUTCTimeZone
DefaultUTCTimeZone ensures that time-based operations use the UTC timezone rather than the input time's local timezone.
cel/options.go:913
↓ 2 callers
Method
DelLetVar
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 callers
Method
Description
Description provides an overview of the function's purpose. Usage examples should be included on specific overloads.
common/decls/decls.go:121
↓ 2 callers
Method
Description
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 callers
Method
Descriptor
()
test/proto3pb/test_all_types.pb.go:62
↓ 2 callers
Method
Descriptor
()
test/proto2pb/test_all_types.pb.go:122
↓ 2 callers
Method
Elements
()
common/ast/expr.go:635
↓ 2 callers
Function
EnableCoverage
EnableCoverage returns a TestRunnerOption which enables coverage calculation for the test run.
tools/celtest/test_runner.go:545
↓ 2 callers
Function
EnableErrorOnBadPresenceTest
EnableErrorOnBadPresenceTest error generation when a presence test or optional field selection is performed on a primitive type.
interpreter/attributes.go:134
↓ 2 callers
Function
EnableErrorOnBadPresenceTest
EnableErrorOnBadPresenceTest enables error generation when a presence test or optional field selection is performed on a primitive type.
cel/library.go:682
↓ 2 callers
Function
EnableHiddenAccumulatorName
EnableHiddenAccumulatorName uses an accumulator variable name that is not a normally accessible identifier in source for comprehension macros. Compati
parser/options.go:146
↓ 2 callers
Function
EnableHiddenAccumulatorName
EnableHiddenAccumulatorName sets the parser to use the identifier '@result' for accumulators which is not normally accessible from CEL source.
cel/options.go:955
← previous
next →
901–1,000 of 7,240, ranked by callers