MCPcopy Create free account

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

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

↓ 3 callersMethodGetOverloadIDs
GetOverloadIDs returns the set of overload function names for a given expression id. If the expression id is not a function call, or the AST is not t
common/ast/ast.go:79
↓ 3 callersMethodGetT
GetT returns the t rule contexts.
repl/parser/commands_parser.go:1903
↓ 3 callersMethodGetValues
GetValues returns the values rule context list.
repl/parser/commands_parser.go:8739
↓ 3 callersMethodGetVar_
GetVar_ returns the var_ rule contexts.
repl/parser/commands_parser.go:949
↓ 3 callersMethodGlobalCall
GlobalCall creates a function call Expr value for a global (free) function.
cel/macro.go:127
↓ 3 callersMethodHasOptionalOutput
HasOptionalOutput returns whether the rule returns a concrete or optional value. The rule may return an optional value if all match expressions under
policy/compiler.go:82
↓ 3 callersMethodHasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:391
↓ 3 callersFunctionHomogeneousAggregateLiterals
HomogeneousAggregateLiterals disables mixed type list and map literal values. Note, it is still possible to have heterogeneous aggregates when provid
cel/options.go:237
↓ 3 callersMethodImports
Imports returns the list of imports associated with the policy.
policy/parser.go:88
↓ 3 callersFunctionIndexOrError
IndexOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:571
↓ 3 callersFunctionInitEmptyUnaryContext
(p *UnaryContext)
parser/gen/cel_parser.go:1770
↓ 3 callersFunctionInitEmptyUnaryContext
(p *UnaryContext)
repl/parser/commands_parser.go:5728
↓ 3 callersMethodInitVals
InitVals returns all the list elements, map key and values or struct field values.
interpreter/interpretable.go:139
↓ 3 callersMethodInsert
Insert a key, value pair into the map, returning the map if the insert is successful and an error if key already exists in the mutable map.
common/types/traits/mapper.go:44
↓ 3 callersMethodIsEnum
IsEnum returns true if the field type refers to an enum value.
common/types/pb/type.go:321
↓ 3 callersFunctionJSONFieldNames
JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
checker/options.go:46
↓ 3 callersMethodLineOffsets
LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
common/ast/ast.go:308
↓ 3 callersMethodLocationOffset
LocationOffset translates a Location to an offset. Given the line and column of the Location returns the Location's character offset in the Source, an
common/source.go:43
↓ 3 callersFunctionMathVersion
MathVersion sets the library version for math extensions.
ext/math.go:400
↓ 3 callersFunctionMaxExpressionNodeCount
MaxExpressionNodeCount limits the maximum number of expression nodes that may be emitted by the parser, including nodes created by macro expansion.
parser/options.go:103
↓ 3 callersFunctionMaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 3 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
↓ 3 callersMethodMetadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:108
↓ 3 callersMethodModulo
Modulo returns the result of taking the modulus of the current value by the denominator. A denominator value of zero results in an error.
common/types/traits/math.go:42
↓ 3 callersMethodName
Name returns the snake_case name of the field within the proto-based struct.
common/types/pb/type.go:359
↓ 3 callersMethodName
Name returns the fully-qualified variable name
common/decls/decls.go:1059
↓ 3 callersFunctionNewBufferAndLineOffsetsWithLimit
NewBufferAndLineOffsetsWithLimit returns an efficient implementation of Buffer for the given text and enforces a code point limit while constructing t
common/runes/buffer.go:143
↓ 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:92
↓ 3 callersFunctionNewObjectType
NewObjectType creates an object type for a qualified type name.
checker/decls/decls.go:168
↓ 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 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:128
↓ 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 callersFunctionSizeCalculatorMaxTraversal
SizeCalculatorMaxTraversal sets the maximum object traversal limit before saturating to math.MaxUint32.
common/types/size_calc.go:46
↓ 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:257
↓ 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:865
↓ 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 callersFunctioncomputeHMAC
(msg, secret []byte, hType crypto.Hash)
ext/security/hmac/hmac.go:334
↓ 3 callersMethodcondition
condition returns the condition associated with the output.
policy/composer.go:459
↓ 3 callersMethodcontainer
container returns the container kind (list or map) of the entry.
checker/cost.go:303
↓ 3 callersFunctiondescribeCELType
(t *types.Type)
common/decls/decls.go:1224
↓ 3 callersFunctiondoubleToInt64Checked
doubleToInt64Checked converts a double to an int64 value. If the conversion fails due to overflow the error return value will be non-nil.
common/types/overflow.go:302
↓ 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:995
↓ 3 callersFunctionestimateItemSize
(estimator checker.CostEstimator, node checker.AstNode)
ext/lists.go:975
↓ 3 callersFunctionextractIdent
(e ast.Expr)
parser/macro.go:597
↓ 3 callersFunctionfieldTypeConversionError
(field *pb.FieldDescription, err error)
common/types/provider.go:1019
↓ 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
← previousnext →901–1,000 of 7,844, ranked by callers