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
FindOverload
FindOverload returns an Overload definition matching the provided name.
interpreter/dispatcher.go:29
↓ 3 callers
Function
FindReverse
FindReverse returns the unmangled, text representation of the operator.
common/operators/operators.go:116
↓ 3 callers
Method
FnDecl
()
repl/parser/commands_parser.go:1781
↓ 3 callers
Function
Format
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 callers
Method
Get
Get implements the traits.Indexer interface method.
common/types/list.go:446
↓ 3 callers
Method
GetE1
GetE1 returns the e1 rule contexts.
repl/parser/commands_parser.go:4386
↓ 3 callers
Method
GetEnumNames
GetEnumNames returns the string names of all enum values in the file.
common/types/pb/file.go:97
↓ 3 callers
Method
GetFn
GetFn returns the fn rule contexts.
repl/parser/commands_parser.go:952
↓ 3 callers
Method
GetLocationByOffset
GetLocationByOffset returns the line and column information for a given character offset.
common/ast/ast.go:397
↓ 3 callers
Method
GetOverloadIDs
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 callers
Method
GetT
GetT returns the t rule contexts.
repl/parser/commands_parser.go:1903
↓ 3 callers
Method
GetValues
GetValues returns the values rule context list.
repl/parser/commands_parser.go:8739
↓ 3 callers
Method
GetVar_
GetVar_ returns the var_ rule contexts.
repl/parser/commands_parser.go:949
↓ 3 callers
Method
GlobalCall
GlobalCall creates a function call Expr value for a global (free) function.
cel/macro.go:127
↓ 3 callers
Method
HasOptionalOutput
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 callers
Method
HasRule
HasRule indicates whether the rule field is set on a match.
policy/parser.go:349
↓ 3 callers
Function
HomogeneousAggregateLiterals
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 callers
Method
Imports
Imports returns the list of imports associated with the policy.
policy/parser.go:70
↓ 3 callers
Function
IndexOrError
IndexOrError converts an input index value into either a lossless integer index or an error.
common/types/list.go:549
↓ 3 callers
Function
InitEmptyUnaryContext
(p *UnaryContext)
parser/gen/cel_parser.go:1770
↓ 3 callers
Function
InitEmptyUnaryContext
(p *UnaryContext)
repl/parser/commands_parser.go:5728
↓ 3 callers
Method
InitVals
InitVals returns all the list elements, map key and values or struct field values.
interpreter/interpretable.go:139
↓ 3 callers
Method
Is
Is implements errors.Is.
common/types/err.go:160
↓ 3 callers
Method
IsEnum
IsEnum returns true if the field type refers to an enum value.
common/types/pb/type.go:321
↓ 3 callers
Function
JSONFieldNames
JSONFieldNames enables the use of json names instead of the standard protobuf snake_case field names
checker/options.go:46
↓ 3 callers
Method
JSONFieldNames
JSONFieldNames returns whether json field names are enabled in this registry.
common/types/provider.go:185
↓ 3 callers
Method
LineOffsets
LineOffsets returns a list of the 0-based character offsets in the input text where newlines appear.
common/ast/ast.go:300
↓ 3 callers
Function
ListsVersion
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 callers
Method
LocationOffset
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 callers
Function
MaxID
MaxID returns the upper-bound, non-inclusive, of ids present within the AST's Expr value.
common/ast/ast.go:153
↓ 3 callers
Method
Metadata
Metadata returns a named metadata object if one exists within the policy.
policy/parser.go:90
↓ 3 callers
Method
Modulo
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 callers
Method
Name
Name returns the snake_case name of the field within the proto-based struct.
common/types/pb/type.go:359
↓ 3 callers
Method
Name
Name returns the fully-qualified variable name
common/decls/decls.go:963
↓ 3 callers
Method
NativeToValue
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 callers
Function
Network
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 callers
Function
NewBufferAndLineOffsetsWithLimit
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 callers
Function
NewCommandsLexer
NewCommandsLexer produces a new lexer instance for the optional input antlr.CharStream.
repl/parser/commands_lexer.go:345
↓ 3 callers
Function
NewCommandsParser
NewCommandsParser produces a new parser instance for the optional input antlr.TokenStream.
repl/parser/commands_parser.go:282
↓ 3 callers
Function
NewConstant
NewConstant creates a new constant declaration.
common/decls/decls.go:932
↓ 3 callers
Function
NewExampleDoc
NewExampleDoc creates a new Doc struct specifically for holding an example.
common/doc.go:161
↓ 3 callers
Function
NewExecutionFrame
NewExecutionFrame creates a new execution frame from the pool.
interpreter/frame.go:73
↓ 3 callers
Function
NewFunctionWithDoc
NewFunctionWithDoc creates a serializable function and overload set.
common/env/env.go:346
↓ 3 callers
Function
NewGlobalVarArgMacro
NewGlobalVarArgMacro creates a Macro for a global function with a variable arg count.
parser/macro.go:73
↓ 3 callers
Function
NewLimit
NewLimit creates a new limit.
common/env/env.go:762
↓ 3 callers
Function
NewMutableList
NewMutableList creates a new mutable list whose internal state can be modified.
common/types/list.go:91
↓ 3 callers
Function
NewMutableMap
NewMutableMap constructs a mutable map from an adapter and a set of map values.
common/types/map.go:99
↓ 3 callers
Function
NewObjectType
NewObjectType creates an object type for a qualified type name.
checker/decls/decls.go:168
↓ 3 callers
Function
NewReceiverMacro
NewReceiverMacro creates a Macro for a receiver function matching the specified arg count.
parser/macro.go:60
↓ 3 callers
Function
NewTestRunner
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 callers
Function
NewVariableWithDoc
NewVariableWithDoc returns a serializable variable from a name, type definition, and doc string.
common/env/env.go:249
↓ 3 callers
Method
Number
()
test/proto3pb/test_all_types.pb.go:70
↓ 3 callers
Function
OptionalTypesVersion
OptionalTypesVersion configures the version of the optional type library. The version limits which functions are available. Only functions introduced
cel/library.go:385
↓ 3 callers
Function
OverloadIsNonStrict
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 callers
Method
ParseSource
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 callers
Function
ParseStructTags
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 callers
Function
ParseTypeDesc
ParseTypeDesc parses a TypeDesc from the type specifier format: "map<string, int>"
common/env/io.go:117
↓ 3 callers
Function
PartialEvalProgramOption
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 callers
Method
Pop
Pop returns the parent Scopes value for the current scope, or the current scope if the parent is nil.
checker/scopes.go:63
↓ 3 callers
Method
Programs
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 callers
Function
ProtoAsValue
ProtoAsValue converts between cel.expr.Value and ref.Val.
cel/io.go:282
↓ 3 callers
Method
QualifyIfPresent
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 callers
Function
ReceiverVarArgMacro
ReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
cel/macro.go:175
↓ 3 callers
Function
RefValueToValue
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 callers
Method
RegisterDescriptor
(protoreflect.FileDescriptor)
cel/options.go:319
↓ 3 callers
Method
RegisterType
(...ref.Type)
cel/options.go:320
↓ 3 callers
Method
Render
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 callers
Method
ReportErrorAtID
ReportErrorAtID logs an error during parsing which is included in the issue set returned from a failed parse.
policy/parser.go:907
↓ 3 callers
Method
ReportErrorString
ReportErrorString records an error at a source location.
common/errors.go:50
↓ 3 callers
Method
SetName
SetName configures the policy name.
policy/parser.go:110
↓ 3 callers
Method
SetValue
SetValue sets the observed value of the expression id.
interpreter/evalstate.go:31
↓ 3 callers
Method
String
String converts the issues to a suitable display string.
cel/env.go:1024
↓ 3 callers
Method
SyntaxVersion
SyntaxVersion returns the syntax version associated with the text expression.
common/ast/ast.go:284
↓ 3 callers
Method
Tests
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 callers
Function
ToDebugStringWithIDs
ToDebugStringWithIDs returns a string representation with AST node IDs.
common/debug/debug.go:327
↓ 3 callers
Method
ToImmutableMap
ToImmutableMap converts a mutable map into an immutable map.
common/types/traits/mapper.go:47
↓ 3 callers
Function
ToQualifiedName
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 callers
Method
Type
Type returns the types.Type value associated with the variable.
common/decls/decls.go:981
↓ 3 callers
Function
TypeDescriptorSetFile
TypeDescriptorSetFile returns an EnvOption which loads type descriptors from a file. The file must be in binary format.
tools/compiler/compiler.go:437
↓ 3 callers
Method
TypeParams
TypeParams returns the type parameter names associated with the overload.
common/decls/decls.go:702
↓ 3 callers
Function
UnsupportedRefValConversionErr
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 callers
Function
ValidateComprehensionNestingLimit
ValidateComprehensionNestingLimit ensures that comprehension nesting does not exceed the specified limit. This validator can be useful for preventing
cel/validator.go:231
↓ 3 callers
Function
ValidateDurationLiterals
ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
cel/validator.go:200
↓ 3 callers
Function
ValidateRegexLiterals
ValidateRegexLiterals ensures that regex patterns are validated after type-check.
cel/validator.go:210
↓ 3 callers
Function
ValidateTimestampLiterals
ValidateTimestampLiterals ensures that timestamp literal arguments are valid immediately after type-check.
cel/validator.go:205
↓ 3 callers
Method
Value
Value returns the constant value associated with the qualifier.
interpreter/attributes.go:96
↓ 3 callers
Function
ValueAsProto
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 callers
Method
VarDecl
()
repl/parser/commands_parser.go:1508
↓ 3 callers
Method
Variables
Variables returns the order set of Variable tuples.
policy/parser.go:216
↓ 3 callers
Method
Wildcard
Wildcard adds a special sentinel qualifier pattern that will match any single qualifier.
interpreter/attribute_patterns.go:92
↓ 3 callers
Function
adaptToExpr
(e *exprpb.Expr)
cel/macro.go:545
↓ 3 callers
Function
addFunctionBindings
(t testing.TB, dispatcher Dispatcher)
interpreter/interpreter_test.go:2429
↓ 3 callers
Method
addPath
(e ast.Expr, path []string)
checker/cost.go:895
↓ 3 callers
Method
adorn
(e any)
common/debug/debug.go:292
↓ 3 callers
Function
auth
Functions for constructing CEL inputs. auth constructs a `google.rpc.context.AttributeContext.Auth` message.
codelab/solution/codelab.go:493
↓ 3 callers
Function
compareDouble
(a, b Double)
common/types/compare.go:69
↓ 3 callers
Function
compareDoubleInt
(d Double, i Int)
common/types/compare.go:23
↓ 3 callers
Function
compareDoubleUint
(d Double, u Uint)
common/types/compare.go:37
↓ 3 callers
Function
compareIntUint
(i Int, u Uint)
common/types/compare.go:51
↓ 3 callers
Method
container
container returns the container kind (list or map) of the entry.
checker/cost.go:333
← previous
next →
801–900 of 7,240, ranked by callers