Documentation
¶
Overview ¶
Creates sandboxes according to the configuration.
Package sandbox provides a registry of sandboxes for code execution.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrBusy = errors.New("busy")
View Source
var ErrEmptyRequest = errors.New("empty request")
View Source
var ErrUnknownCommand = errors.New("unknown command")
View Source
var ErrUnknownSandbox = errors.New("unknown sandbox")
Functions ¶
func ApplyConfig ¶
ApplyConfig fills engine registry according to the configuration.
Types ¶
type Semaphore ¶
type Semaphore struct {
// contains filtered or unexported fields
}
A Semaphore manages a limited number of tokens that can be acquired or released.
func NewSemaphore ¶
NewSemaphore creates a new semaphore of the specified size.
Click to show internal directories.
Click to hide internal directories.