MCPcopy Create free account
hub / github.com/cel-expr/cel-go / Activation

Interface Activation

interpreter/activation.go:27–35  ·  view source on GitHub ↗

Activation used to resolve identifiers by name and references by id. An Activation is the primary mechanism by which a caller supplies input into a CEL program.

Source from the content-addressed store, hash-verified

25//
26// An Activation is the primary mechanism by which a caller supplies input into a CEL program.
27type Activation interface {
28 // ResolveName returns a value from the activation by qualified name, or false if the name
29 // could not be found.
30 ResolveName(name string) (any, bool)
31
32 // Parent returns the parent of the current activation, may be nil.
33 // If non-nil, the parent will be searched during resolve calls.
34 Parent() Activation
35}
36
37// EmptyActivation returns a variable-free activation.
38func EmptyActivation() Activation {

Callers 14

TestActivation_ResolveFunction · 0.95
ResolveNameMethod · 0.65
ResolveNameMethod · 0.65
ResolveNameMethod · 0.65
ResolveMethod · 0.65
TestFrameResolveNameFunction · 0.65
reduceHeightFunction · 0.65
AsPartialActivationFunction · 0.65
TestFolderActivationFunction · 0.65
findFrameFunction · 0.65

Implementers 7

emptyActivationinterpreter/activation.go
mapActivationinterpreter/activation.go
hierarchicalActivationinterpreter/activation.go
parentActivationWrapperinterpreter/interpreter_test.go
folderinterpreter/interpretable.go
ExecutionFrameinterpreter/frame.go
inputActivationinterpreter/frame.go

Calls

no outgoing calls

Tested by

no test coverage detected