MCPcopy Create free account

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

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

↓ 3 callersMethodFindOverload
FindOverload returns an Overload definition matching the provided name.
interpreter/dispatcher.go:29
↓ 3 callersFunctionFindReverse
FindReverse returns the unmangled, text representation of the operator.
common/operators/operators.go:116
↓ 3 callersMethodFnDecl
()
repl/parser/commands_parser.go:1781
↓ 3 callersFunctionFormat
Format formats the value as a string. The result is only intended for human consumption and ignores errors. Do not depend on the output being stable.
common/types/format.go:17
↓ 3 callersMethodGet
Get implements the traits.Indexer interface method.
common/types/list.go:446
↓ 3 callersMethodGetE1
GetE1 returns the e1 rule contexts.
repl/parser/commands_parser.go:4386
↓ 3 callersMethodGetEnumNames
GetEnumNames returns the string names of all enum values in the file.
common/types/pb/file.go:97
↓ 3 callersMethodGetFn
GetFn returns the fn rule contexts.
repl/parser/commands_parser.go:952
↓ 3 callersMethodGetLocationByOffset
GetLocationByOffset returns the line and column information for a given character offset.
common/ast/ast.go:397
↓ 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:71
↓ 3 callersMethodHasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:349
↓ 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:222
↓ 3 callersMethodImports
Imports returns the list of imports associated with the policy.
policy/parser.go:70
↓ 3 callersFunctionIndexOrError
IndexOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:549
↓ 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 callersMethodIs
Is implements errors.Is.
common/types/err.go:160
↓ 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 callersMethodJSONFieldNames
JSONFieldNames returns whether json field names are enabled in this registry.
common/types/provider.go:185
↓ 3 callersMethodLineOffsets
LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
common/ast/ast.go:300
↓ 3 callersFunctionListsVersion
ListsVersion configures the version of the string library. The version limits which functions are available. Only functions introduced below or equal
ext/lists.go:187
↓ 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 callersFunctionMaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 3 callersMethodMetadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:90
↓ 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:963
↓ 3 callersMethodNativeToValue
NativeToValue converts various "native" types to ref.Val with this specific implementation providing support for custom proto-based types. This metho
common/types/provider.go:407
↓ 3 callersFunctionNetwork
Network returns a cel.EnvOption to configure extended functions for network address parsing, inspection, and CIDR range manipulation. Note: This libr
ext/network.go:130
↓ 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:932
↓ 3 callersFunctionNewExampleDoc
NewExampleDoc creates a new Doc struct specifically for holding an example.
common/doc.go:161
↓ 3 callersFunctionNewExecutionFrame
NewExecutionFrame creates a new execution frame from the pool.
interpreter/frame.go:73
↓ 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 callersFunctionNewVariableWithDoc
NewVariableWithDoc returns a serializable variable from a name, type definition, and doc string.
common/env/env.go:249
↓ 3 callersMethodNumber
()
test/proto3pb/test_all_types.pb.go:70
↓ 3 callersFunctionOptionalTypesVersion
OptionalTypesVersion configures the version of the optional type library. The version limits which functions are available. Only functions introduced
cel/library.go:385
↓ 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:352
↓ 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:680
↓ 3 callersFunctionParseStructTags
ParseStructTags configures if native types field names should be overridable by CEL struct tags. This is equivalent to ParseStructTag("cel")
ext/native.go:179
↓ 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:63
↓ 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:282
↓ 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:113
↓ 3 callersMethodRegisterDescriptor
(protoreflect.FileDescriptor)
cel/options.go:319
↓ 3 callersMethodRegisterType
(...ref.Type)
cel/options.go:320
↓ 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 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 callersMethodString
String converts the issues to a suitable display string.
cel/env.go:1024
↓ 3 callersMethodSyntaxVersion
SyntaxVersion returns the syntax version associated with the text expression.
common/ast/ast.go:284
↓ 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:981
↓ 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:702
↓ 3 callersFunctionUnsupportedRefValConversionErr
UnsupportedRefValConversionErr returns a types.NewErr instance with a no such conversion message that indicates that the native value could not be con
common/types/err.go:95
↓ 3 callersFunctionValidateComprehensionNestingLimit
ValidateComprehensionNestingLimit ensures that comprehension nesting does not exceed the specified limit. This validator can be useful for preventing
cel/validator.go:231
↓ 3 callersFunctionValidateDurationLiterals
ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
cel/validator.go:200
↓ 3 callersFunctionValidateRegexLiterals
ValidateRegexLiterals ensures that regex patterns are validated after type-check.
cel/validator.go:210
↓ 3 callersFunctionValidateTimestampLiterals
ValidateTimestampLiterals ensures that timestamp literal arguments are valid immediately after type-check.
cel/validator.go:205
↓ 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:180
↓ 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 callersFunctionaddFunctionBindings
(t testing.TB, dispatcher Dispatcher)
interpreter/interpreter_test.go:2429
↓ 3 callersMethodaddPath
(e ast.Expr, path []string)
checker/cost.go:895
↓ 3 callersMethodadorn
(e any)
common/debug/debug.go:292
↓ 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
← previousnext →801–900 of 7,240, ranked by callers