microvm

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package microvm implements the microVM container runner. Uses Firecracker, crosvm, or Cloud Hypervisor for hardware-level isolation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func New

func New(root string) *Runner

func (*Runner) Capabilities

func (r *Runner) Capabilities() rt.RunnerCapabilities

func (*Runner) Cleanup

func (r *Runner) Cleanup(_ context.Context, id string) error

func (*Runner) Create

func (r *Runner) Create(ctx context.Context, cfg *rt.Config) (string, error)

func (*Runner) Detect

func (r *Runner) Detect() bool

func (*Runner) Exec

func (r *Runner) Exec(_ context.Context, id string, cfg *rt.ExecConfig) (int, error)

func (*Runner) Inspect

func (r *Runner) Inspect(_ context.Context, id string) (*rt.ContainerJSON, error)

func (*Runner) Kill

func (r *Runner) Kill(_ context.Context, id string, sig syscall.Signal) error

func (*Runner) Name

func (r *Runner) Name() rt.ExecutionMode

func (*Runner) Pause

func (r *Runner) Pause(_ context.Context, id string) error

func (*Runner) Resume

func (r *Runner) Resume(_ context.Context, id string) error

func (*Runner) Start

func (r *Runner) Start(ctx context.Context, id string) (int, error)

func (*Runner) Stats

func (r *Runner) Stats(_ context.Context, id string) (*rt.ContainerStats, error)

func (*Runner) Stop

func (r *Runner) Stop(_ context.Context, id string, timeout time.Duration) error

func (*Runner) Wait

func (r *Runner) Wait(ctx context.Context, id string) (int, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL