Documentation
¶
Index ¶
- Constants
- Variables
- func BytesToStringMB(argMem uint64) string
- func NewVMM(vmmType VmmType, monitors map[string]types.MonitorConfig) (vmm types.VMM, err error)
- type Firecracker
- type FirecrackerBootSource
- type FirecrackerConfig
- type FirecrackerDrive
- type FirecrackerMachine
- type FirecrackerNet
- type FirecrackerVSockDev
- type HVT
- type Hedge
- type Qemu
- type SPT
- type VMMFactory
- type VmmType
Constants ¶
View Source
const ( FirecrackerVmm VmmType = "firecracker" FirecrackerBinary string = "firecracker" FCJsonFilename string = "fc.json" )
View Source
const ( HvtVmm VmmType = "hvt" HvtBinary string = "solo5-hvt" )
View Source
const ( QemuVmm VmmType = "qemu" QemuBinary string = "qemu-system-" )
View Source
const ( SptVmm VmmType = "spt" SptBinary string = "solo5-spt" )
View Source
const DefaultMemory uint64 = 256 // The default memory for every hypervisor: 256 MB
Variables ¶
View Source
var ErrVMMNotInstalled = errors.New("vmm not found")
Functions ¶
func BytesToStringMB ¶
Types ¶
type Firecracker ¶
type Firecracker struct {
// contains filtered or unexported fields
}
func (*Firecracker) Ok ¶
func (fc *Firecracker) Ok() error
func (*Firecracker) Path ¶
func (fc *Firecracker) Path() string
func (*Firecracker) Stop ¶
func (fc *Firecracker) Stop(pid int) error
func (*Firecracker) SupportsSharedfs ¶
func (fc *Firecracker) SupportsSharedfs(_ string) bool
SupportsSharedfs returns a bool value depending on the monitor support for shared-fs
func (*Firecracker) UsesKVM ¶
func (fc *Firecracker) UsesKVM() bool
type FirecrackerBootSource ¶
type FirecrackerConfig ¶
type FirecrackerConfig struct {
Source FirecrackerBootSource `json:"boot-source"`
Machine FirecrackerMachine `json:"machine-config"`
Drives []FirecrackerDrive `json:"drives"`
NetIfs []FirecrackerNet `json:"network-interfaces"`
VSock FirecrackerVSockDev `json:"vsock,omitempty"`
}
type FirecrackerDrive ¶
type FirecrackerMachine ¶
type FirecrackerNet ¶
type FirecrackerVSockDev ¶
type HVT ¶
type HVT struct {
// contains filtered or unexported fields
}
func (*HVT) SupportsSharedfs ¶
SupportsSharedfs returns a bool value depending on the monitor support for shared-fs
type Hedge ¶
type Hedge struct{}
func (*Hedge) SupportsSharedfs ¶
SupportsSharedfs returns a bool value depending on the monitor support for shared-fs
type Qemu ¶
type Qemu struct {
// contains filtered or unexported fields
}
func (*Qemu) SupportsSharedfs ¶
SupportsSharedfs returns a bool value depending on the monitor support for shared-fs
type SPT ¶
type SPT struct {
// contains filtered or unexported fields
}
func (*SPT) SupportsSharedfs ¶
SupportsSharedfs returns a bool value depending on the monitor support for shared-fs
type VMMFactory ¶
type VMMFactory struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.