firecracker

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Overview

Package firecracker provides Firecracker-based VM backend.

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(_ context.Context, _ string) error

func (*VMM) Cleanup

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

func (*VMM) Create

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

func (*VMM) Exec

func (v *VMM) Exec(_ context.Context, _ string, _ []string, _ []string, _ bool) error

func (*VMM) Kill

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

func (*VMM) Logs

func (v *VMM) Logs(_ context.Context, _ 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(_ context.Context, vmID string) (dokivm.VMState, error)

func (*VMM) Stats

func (v *VMM) Stats(_ context.Context, _ 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