Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cel-expr/cel-go
/ functions
Functions
7,546 in github.com/cel-expr/cel-go
⨍
Functions
7,546
◇
Types & classes
876
↓ 4 callers
Function
DisableTypeGuards
DisableTypeGuards disables automatically generated function invocation guards on direct overload calls. Type guards remain on during dynamic dispatch
common/decls/decls.go:462
↓ 4 callers
Method
Divide
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 callers
Function
EnableVariadicOperatorASTs
EnableVariadicOperatorASTs enables a compact representation of chained like-kind commutative operators. e.g. `a || b || c || d` -> `call(op='||', args
parser/options.go:171
↓ 4 callers
Function
EncodersVersion
EncodersVersion sets the library version for encoder extensions.
ext/encoders.go:81
↓ 4 callers
Function
EntryExprToProto
EntryExprToProto converts an ast.EntryExpr to a protobuf CreateStruct entry
common/ast/conversion.go:315
↓ 4 callers
Function
ExceedsDepth
ExceedsDepth determines whether the AST contains expressions nested deeper than the specified maxDepth. The root expression has depth 0, so a maxDepth
common/ast/navigable.go:191
↓ 4 callers
Function
FoldKnownValues
FoldKnownValues adds an Activation which provides known values for the folding evaluator Any values the activation provides will be used by the const
cel/folding.go:49
↓ 4 callers
Function
FormatCheckedType
FormatCheckedType converts a type message into a string representation.
checker/format.go:45
↓ 4 callers
Function
FromConfig
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 callers
Method
Function
Function returns the name of the function being called.
interpreter/async.go:60
↓ 4 callers
Function
FunctionDecls
FunctionDecls provides one or more fully formed function declarations to be added to the environment.
cel/decls.go:221
↓ 4 callers
Function
FunctionMatcher
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 callers
Method
GetEntries
()
parser/gen/cel_parser.go:2998
↓ 4 callers
Method
GetLeadingDot
GetLeadingDot returns the leadingDot token.
repl/parser/commands_parser.go:3079
↓ 4 callers
Method
GetParams
GetParams returns the params rule contexts.
repl/parser/commands_parser.go:3447
↓ 4 callers
Method
GetType
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 callers
Method
GetTypeDescription
GetTypeDescription returns a TypeDescription for a qualified protobuf message type name declared within the .proto file.
common/types/pb/file.go:109
↓ 4 callers
Method
GetTypeNames
GetTypeNames returns the list of all type names contained within the file.
common/types/pb/file.go:115
↓ 4 callers
Method
HasOutput
HasOutput indicates whether the output field is set of the match.
policy/parser.go:323
↓ 4 callers
Function
InitEmptyMemberContext
(p *MemberContext)
parser/gen/cel_parser.go:2145
↓ 4 callers
Function
InitEmptyMemberContext
(p *MemberContext)
repl/parser/commands_parser.go:6103
↓ 4 callers
Function
InsertMapKeyValue
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 callers
Function
IsBool
IsBool returns whether the input ref.Val or ref.Type is equal to BoolType.
common/types/bool.go:141
↓ 4 callers
Method
IsDeclarationDisabled
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:131
↓ 4 callers
Method
IsMessage
IsMessage returns true if the field is of message type.
common/types/pb/type.go:331
↓ 4 callers
Method
IsReceiverStyle
IsReceiverStyle returns true if the macro matches a receiver style call.
parser/macro.go:112
↓ 4 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
↓ 4 callers
Function
MacroDocs
MacroDocs configures a list of strings into a multiline description for the macro.
parser/macro.go:31
↓ 4 callers
Function
MacroExamples
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 callers
Method
MacroKey
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 callers
Method
Matches
Matches returns the ordered set of Match declarations.
policy/parser.go:211
↓ 4 callers
Method
MaybeUnwrap
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 callers
Function
Merge
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 callers
Method
NestedRule
NestedRule returns the nested rule, if set.
policy/compiler.go:150
↓ 4 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:133
↓ 4 callers
Function
NewCompiler
NewCompiler creates a new compiler with a set of functional options.
tools/compiler/compiler.go:120
↓ 4 callers
Method
NewComprehensionTwoVar
NewComprehensionTwoVar creates an Expr value representing a two-variable comprehension over a value range.
common/ast/factory.go:34
↓ 4 callers
Function
NewExtension
NewExtension creates an Extension to be recorded on the SourceInfo.
common/ast/ast.go:538
↓ 4 callers
Function
NewInlineVariable
NewInlineVariable declares a variable name to be replaced by a checked expression.
cel/inlining.go:55
↓ 4 callers
Function
NewInliningOptimizer
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 callers
Function
NewIssues
NewIssues returns an Issues struct from a common.Errors object.
cel/env.go:1015
↓ 4 callers
Function
NewReceiverVarArgMacro
NewReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count.
parser/macro.go:85
↓ 4 callers
Method
NewStructField
NewStructField creates a new struct field initializer from the field name and value.
parser/macro.go:218
↓ 4 callers
Function
NewTextSourceWithLimit
NewTextSourceWithLimit creates a new Source from the input text string while enforcing a maximum code point count when needed.
common/source.go:79
↓ 4 callers
Method
NextAction
NextAction evaluates the current state of asynchronous evaluation and determines the next step. - completed: The set of completions accumulated in th
cel/async/async.go:65
↓ 4 callers
Method
OperandTrait
OperandTrait returns the trait mask of the first operand to the overload call, e.g. `traits.Indexer`
common/decls/decls.go:719
↓ 4 callers
Method
Output
Output returns the output expression, or empty expression if output is not set.
policy/parser.go:328
↓ 4 callers
Method
Output
Output returns the compiled output expression associated with the match block, if set.
policy/compiler.go:145
↓ 4 callers
Method
OutputType
OutputType returns the output type of the first match clause as all match clauses are validated for agreement prior to construction fo the CompiledRul
policy/compiler.go:61
↓ 4 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
common/decls/decls.go:1001
↓ 4 callers
Function
OverloadOperandTrait
OverloadOperandTrait configures a set of traits which the first argument to the overload must implement in order to be successfully invoked.
common/decls/decls.go:1010
↓ 4 callers
Function
Parse
Parse parses a repl command line into a command object. This provides the normalized command name plus any parsed parameters (e.g. variable names in l
repl/commands.go:181
↓ 4 callers
Function
ParseDescription
ParseDescription takes a single string containing newline characters and splits it into a multiline description. All empty lines will be skipped. Ret
common/doc.go:76
↓ 4 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:183
↓ 4 callers
Method
Process
Process processes the command provided.
repl/evaluator.go:1356
↓ 4 callers
Function
ProtoAsType
ProtoAsType converts a canonical CEL celpb.Type protobuf type to a CEL-native type representation.
common/types/types.go:692
↓ 4 callers
Method
ProtoKind
ProtoKind returns the protobuf reflected kind of the field.
common/types/pb/type.go:373
↓ 4 callers
Function
ProtoToSourceInfo
ProtoToSourceInfo deserializes the protobuf into a native SourceInfo value.
common/ast/conversion.go:573
↓ 4 callers
Method
Push
Push creates a new Scopes value which references the current Scope as its parent.
checker/scopes.go:54
↓ 4 callers
Method
QualInt
QualInt adds an int qualifier pattern to the AttributePattern. The index may be either a map or list index.
interpreter/attribute_patterns.go:71
↓ 4 callers
Method
Qualify
Qualify replicates the Attribute.Qualify method to permit extension and interception of object qualification.
interpreter/interpretable.go:101
↓ 4 callers
Method
Receive
Receive implements traits.Receiver.Receive.
common/types/duration.go:157
↓ 4 callers
Function
Regex
Regex returns a cel.EnvOption to configure extended functions for regular expression operations. Note: all functions use the 'regex' namespace. If yo
ext/regex.go:104
↓ 4 callers
Method
RegisterDescriptor
RegisterDescriptor produces a `FileDescription` from a `FileDescriptor` and registers the message and enum types into the `pb.Db`.
common/types/pb/pb.go:168
↓ 4 callers
Method
Resolve
Resolve returns the value of the Attribute given the current Activation.
interpreter/interpretable.go:112
↓ 4 callers
Method
Rule
Rule returns the rule value, or nil if the rule is not set.
policy/parser.go:354
↓ 4 callers
Method
SetAsyncObserver
SetAsyncObserver sets the observer for monitoring asynchronous function calls.
interpreter/frame.go:296
↓ 4 callers
Method
SetMacroCall
SetMacroCall records a macro call at a specific location.
common/ast/ast.go:335
↓ 4 callers
Method
SetMetadata
SetMetadata updates a named metadata key with the given value.
policy/parser.go:125
↓ 4 callers
Function
Sets
Sets returns a cel.EnvOption to configure namespaced set relationship functions. There is no set type within CEL, and while one may be introduced in
ext/sets.go:78
↓ 4 callers
Function
SingletonBinaryBinding
SingletonBinaryBinding creates a singleton function definition to be used with all function overloads. Note, this approach works well if operand is e
cel/decls.go:269
↓ 4 callers
Method
Source
Source returns the policy file contents as a CEL source object.
policy/parser.go:60
↓ 4 callers
Method
SourceID
SourceID returns the expression id associated with the output expression.
policy/compiler.go:172
↓ 4 callers
Function
SourceInfoToProto
SourceInfoToProto serializes an ast.SourceInfo value to a protobuf SourceInfo object.
common/ast/conversion.go:529
↓ 4 callers
Method
Subset
Subset returns a new function declaration which contains only the overloads with the specified IDs. If the subset function contains no overloads, then
common/decls/decls.go:229
↓ 4 callers
Function
ToAST
ToAST converts a CheckedExpr protobuf to an AST instance.
common/ast/conversion.go:78
↓ 4 callers
Function
ToProto
ToProto converts an AST to a CheckedExpr protobouf.
common/ast/conversion.go:44
↓ 4 callers
Method
TypeAdapter
TypeAdapter returns the `ref.TypeAdapter` configured for the environment. Deprecated: use CELTypeAdapter()
cel/env.go:752
↓ 4 callers
Method
Unary
Getter signatures
repl/parser/commands_parser.go:5410
↓ 4 callers
Function
UnparseType
UnparseType pretty-prints a type for the REPL.
repl/typefmt.go:41
↓ 4 callers
Function
ValToConstant
ValToConstant converts a CEL-native ref.Val to a protobuf Constant. Only simple scalar types are supported by this method.
common/ast/conversion.go:640
↓ 4 callers
Function
ValidateDurationLiterals
ValidateDurationLiterals ensures that duration literal arguments are valid immediately after type-check.
cel/validator.go:227
↓ 4 callers
Function
ValidateTimestampLiterals
ValidateTimestampLiterals ensures that timestamp literal arguments are valid immediately after type-check.
cel/validator.go:232
↓ 4 callers
Function
VariableDecls
VariableDecls configures a set of fully defined cel.VariableDecl instances in the environment.
cel/decls.go:157
↓ 4 callers
Method
VersionNumber
VersionNumber returns the parsed version string, or an error if the version cannot be parsed.
common/env/env.go:500
↓ 4 callers
Method
Visit
(tree antlr.ParseTree)
repl/typefmt.go:65
↓ 4 callers
Function
WrapOnColumn
WrapOnColumn wraps the output expression when its string length exceeds a specified limit for operators set by WrapOnOperators function or by default,
parser/unparser.go:606
↓ 4 callers
Method
Zero
Zero returns an empty immutable protobuf message when the description is a protobuf message type.
common/types/pb/type.go:38
↓ 4 callers
Function
adaptToV2
adaptToV2 adapts a V1 Interpretable implementation to the V2 interface. This adapter is used to bridge the legacy Interpretable interface to the mode
interpreter/interpretable.go:54
↓ 4 callers
Function
addFunctionBindings
(t testing.TB, dispatcher Dispatcher)
interpreter/interpreter_test.go:2616
↓ 4 callers
Function
addInt64Checked
addInt64Checked performs addition with overflow detection of two int64 values. If the operation fails the error return value will be non-nil.
common/types/overflow.go:29
↓ 4 callers
Method
applyContext
applyContext evaluates the let expressions in the context to build an activation for the given expression. returns the environment for compiling and p
repl/evaluator.go:1010
↓ 4 callers
Function
convertProto
(src, dst proto.Message)
cel/io.go:366
↓ 4 callers
Method
create
(parent, child Activation)
interpreter/frame.go:337
↓ 4 callers
Function
doubleToInt64Lossless
(v float64)
common/types/overflow.go:410
↓ 4 callers
Method
eval
(expr string)
tools/celtest/test_runner.go:857
↓ 4 callers
Function
expectNativeToValue
(t *testing.T, in any, out ref.Val)
common/types/provider_test.go:857
↓ 4 callers
Function
formatTo
(sb *strings.Builder, val ref.Val)
common/types/format.go:23
↓ 4 callers
Function
getElem
(t *testing.T, list traits.Indexer, index ref.Val)
common/types/list_test.go:867
↓ 4 callers
Function
isNumericArgType
(arg ast.Expr)
ext/math.go:929
← previous
next →
701–800 of 7,546, ranked by callers