Versions in this module Expand all Collapse all v0 v0.1.3 Mar 14, 2026 Changes in this version type Box + func (b *Box) ExecStream(command string, opts ExecOptions, cb ExecCallbacks) (ExecResult, error) + type ExecCallbacks struct + OnStderr func(string) + OnStdout func(string) v0.1.2 Mar 13, 2026 v0.1.1 Mar 12, 2026 Changes in this version type BoxOptions + Mounts []Mount + type Mount struct + GuestPath string + HostPath string + ReadOnly bool v0.1.0 Mar 4, 2026 Changes in this version + type Box struct + func (b *Box) Exec(command string, opts ExecOptions) (ExecResult, error) + func (b *Box) Free() + func (b *Box) Info() (BoxInfo, error) + func (b *Box) Start() error + func (b *Box) Stop() error + type BoxInfo struct + CreatedAt time.Time + ID string + Image string + Name string + State string + type BoxOptions struct + CPUs int + Env map[string]string + Image string + MacOSNetworkEnabled bool + MemoryMB int + NetworkMode string + NetworkPolicyMode string + PortForwards []PortForward + RootfsPath string + WorkingDir string + type ExecOptions struct + Args []string + Env map[string]string + TTY bool + TimeoutSec float64 + User string + WorkingDir string + type ExecResult struct + ExitCode int + Stderr []string + Stdout []string + type PortForward struct + GuestPort int + HostIP string + HostPort int + Protocol string + type Runtime struct + func NewRuntime(opts *RuntimeOptions) (*Runtime, error) + func (r *Runtime) CreateBox(name string, opts BoxOptions) (string, error) + func (r *Runtime) Free() + func (r *Runtime) GetBox(idOrName string) (*Box, string, error) + func (r *Runtime) ListBoxes() ([]BoxInfo, error) + func (r *Runtime) RemoveBox(idOrName string, force bool) error + type RuntimeOptions struct + HomeDir string + ImageRegistries []string