Versions in this module Expand all Collapse all v0 v0.2.1 Feb 2, 2026 Changes in this version + type MockRuntime struct + OnCreate func(ctx context.Context, config *runtime.SandboxConfig) (*types.Sandbox, error) + OnCreateSession func(ctx context.Context, sandboxID string, config *types.SessionConfig) (*types.Session, error) + OnDestroy func(ctx context.Context, sandboxID string) error + OnExec func(ctx context.Context, sandboxID string, req *types.ExecRequest) (*types.ExecResult, error) + OnSessionExec func(ctx context.Context, sessionID string, req *types.SessionExecRequest) (*types.ExecResult, error) + OnStart func(ctx context.Context, sandboxID string) error + OnStop func(ctx context.Context, sandboxID string) error + func New() *MockRuntime + func (m *MockRuntime) Create(ctx context.Context, config *runtime.SandboxConfig) (*types.Sandbox, error) + func (m *MockRuntime) CreateSession(ctx context.Context, sandboxID string, config *types.SessionConfig) (*types.Session, error) + func (m *MockRuntime) Destroy(ctx context.Context, sandboxID string) error + func (m *MockRuntime) DestroySession(ctx context.Context, sessionID string) error + func (m *MockRuntime) Exec(ctx context.Context, sandboxID string, req *types.ExecRequest) (*types.ExecResult, error) + func (m *MockRuntime) ExecStream(ctx context.Context, sandboxID string, req *types.ExecRequest, ...) error + func (m *MockRuntime) Get(ctx context.Context, sandboxID string) (*types.Sandbox, error) + func (m *MockRuntime) GetSession(ctx context.Context, sessionID string) (*types.Session, error) + func (m *MockRuntime) List(ctx context.Context) ([]*types.Sandbox, error) + func (m *MockRuntime) ListSessions(ctx context.Context, sandboxID string) ([]*types.Session, error) + func (m *MockRuntime) Name() string + func (m *MockRuntime) SessionExec(ctx context.Context, sessionID string, req *types.SessionExecRequest) (*types.ExecResult, error) + func (m *MockRuntime) SessionExecStream(ctx context.Context, sessionID string, req *types.SessionExecRequest, ...) error + func (m *MockRuntime) Start(ctx context.Context, sandboxID string) error + func (m *MockRuntime) Stop(ctx context.Context, sandboxID string) error