Documentation
¶
Index ¶
Constants ¶
View Source
const (
// FCSockDir where vm firecracker sockets are kept
FCSockDir = "/var/run/firecracker"
)
Variables ¶
This section is empty.
Functions ¶
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
Click to show internal directories.
Click to hide internal directories.