Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildConfiguration ¶
type BuildConfiguration struct { KernelImage string KernelCmdLine string Metadata string CopyFiles []string ID string `json:"-"` // ID is automatically generated Name string `json:"name"` // Source can either be a Docker image, a tar file, a folder, or in the future a file or partition containing an ext4 filesystem Source string `json:"source"` Resources Resources `json:"resources"` }
BuildConfiguration represents parameters for building a VM image
type CPUResources ¶
type DriveResources ¶
type MemoryResources ¶
type MemoryResources struct {
RAM uint32 `json:"ram"` // RAMMB, Size or MBSize? TODO: Make this a string and support stuff like 128 M(B), or 8 G(B)
}
type NetworkResources ¶
type NetworkResources struct { // TAP is a slice of tap adapters to create and connect to the VM TAP []TAPAdapter `json:"tap"` // Vsock Vsock []Vsock `json:"vsock"` }
type Resources ¶
type Resources struct { CPU CPUResources `json:"cpu"` Memory MemoryResources `json:"memory"` Drives DriveResources `json:"drives"` }
type TAPAdapter ¶
type TAPAdapter struct { // Name of the tap adapter on the host Name string `json:"name"` // MAC is the MAC address of the tap interface inside of the VM MAC net.HardwareAddr `json:"mac"` // HostBridge specifies which bridge to connect the tap adapter to HostBridge string `json:"hostBridge"` }
Click to show internal directories.
Click to hide internal directories.