Versions in this module Expand all Collapse all v0 v0.99.12 Sep 4, 2026 Changes in this version + func BindSpec(source, target string, readOnly bool) string + func BoxName(id string) string + func LookPath(binary string) error + func PrepareBindMount(_ context.Context, mnt *types.Mount) error + func ResolveBinary(path string) string + func ValidateBindMount(allowed bool, mnt types.Mount) error + type BoxOptions struct + Binds []string + CPUs string + Command []string + Entrypoint []string + Env []string + Image string + Memory string + Name string + Network string + RequireLimits bool + SecurityProfile string + Workdir string + type Client struct + func NewClient(cfg Config) *Client + func (c *Client) Binary() string + func (c *Client) BoxJob(ctx context.Context, opts BoxOptions) (stdout, stderr string, exitCode int, err error) + func (c *Client) Doctor(ctx context.Context) error + func (c *Client) Pull(ctx context.Context, image string) error + func (c *Client) Stop(ctx context.Context, name string) error + type CommandRunner func(ctx context.Context, name string, args ...string) *exec.Cmd + type Config struct + Binary string + BindAllowed bool + RequireLimits bool + SecurityProfile string + type Option func(*Runtime) + func WithClient(client *Client) Option + func WithConfig(cfg Config) Option + type Runtime struct + func NewRuntime(opts ...Option) (*Runtime, error) + func (*Runtime) Close() error + func (r *Runtime) HealthCheck(ctx context.Context) error + func (r *Runtime) Run(ctx context.Context, t *types.Task) error + func (r *Runtime) Stop(_ context.Context, t *types.Task) error