MCPcopy Create free account

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

Functions9,178 in github.com/cel-expr/cel-go

MethodNewInterpretable
NewInterpretable implements the Interpreter interface method.
interpreter/interpreter.go:265
MethodNewList
NewList implements the ExprHelper interface method.
parser/helper.go:453
MethodNewList
NewList creates a CreateList instruction where the list is comprised of the optional set of elements provided as arguments.
cel/macro.go:418
MethodNewList
NewList creates a list expression with a set of optional indices. Examples: [a, b] - elems: [a, b] - optIndices: [] [a, ?b, ?c] - elems: [a, b, c]
cel/optimizer.go:413
MethodNewLiteral
NewLiteral implements the ExprHelper interface method.
parser/helper.go:448
MethodNewLiteral
NewLiteral creates a new literal expression value. The range of valid values for a literal generated during optimization is different than for expres
cel/optimizer.go:398
MethodNewLocation
NewLocation takes an input line and column and produces a Location. The default behavior is to treat the line and column as absolute, but concrete der
common/source.go:53
MethodNewLocation
NewLocation implements the Source interface method.
common/source.go:144
MethodNewMap
NewMap implements the ExprHelper interface method.
parser/helper.go:458
MethodNewMap
NewMap creates a CreateStruct instruction for a map where the map is comprised of the optional set of key, value entries.
cel/macro.go:424
MethodNewMap
NewMap creates a map from a set of entry expressions which contain a key and value expression.
cel/optimizer.go:418
MethodNewMapEntry
NewMapEntry implements the ExprHelper interface method.
parser/helper.go:463
MethodNewMapEntry
NewMapEntry creates a Map Entry for the key, value pair.
cel/macro.go:433
MethodNewMapEntry
NewMapEntry creates a map entry with a key and value expression and a flag to indicate whether the entry is optional. Examples: {a: b} - key: a - va
cel/optimizer.go:436
MethodNewMatch
NewMatch creates a new Match instance with an ID associated with the YAML node.
policy/parser.go:669
MethodNewMemberCall
NewMemberCall implements the ExprHelper interface method.
parser/helper.go:525
MethodNewMemberCall
NewMemberCall creates a member function call invocation expression where 'target' is the receiver of the call. Example: list.countByField(fieldName)
cel/optimizer.go:379
MethodNewObject
NewObject creates a CreateStruct instruction for an object with a given type name and optional set of field initializers.
cel/macro.go:92
MethodNewObject
NewObject creates a CreateStruct instruction for an object with a given type name and optional set of field initializers.
cel/macro.go:440
MethodNewObjectFieldInit
NewObjectFieldInit creates a new Object field initializer from the field name and value.
cel/macro.go:95
MethodNewObjectFieldInit
NewObjectFieldInit creates a new Object field initializer from the field name and value.
cel/macro.go:449
FunctionNewOptionalType
NewOptionalType constructs an abstract type indicating that the parameterized type may be contained within the object.
checker/decls/decls.go:69
FunctionNewOverload
NewOverload creates a function overload declaration which contains a unique overload id as well as the expected argument and result types. Overloads m
checker/decls/decls.go:177
FunctionNewParameterizedInstanceOverload
NewParameterizedInstanceOverload creates a parametric function instance overload type.
checker/decls/decls.go:186
FunctionNewParameterizedOverload
NewParameterizedOverload creates a parametric function overload type.
checker/decls/decls.go:199
MethodNewPolicy
NewPolicy creates a new Policy instance with an ID associated with the YAML node.
policy/parser.go:648
MethodNewPresenceTest
NewPresenceTest implements the ExprHelper interface method.
parser/helper.go:530
MethodNewQualifier
(objType *types.Type, qualID int64, val any, opt bool)
interpreter/attributes_test.go:1481
MethodNewQualifier
NewQualifier is an implementation of the AttributeFactory interface.
interpreter/attributes.go:254
FunctionNewReceiverVarArgMacro
NewReceiverVarArgMacro creates a Macro for a receiver function matching a variable arg count. Deprecated: use ReceiverVarArgMacro
cel/macro.go:206
MethodNewRule
NewRule creates a new Rule instance with an ID associated with the YAML node.
policy/parser.go:655
MethodNewSelect
NewSelect implements the ExprHelper interface method.
parser/helper.go:535
MethodNewString
NewString creates a new ValueString from the YAML node.
policy/parser.go:676
MethodNewStruct
NewStruct implements the ExprHelper interface method.
parser/helper.go:468
MethodNewStruct
NewStruct creates a new typed struct value with an set of field initializations. Example: pkg.TypeName{field: value} - typeName: pkg.TypeName - fiel
cel/optimizer.go:469
MethodNewStructField
NewStructField implements the ExprHelper interface method.
parser/helper.go:473
MethodNewStructField
NewStructField creates a struct field initialization. Examples: {count: 3u} - field: count - value: 3u - optional: false {?count: x} - field: count
cel/optimizer.go:486
FunctionNewTypeParamType
NewTypeParamType creates a type corresponding to a named, contextual parameter.
checker/decls/decls.go:231
FunctionNewTypeType
NewTypeType creates a new type designating a type.
checker/decls/decls.go:220
MethodNewValue
(typeName string, fields map[string]ref.Val)
ext/encoders_test.go:2398
MethodNewValue
(typeName string, fields map[string]ref.Val)
ext/encoders_test.go:2414
MethodNewValue
(structType string, fields map[string]ref.Val)
cel/env_test.go:1410
MethodNewValue
(structType string, fields map[string]ref.Val)
cel/env_test.go:1438
MethodNewValue
NewValue creates a new CEL struct value from the given map of field values.
common/types/struct.go:35
MethodNewValue
(adapter Adapter, fields map[string]ref.Val)
common/types/provider_test.go:1572
MethodNewValue
(structType string, fields map[string]ref.Val)
common/types/provider_test.go:1780
MethodNewValue
(adapter Adapter, fields map[string]ref.Val)
common/types/provider_test.go:2476
MethodNewValue
(structType string, fields map[string]ref.Val)
common/types/provider_test.go:2503
MethodNewValue
NewValue creates a new type value from a qualified name and map of field name to value. Note, for each value, the Val.ConvertToNative function will b
common/types/ref/provider.go:48
FunctionNewVarWithDoc
NewVarWithDoc creates a variable identifier with a type and a description string.
checker/decls/decls.go:136
MethodNewVariable
NewVariable creates a new Variable instance with an ID associated with the YAML node.
policy/parser.go:662
FunctionNewWrapperType
NewWrapperType creates a wrapped primitive type instance. Wrapped types are roughly equivalent to a nullable, or optionally valued type.
checker/decls/decls.go:247
MethodNext
()
ext/encoders_test.go:2336
MethodNext
()
common/types/map.go:1063
MethodNext
Next implements the traits.Iterator interface method.
common/types/map.go:1402
MethodNext
Next implements the traits.Iterator interface method.
common/types/map.go:1425
MethodNext
Next implements the traits.Iterator interface method.
common/types/map.go:1448
MethodNext
Next implements the traits.Iterator interface method.
common/types/list.go:720
MethodNext
()
common/types/list.go:1392
MethodNextAction
(completed []Call, active int)
cel/async/async.go:76
MethodNextAction
(completed []Call, active int)
cel/async/async.go:90
MethodNextAction
(completed []Call, active int)
cel/async/async.go:111
MethodNodeID
NodeID returns the AST node ID of the expression that returned the error.
common/types/err.go:155
MethodNumber
()
test/proto3pb/test_all_types.pb.go:119
MethodNumber
()
test/proto3pb/test_import.pb.go:63
MethodNumber
()
test/proto2pb/test_all_types.pb.go:71
MethodNumber
()
test/proto2pb/test_all_types.pb.go:130
MethodObserve
Observe records the peak memory watermarks associated with each evaluation step. Watermarks are observed at the points where values materialize durin
interpreter/runtimememory.go:88
MethodObserve
Observe records the evaluation state for a given expression node and program step.
interpreter/interpreter.go:153
MethodOctal
Octal implements formatStringInterpolatorV2.Octal.
ext/formatting_v2.go:384
MethodOctal
Octal implements formatStringInterpolatorV2.Octal.
ext/formatting_v2.go:524
MethodOctal
Octal takes a ref.Val and a string representing the current locale identifier and returns the Val formatted in octal, or an error if one occurred.
ext/formatting_v2.go:668
MethodOctal
Octal implements formatStringInterpolator.Octal.
ext/formatting.go:398
MethodOctal
Octal implements formatStringInterpolator.Octal.
ext/formatting.go:584
MethodOctal
Octal takes a ref.Val and a string representing the current locale identifier and returns the Val formatted in octal, or an error if one occurred.
ext/formatting.go:768
MethodOffsetLocation
OffsetLocation returns the absolute location given the relative offset, if found.
policy/source.go:61
MethodOffsetLocation
OffsetLocation returns the absolute location given the relative offset, if found.
parser/parser_test.go:3956
MethodOffsetLocation
OffsetLocation returns the Location of the expression identifier.
cel/macro.go:523
MethodOffsetLocation
OffsetLocation implements the Source interface method.
common/source.go:149
MethodOffsetLocation
(offset int32)
common/ast/ast_test.go:472
MethodOnCallFinished
(callID int64, function, overload string, res ref.Val)
interpreter/async_test.go:521
MethodOnCallFinished
(callID int64, function, overload string, res ref.Val)
interpreter/async_test.go:822
MethodOnCallFinished
(callID int64, function, overload string, res ref.Val)
cel/program_async_test.go:1132
MethodOnCallStarted
(callID int64, function, overload string, args []ref.Val)
interpreter/async_test.go:518
MethodOnCallStarted
(callID int64, function, overload string, args []ref.Val)
interpreter/async_test.go:818
MethodOnCallStarted
(callID int64, function, overload string, args []ref.Val)
cel/program_async_test.go:1129
MethodOperand
()
common/ast/navigable.go:537
MethodOptExpr
(i int)
parser/gen/cel_parser.go:4043
MethodOptExpr
(i int)
parser/gen/cel_parser.go:4114
MethodOptExpr
(i int)
parser/gen/cel_parser.go:4791
MethodOptExpr
(i int)
parser/gen/cel_parser.go:4886
MethodOptExpr
(i int)
repl/parser/commands_parser.go:8001
MethodOptExpr
(i int)
repl/parser/commands_parser.go:8072
MethodOptExpr
(i int)
repl/parser/commands_parser.go:8749
MethodOptExpr
(i int)
repl/parser/commands_parser.go:8844
MethodOptField
(i int)
parser/gen/cel_parser.go:4284
MethodOptField
(i int)
parser/gen/cel_parser.go:4379
MethodOptField
(i int)
repl/parser/commands_parser.go:8242
MethodOptField
(i int)
repl/parser/commands_parser.go:8337
MethodOptimize
(ctx *cel.OptimizerContext, a *ast.AST)
policy/composer_test.go:128
← previousnext →6,301–6,400 of 9,178, ranked by callers