Documentation
¶
Overview ¶
Package sandbox orchestrates create → proxy/harden → run → destroy.
Index ¶
- type CreateOptions
- type Manager
- func (m *Manager) Create(ctx context.Context, opt CreateOptions) (driver.Handle, error)
- func (m *Manager) Exec(ctx context.Context, nameOrID string, req driver.ExecRequest) (driver.ExecResult, error)
- func (m *Manager) List(ctx context.Context) ([]driver.Info, error)
- func (m *Manager) Remove(ctx context.Context, nameOrID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOptions ¶
type CreateOptions struct {
Spec driver.Spec
Policy policy.Document // optional; validated if Version != 0
}
CreateOptions are host-side inputs for a new sandbox.
type Manager ¶
type Manager struct {
Driver driver.ComputeDriver
Proxy proxy.EgressProxy
}
Manager owns sandbox lifecycle for one host.
func (*Manager) Create ¶
Create validates policy (if set), applies proxy policy, creates and starts the sandbox.
func (*Manager) Exec ¶
func (m *Manager) Exec(ctx context.Context, nameOrID string, req driver.ExecRequest) (driver.ExecResult, error)
Exec runs a command inside a named sandbox.
Click to show internal directories.
Click to hide internal directories.