MCPcopy Create free account

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

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

↓ 3 callersFunctionNewCommandsLexer
NewCommandsLexer produces a new lexer instance for the optional input antlr.CharStream.
repl/parser/commands_lexer.go:345
↓ 3 callersFunctionNewCommandsParser
NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
repl/parser/commands_parser.go:282
↓ 3 callersFunctionNewConstant
NewConstant creates a new constant declaration.
common/decls/decls.go:1028
↓ 3 callersFunctionNewExampleDoc
NewExampleDoc creates a new Doc struct specifically for holding an example.
common/doc.go:161
↓ 3 callersFunctionNewFunctionWithDoc
NewFunctionWithDoc creates a serializable function and overload set.
common/env/env.go:346
↓ 3 callersFunctionNewGlobalVarArgMacro
NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count.
parser/macro.go:73
↓ 3 callersFunctionNewLimit
NewLimit creates a new limit.
common/env/env.go:762
↓ 3 callersFunctionNewMutableList
NewMutableList creates a new mutable list whose internal state can be modified.
common/types/list.go:91
↓ 3 callersFunctionNewMutableMap
NewMutableMap constructs a mutable map from an adapter and a set of map values.
common/types/map.go:99
↓ 3 callersFunctionNewObjectType
NewObjectType creates an object type for a qualified type name.
checker/decls/decls.go:168
↓ 3 callersFunctionNewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count.
parser/macro.go:60
↓ 3 callersFunctionNewTestRunner
NewTestRunner creates a Test Runner with the provided options. The options can be used to: - configure the Compiler used for parsing and compiling the
tools/celtest/test_runner.go:419
↓ 3 callersFunctionNewTypeValue
NewTypeValue creates an opaque type which has a set of optional type traits as defined in the common/types/traits package. Deprecated: use cel.Object
common/types/types.go:570
↓ 3 callersFunctionNewVariableWithDoc
NewVariableWithDoc returns a serializable variable from a name, type definition, and doc string.
common/env/env.go:249
↓ 3 callersFunctionOptionalTypesVersion
OptionalTypesVersion configures the version of the optional type library. The version limits which functions are available. Only functions introduced
cel/library.go:390
↓ 3 callersFunctionOverloadIsNonStrict
OverloadIsNonStrict enables the function to be called with error and unknown argument values. Note: do not use this option unless absoluately necessa
cel/decls.go:382
↓ 3 callersMethodParseSource
ParseSource parses the input source to an Ast and/or set of Issues. Parsing has failed if the returned Issues value and its Issues.Err() value is non
cel/env.go:714
↓ 3 callersFunctionParseTypeDesc
ParseTypeDesc parses a TypeDesc from the type specifier format: "map<string, int>"
common/env/io.go:117
↓ 3 callersFunctionPartialEvalProgramOption
PartialEvalProgramOption returns a TestRunnerOption which enables partial evaluation for the CEL program by setting the OptPartialEval eval option. N
tools/celtest/test_runner.go:537
↓ 3 callersMethodPop
Pop returns the parent Scopes value for the current scope, or the current scope if the parent is nil.
checker/scopes.go:59
↓ 3 callersMethodPrograms
Programs creates a list of CEL programs from the input expressions configured in the test runner using the provided program options.
tools/celtest/test_runner.go:574
↓ 3 callersFunctionProtoAsValue
ProtoAsValue converts between cel.expr.Value and ref.Val.
cel/io.go:306
↓ 3 callersMethodQualifierValueEquals
QualifierValueEquals returns true if the input value is equal to the value held in the Qualifier.
interpreter/attribute_patterns.go:138
↓ 3 callersMethodQualifyIfPresent
QualifyIfPresent qualifies the object if the qualifier is declared or defined on the object. The 'presenceOnly' flag indicates that the value is not n
interpreter/attributes.go:85
↓ 3 callersFunctionReceiverVarArgMacro
ReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
cel/macro.go:175
↓ 3 callersFunctionRefValueToValue
RefValueToValue converts between ref.Val and google.api.expr.v1alpha1.Value. The result Value is the serialized proto form. The ref.Val must not be er
cel/io.go:137
↓ 3 callersMethodRegisterDescriptor
(protoreflect.FileDescriptor)
cel/options.go:334
↓ 3 callersMethodRender
Render renders the user prompt with the associated context from the prompt template for use with LLM generators. User-supplied input is passed as tem
cel/prompt.go:140
↓ 3 callersMethodReportErrorAtID
ReportErrorAtID logs an error during parsing which is included in the issue set returned from a failed parse.
policy/parser.go:907
↓ 3 callersMethodReportErrorString
ReportErrorString records an error at a source location.
common/errors.go:50
↓ 3 callersMethodSetAsyncMaxConcurrency
SetAsyncMaxConcurrency sets the maximum concurrency for asynchronous function calls. A non-positive value indicates that concurrency is unbounded.
interpreter/frame.go:307
↓ 3 callersMethodSetName
SetName configures the policy name.
policy/parser.go:110
↓ 3 callersMethodSetValue
SetValue sets the observed value of the expression id.
interpreter/evalstate.go:31
↓ 3 callersFunctionSingletonAsyncBinding
SingletonAsyncBinding creates a singleton async function definition to be used with all function overloads. The provided function is called in its own
common/decls/decls.go:565
↓ 3 callersMethodString
String converts the issues to a suitable display string.
cel/env.go:1114
↓ 3 callersMethodSyntaxVersion
SyntaxVersion returns the syntax version associated with the text expression.
common/ast/ast.go:292
↓ 3 callersMethodTests
Tests creates a list of tests from the test suite file and test suite parser configured in the test runner. Note: The test setup uses env.PartialVars
tools/celtest/test_runner.go:613
↓ 3 callersFunctionToDebugStringWithIDs
ToDebugStringWithIDs returns a string representation with AST node IDs.
common/debug/debug.go:327
↓ 3 callersMethodToImmutableMap
ToImmutableMap converts a mutable map into an immutable map.
common/types/traits/mapper.go:47
↓ 3 callersFunctionToQualifiedName
ToQualifiedName converts an expression AST into a qualified name if possible, with a boolean 'found' value that indicates if the conversion is success
common/containers/container.go:313
↓ 3 callersMethodType
Type returns the types.Type value associated with the variable.
common/decls/decls.go:1077
↓ 3 callersFunctionTypeDescriptorSetFile
TypeDescriptorSetFile returns an EnvOption which loads type descriptors from a file. The file must be in binary format.
tools/compiler/compiler.go:437
↓ 3 callersMethodTypeParams
TypeParams returns the type parameter names associated with the overload.
common/decls/decls.go:746
↓ 3 callersFunctionValidateBindNestingLimit
ValidateBindNestingLimit ensures that cel.bind() macro nesting does not exceed the specified limit. This validator can be useful for preventing arbit
cel/validator.go:254
↓ 3 callersFunctionValidateRegexLiterals
ValidateRegexLiterals ensures that regex patterns are validated after type-check.
cel/validator.go:226
↓ 3 callersFunctionValidatedDeclarations
ValidatedDeclarations provides a reference to validated declarations which will be inherited as a parent scope without copying.
checker/options.go:38
↓ 3 callersMethodValue
Value returns the constant value associated with the qualifier.
interpreter/attributes.go:96
↓ 3 callersFunctionValueAsProto
ValueAsProto converts between ref.Val and cel.expr.Value. The result Value is the serialized proto form. The ref.Val must not be error or unknown.
cel/io.go:204
↓ 3 callersMethodVarDecl
()
repl/parser/commands_parser.go:1508
↓ 3 callersMethodVariables
Variables returns the order set of Variable tuples.
policy/parser.go:216
↓ 3 callersMethodWildcard
Wildcard adds a special sentinel qualifier pattern that will match any single qualifier.
interpreter/attribute_patterns.go:92
↓ 3 callersFunctionadaptToExpr
(e *exprpb.Expr)
cel/macro.go:545
↓ 3 callersMethodaddPath
(e ast.Expr, path []string)
checker/cost.go:895
↓ 3 callersMethodadorn
(e any)
common/debug/debug.go:292
↓ 3 callersFunctionasyncControllable
asyncControllable returns a channel-based AsyncOp whose calls block until release is closed, tracking the number of concurrently live calls and the hi
interpreter/async_test.go:452
↓ 3 callersFunctionauth
Functions for constructing CEL inputs. auth constructs a `google.rpc.context.AttributeContext.Auth` message.
codelab/solution/codelab.go:493
↓ 3 callersFunctioncompareDouble
(a, b Double)
common/types/compare.go:69
↓ 3 callersFunctioncompareDoubleInt
(d Double, i Int)
common/types/compare.go:23
↓ 3 callersFunctioncompareDoubleUint
(d Double, u Uint)
common/types/compare.go:37
↓ 3 callersFunctioncompareIntUint
(i Int, u Uint)
common/types/compare.go:51
↓ 3 callersMethodcontainer
container returns the container kind (list or map) of the entry.
checker/cost.go:333
↓ 3 callersFunctiondescribeCELType
(t *types.Type)
common/decls/decls.go:1224
↓ 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 callersFunctionestimateElementEqualityCost
(estimator checker.CostEstimator, elemType *types.Type, itemSize checker.SizeEstimate)
ext/lists.go:994
↓ 3 callersFunctionestimateItemSize
(estimator checker.CostEstimator, node checker.AstNode)
ext/lists.go:974
↓ 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:1006
↓ 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:2700
↓ 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: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: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:963
↓ 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 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
← previousnext →901–1,000 of 7,701, ranked by callers