firecracker

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: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAvailable

func IsAvailable() bool

IsAvailable checks if Firecracker is available.

Types

type VMM

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

VMM implements the VMM interface using AWS Firecracker.

func New

func New(cfg *dokivm.VMMConfig) (*VMM, error)

func (*VMM) Attach

func (v *VMM) Attach(ctx context.Context, vmID string) error

func (*VMM) Cleanup

func (v *VMM) Cleanup(ctx context.Context, vmID string) error

func (*VMM) Create

func (v *VMM) Create(ctx context.Context, vmCfg *dokivm.VMConfig) (*dokivm.MicroVM, error)

func (*VMM) Exec

func (v *VMM) Exec(ctx context.Context, vmID string, cmd []string, env []string, tty bool) error

func (*VMM) Kill

func (v *VMM) Kill(ctx context.Context, vmID string) error

func (*VMM) Logs

func (v *VMM) Logs(ctx context.Context, vmID string) (io.Reader, error)

func (*VMM) Name

func (v *VMM) Name() string

func (*VMM) Start

func (v *VMM) Start(ctx context.Context, vmID string) error

func (*VMM) State

func (v *VMM) State(ctx context.Context, vmID string) (dokivm.VMState, error)

func (*VMM) Stats

func (v *VMM) Stats(ctx context.Context, vmID string) (*dokivm.VMStats, error)

func (*VMM) Stop

func (v *VMM) Stop(ctx context.Context, vmID string, timeout time.Duration) error

Jump to

Keyboard shortcuts

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