Documentation ¶
Index ¶
Constants ¶
View Source
const (
// FCSockDir where vm firecracker sockets are kept
FCSockDir = "/var/run/firecracker"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Boot ¶
type Boot struct { Kernel string `json:"kernel_image_path"` Initrd string `json:"initrd_path,omitempty"` Args string `json:"boot_args"` }
Boot config struct
type Config ¶
type Config struct { CPU uint8 `json:"vcpu_count"` Mem int64 `json:"mem_size_mib"` HTEnabled bool `json:"ht_enabled"` }
Config struct
type Drive ¶
type Drive struct { ID string `json:"drive_id"` Path string `json:"path_on_host"` RootDevice bool `json:"is_root_device"` ReadOnly bool `json:"is_read_only"` }
Drive struct
type Interface ¶
type Interface struct { ID string `json:"iface_id"` Tap string `json:"host_dev_name"` Mac string `json:"guest_mac,omitempty"` }
Interface nic struct
type Jailed ¶ added in v0.4.9
Jailed represents a jailed machine.
func JailedFromPath ¶ added in v0.4.9
JailedFromPath loads a jailed machine from given path. the root points to directory which has `config.json` from a previous Save() call
type Machine ¶
type Machine struct { ID string `json:"-"` Boot Boot `json:"boot-source"` Drives []Drive `json:"drives"` Interfaces []Interface `json:"network-interfaces"` Config Config `json:"machine-config"` }
Machine struct
type Module ¶ added in v0.4.9
type Module struct {
// contains filtered or unexported fields
}
Module implements the VMModule interface
func NewVMModule ¶
NewVMModule creates a new instance of vm manager
func (*Module) Exists ¶ added in v0.4.9
Exists checks if firecracker process running for this machine
Click to show internal directories.
Click to hide internal directories.