MCPcopy Create free account

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

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

↓ 5 callersFunctionSingletonBinaryBinding
SingletonBinaryBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is e
common/decls/decls.go:501
↓ 5 callersMethodSize
Size implements the traits.Sizer interface method.
common/types/list.go:479
↓ 5 callersMethodSnippet
Snippet returns a line of content and whether the line was found.
common/source.go:56
↓ 5 callersMethodState
State of the evaluation, non-nil if the OptTrackState or OptExhaustiveEval is specified within EvalOptions.
cel/program.go:130
↓ 5 callersFunctionTestCompiler
TestCompiler returns a TestRunnerOption which configures the test runner with a compiler created using the set of compiler options.
tools/celtest/test_runner.go:451
↓ 5 callersFunctionTestSuite
TestSuite provides a reference to the test suite file (either .yaml or .textproto)
tools/celtest/test_runner.go:292
↓ 5 callersMethodToConfig
ToConfig converts the internal configuration of an ASTValidator into an env.Validator instance which minimally must include the validator name, but ma
cel/validator.go:124
↓ 5 callersMethodToDisplayString
ToDisplayString returns the error set to a newline delimited string.
common/errors.go:84
↓ 5 callersFunctionTriggerTests
TriggerTests triggers tests for a CEL policy, expression or checked expression with the provided set of options. The options can be used to: - configu
tools/celtest/test_runner.go:141
↓ 5 callersFunctionTwoVarComprehensions
TwoVarComprehensions introduces support for two-variable comprehensions. The two-variable form of comprehensions looks similar to the one-variable co
ext/comprehensions.go:163
↓ 5 callersMethodType_
()
repl/parser/commands_parser.go:3576
↓ 5 callersMethodUnion
Union returns a SizeEstimate that encompasses both input the SizeEstimate.
checker/cost.go:151
↓ 5 callersMethodValue
Value implements ref.Val.Value.
common/types/string.go:185
↓ 5 callersMethodaddIndent
()
common/debug/debug.go:301
↓ 5 callersMethodappendLine
()
common/debug/debug.go:296
↓ 5 callersFunctionattrQualify
attrQualify performs a qualification using the result of an attribute evaluation.
interpreter/attributes.go:1339
↓ 5 callersFunctionattrQualifyIfPresent
attrQualifyIfPresent conditionally performs the qualification of the result of attribute is present on the target object.
interpreter/attributes.go:1353
↓ 5 callersMethodcheckMapValid
(ctx ParserContext, id int64, node *yaml.Node)
policy/parser.go:911
↓ 5 callersMethodclearPlan
Reset plan if we need to recompile based on a dependency change.
repl/evaluator.go:317
↓ 5 callersFunctioncompile
(t testing.TB, name string, policy *Policy, envOpts []cel.EnvOption, compilerOpts []CompilerOption)
policy/compiler_test.go:509
↓ 5 callersFunctioncompile
(t testing.TB, env *Env, expr string)
cel/cel_test.go:3991
↓ 5 callersFunctioncompileOrError
(t testing.TB, env *Env, expr string)
cel/cel_test.go:4000
↓ 5 callersFunctionestimateStringScan
(sz checker.SizeEstimate)
ext/costs.go:35
↓ 5 callersFunctionmacroTargetMatchesNamespace
(ns string, target ast.Expr)
ext/guards.go:62
↓ 5 callersFunctionmissingKey
(missing ref.Val)
interpreter/attributes.go:1450
↓ 5 callersFunctionnewTestEnv
(t testing.TB, cont *containers.Container, reg *types.Registry)
interpreter/interpreter_test.go:2374
↓ 5 callersFunctionparseIPAddr
(raw string)
ext/network.go:467
↓ 5 callersFunctionprogram
(t testing.TB, tst *testCase, opts ...PlannerOption)
interpreter/interpreter_test.go:2237
↓ 5 callersFunctionrefQualify
refQualify attempts to convert the value to a CEL value and then uses reflection methods to try and apply the qualifier with the option to presence te
interpreter/attributes.go:1368
↓ 5 callersMethodremoveIndent
()
common/debug/debug.go:305
↓ 5 callersFunctionsanitizeProtoName
sanitizeProtoName strips the leading '.' from the proto message name.
common/types/pb/file.go:126
↓ 5 callersMethodsetEntrySize
(e ast.Expr, size *entrySizeEstimate)
checker/cost.go:970
↓ 5 callersMethodsetReference
(e ast.Expr, r *ast.ReferenceInfo)
checker/checker.go:684
↓ 5 callersFunctiontestContainer
(name string)
interpreter/interpreter_test.go:2232
↓ 5 callersFunctiontestEvalWithCost
(t *testing.T, env *cel.Env, ast *cel.Ast, in any, wantCost uint64)
ext/sets_test.go:502
↓ 5 callersFunctiontestMathEnv
(t *testing.T, opts ...cel.EnvOption)
ext/math_test.go:661
↓ 5 callersFunctiontoParserHelper
(meh MacroExprHelper)
cel/macro.go:582
↓ 4 callersMethodAddExtension
AddExtension adds an extension record into the SourceInfo.
common/ast/ast.go:453
↓ 4 callersMethodAddFunctions
AddFunctions adds one or more functions to the config.
common/env/env.go:180
↓ 4 callersMethodArgCount
ArgCount for the function call. When the macro is a var-arg style macro, the return value will be zero, but the MacroKey will contain a `*` where the
parser/macro.go:109
↓ 4 callersFunctionAsPartialActivation
AsPartialActivation walks the activation hierarchy and returns the first PartialActivation, if found.
interpreter/activation.go:201
↓ 4 callersMethodCandidateVariableNames
CandidateVariableNames returns the possible namespaced variable names for this Attribute in the CEL namespace resolution order.
interpreter/attributes.go:123
↓ 4 callersMethodClearMacroCall
ClearMacroCall clears the macro at the given expression id.
cel/optimizer.go:305
↓ 4 callersFunctionCompileRegexConstants
CompileRegexConstants compiles regex pattern string constants at program creation time and reports any regex pattern compile errors.
interpreter/interpreter.go:217
↓ 4 callersFunctionCompileRule
CompileRule creates a compiled rules from the policy which contains a set of compiled variables and match statements. The compiled rule defines an exp
policy/compiler.go:257
↓ 4 callersMethodCompileSource
CompileSource combines the Parse and Check phases CEL program compilation to produce an Ast and associated issues. If an error is encountered during
cel/env.go:472
↓ 4 callersMethodCompose
Compose stitches together a set of expressions within a CompiledRule into a single CEL ast.
policy/composer.go:74
↓ 4 callersMethodComputedSize
ComputedSize returns a size estimate of the AstNode derived from information available in the CEL expression. For constants and inline list and map de
checker/cost.go:73
↓ 4 callersFunctionConstant
Constant creates an instances of an identifier declaration with a variable name, type, and value.
cel/decls.go:136
↓ 4 callersFunctionConstantToVal
ConstantToVal converts a protobuf Constant to a CEL-native ref.Val.
common/ast/conversion.go:664
↓ 4 callersFunctionCopy
Copy creates a deep copy of the Expr and SourceInfo values in the input AST. Copies of the Expr value are generated using an internal default ExprFac
common/ast/ast.go:133
↓ 4 callersMethodDeclaredTypeName
DeclaredTypeName indicates the fully qualified and parameterized type-check type name.
common/types/types.go:351
↓ 4 callersMethodDepth
Depth indicates the depth in the expression tree. The root expression has depth 0.
common/ast/navigable.go:42
↓ 4 callersMethodDescribeEnum
DescribeEnum takes a qualified enum name and returns an `EnumDescription` if it exists in the `pb.Db`.
common/types/pb/pb.go:226
↓ 4 callersFunctionDiffMessage
DiffMessage creates a diff dump message for test failures.
test/compare.go:29
↓ 4 callersFunctionDisableDeclaration
DisableDeclaration indicates that the function declaration should be disabled, but the runtime function binding should be provided. Marking a function
common/decls/decls.go:464
↓ 4 callersFunctionDisableTypeGuards
DisableTypeGuards disables automatically generated function invocation guards on direct overload calls. Type guards remain on during dynamic dispatch
common/decls/decls.go:454
↓ 4 callersMethodDivide
Divide returns the result of dividing the current value by the input denominator. A denominator value of zero results in an error.
common/types/traits/math.go:33
↓ 4 callersFunctionEnableVariadicOperatorASTs
EnableVariadicOperatorASTs enables a compact representation of chained like-kind commutative operators. e.g. `a || b || c || d` -> `call(op='||', args
parser/options.go:158
↓ 4 callersFunctionEntryExprToProto
EntryExprToProto converts an ast.EntryExpr to a protobuf CreateStruct entry
common/ast/conversion.go:315
↓ 4 callersMethodEstimateSize
EstimateSize returns a SizeEstimate for the given AstNode, or nil if the estimator has no estimate to provide. The size is equivalent to the result o
checker/cost.go:41
↓ 4 callersFunctionFormatCheckedType
FormatCheckedType converts a type message into a string representation.
checker/format.go:45
↓ 4 callersFunctionFromConfig
FromConfig configures a CEL policy environment from a config file. This option supports all extensions supported by policies, whereas the cel.FromCon
policy/config.go:28
↓ 4 callersMethodFunction
Function returns the function name as it appears in text or mangled operator name as it appears in the operators.go file.
interpreter/interpretable.go:121
↓ 4 callersFunctionFunctionDecls
FunctionDecls provides one or more fully formed function declarations to be added to the environment.
cel/decls.go:221
↓ 4 callersFunctionFunctionMatcher
FunctionMatcher returns an ExprMatcher which will match NavigableExpr nodes of CallKind type whose function name is equal to `funcName`.
common/ast/navigable.go:86
↓ 4 callersMethodGetEntries
()
parser/gen/cel_parser.go:2998
↓ 4 callersMethodGetLeadingDot
GetLeadingDot returns the leadingDot token.
repl/parser/commands_parser.go:3079
↓ 4 callersMethodGetParams
GetParams returns the params rule contexts.
repl/parser/commands_parser.go:3447
↓ 4 callersMethodGetType
GetType returns the variable type description. Note, if both the embedded TypeDesc and the field Type are non-nil, the embedded TypeDesc will take pr
common/env/env.go:291
↓ 4 callersMethodGetTypeDescription
GetTypeDescription returns a TypeDescription for a qualified protobuf message type name declared within the .proto file.
common/types/pb/file.go:109
↓ 4 callersMethodGetTypeNames
GetTypeNames returns the list of all type names contained within the file.
common/types/pb/file.go:115
↓ 4 callersMethodHasLateBinding
HasLateBinding returns true if the function has late bindings. A function cannot mix late bindings with other bindings.
common/decls/decls.go:315
↓ 4 callersMethodHasOutput
HasOutput indicates whether the output field is set of the match.
policy/parser.go:323
↓ 4 callersFunctionInitEmptyMemberContext
(p *MemberContext)
parser/gen/cel_parser.go:2145
↓ 4 callersFunctionInitEmptyMemberContext
(p *MemberContext)
repl/parser/commands_parser.go:6103
↓ 4 callersFunctionInsertMapKeyValue
InsertMapKeyValue inserts a key, value pair into the target map if the target map does not already contain the given key. If the map is mutable, it i
common/types/map.go:1022
↓ 4 callersFunctionInterruptCheckFrequency
InterruptCheckFrequency configures the number of iterations within a comprehension to evaluate before checking whether the function evaluation has bee
cel/options.go:731
↓ 4 callersFunctionIsBool
IsBool returns whether the input ref.Val or ref.Type is equal to BoolType.
common/types/bool.go:141
↓ 4 callersMethodIsDeclarationDisabled
IsDeclarationDisabled indicates that the function implementation should be added to the dispatcher, but the declaration should not be exposed for use
common/decls/decls.go:130
↓ 4 callersMethodIsMessage
IsMessage returns true if the field is of message type.
common/types/pb/type.go:331
↓ 4 callersMethodIsReceiverStyle
IsReceiverStyle returns true if the macro matches a receiver style call.
parser/macro.go:112
↓ 4 callersFunctionMacroDocs
MacroDocs configures a list of strings into a multiline description for the macro.
parser/macro.go:31
↓ 4 callersFunctionMacroExamples
MacroExamples configures a list of examples, either as a string or common.MultilineString, into an example set to be provided with the macro Documenta
parser/macro.go:40
↓ 4 callersMethodMacroKey
MacroKey returns the macro signatures accepted by this macro. Format: `<function>:<arg-count>:<is-receiver>`. When the macros is a var-arg style mac
parser/macro.go:119
↓ 4 callersMethodMatches
Matches returns the ordered set of Match declarations.
policy/parser.go:211
↓ 4 callersMethodMaybeUnwrap
MaybeUnwrap accepts a proto message as input and unwraps it to a primitive CEL type if possible. This method returns the unwrapped value and 'true',
common/types/pb/type.go:134
↓ 4 callersFunctionMerge
Merge will copy the source proto message into the destination, or error if the merge cannot be completed. Unlike the proto.Merge, this method will fa
common/types/pb/pb.go:66
↓ 4 callersMethodNestedRule
NestedRule returns the nested rule, if set.
policy/compiler.go:150
↓ 4 callersFunctionNewCompiler
NewCompiler creates a new compiler with a set of functional options.
tools/compiler/compiler.go:120
↓ 4 callersMethodNewComprehensionTwoVar
NewComprehensionTwoVar creates an Expr value representing a two-variable comprehension over a value range.
common/ast/factory.go:34
↓ 4 callersFunctionNewDispatcher
NewDispatcher returns an empty Dispatcher instance.
interpreter/dispatcher.go:36
↓ 4 callersFunctionNewErrWithNodeID
NewErrWithNodeID creates a new Err described by the format string and args. TODO: Audit the use of this function and standardize the error messages an
common/types/err.go:73
↓ 4 callersFunctionNewExtension
NewExtension creates an Extension to be recorded on the SourceInfo.
common/ast/ast.go:530
↓ 4 callersFunctionNewGlobalMacro
NewGlobalMacro creates a Macro for a global function with the specified arg count.
parser/macro.go:48
↓ 4 callersFunctionNewInlineVariable
NewInlineVariable declares a variable name to be replaced by a checked expression.
cel/inlining.go:55
↓ 4 callersFunctionNewInliningOptimizer
NewInliningOptimizer creates and optimizer which replaces variables with expression definitions. If a variable occurs one time, the variable is repla
cel/inlining.go:70
↓ 4 callersFunctionNewInterpreter
NewInterpreter builds an Interpreter from a Dispatcher and TypeProvider which will be used throughout the Eval of all Interpretable instances generate
interpreter/interpreter.go:231
↓ 4 callersFunctionNewIssues
NewIssues returns an Issues struct from a common.Errors object.
cel/env.go:979
↓ 4 callersFunctionNewReceiverVarArgMacro
NewReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
parser/macro.go:85
← previousnext →601–700 of 7,240, ranked by callers