Documentation
¶
Overview ¶
Package models runs external Starlark models over an already connected device.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidName = errors.New("invalid model name") ErrNotFound = errors.New("model not found") )
Functions ¶
This section is empty.
Types ¶
type Executor ¶
Executor is the command-execution subset of device.Device. The caller owns the connection; concurrent calls must not share a device unless it supports it.
type Option ¶
type Option func(*Runner)
func WithCommandOptions ¶
WithCommandOptions supplies defaults to every command executed by a model.
func WithMaxExecutionSteps ¶
WithMaxExecutionSteps sets the per-collection budget, including imports.
type Runner ¶
type Runner struct {
// contains filtered or unexported fields
}
Runner is safe for concurrent use. Source files are reloaded on every call.