Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Evaluator ¶
type Evaluator struct {
// contains filtered or unexported fields
}
Evaluator is an abstraction layer for evaluating code on the Starlark VM
func New ¶
func New( handler slog.Handler, execUnit *script.ExecutableUnit, ) *Evaluator
New creates a new Evaluator object
func (*Evaluator) AddDataToContext ¶
func (be *Evaluator) AddDataToContext( ctx context.Context, d ...map[string]any, ) (context.Context, error)
AddDataToContext implements the data.Setter interface which stores and prepares runtime data which can be eventually passed to the Eval method.
Click to show internal directories.
Click to hide internal directories.