Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Core ¶
type Core struct { Name string `json:"name"` CPUs uint `json:"cpus"` Memory uint `json:"memory"` Ports PortMap `json:"ports"` }
Core is all the values that always apply to VMs in any situation.
type Create ¶
Create is for creating new VMs. Storage definitons are created as necessary and turned into image definitions (see Updated type)
type Image ¶
type Image struct { Path string `json:"path"` CDROM bool `json:"cdrom"` Volume *string `json:"volume"` }
Image is an image that is already created.
type Storage ¶
type Storage struct { Volume *string `json:"volume"` Image string `json:"image"` ImageSize *uint `json:"image_size"` CDROM bool `json:"cdrom"` }
Storage is for creating and referencing new storage. Existing storage references, with the exception of adding cdroms should consult with the Image struct instead.
Click to show internal directories.
Click to hide internal directories.