Documentation ¶
Overview ¶
Package sandbox defines the Lua sandbox used to run user scripts
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrInvalidInput indicates a required field is invalid ErrInvalidInput = errors.New("invalid input") // ErrInvalidWrappedValue indicates the wrapped value did not expand to a table ErrInvalidWrappedValue = errors.New("wrapped value must map to a lua table") // ErrMissingInput indicates a required field is missing ErrMissingInput = errors.New("required input missing") // ErrNotImplemented returned when method has not been implemented yet ErrNotImplemented = errors.New("not implemented") // ErrScriptFailed when the script fails to run ErrScriptFailed = errors.New("failure in user script") )
Functions ¶
This section is empty.
Types ¶
type Opt ¶
type Opt func(*Sandbox)
Opt function to process options on sandbox
func WithContext ¶
WithContext defines the context for a sandbox
func WithRegClient ¶
WithRegClient specifies a regclient interface
func WithThrottle ¶ added in v0.5.0
WithThrottle is used to limit various actions
Click to show internal directories.
Click to hide internal directories.