Documentation ¶
Index ¶
- func CleanupVM(vm *api.VM) error
- func DeleteVM(c *client.Client, vm *api.VM) error
- func FindOrImportImage(c *client.Client, ociRef meta.OCIImageRef) (*api.Image, error)
- func FindOrImportKernel(c *client.Client, ociRef meta.OCIImageRef) (*api.Kernel, error)
- func RemoveVMContainer(result *runtime.ContainerInspectResult)
- func StartVM(vm *api.VM, debug bool) error
- func StopVM(vm *api.VM, kill, silent bool) error
- type VMChannels
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteVM ¶ added in v0.5.0
DeleteVM removes the specified VM from the Client and performs a cleanup
func FindOrImportImage ¶
FindOrImportImage returns an image based on the source string. If the image already exists, it is returned. If the image doesn't exist, it is imported
func FindOrImportKernel ¶
FindOrImportKernel returns an kernel based on the source string. If the image already exists, it is returned. If the image doesn't exist, it is imported
func RemoveVMContainer ¶
func RemoveVMContainer(result *runtime.ContainerInspectResult)
Types ¶
type VMChannels ¶ added in v0.10.0
type VMChannels struct {
SpawnFinished chan error
}
VMChannels can be used to get signals for different stages of VM lifecycle
func StartVMNonBlocking ¶ added in v0.10.0
func StartVMNonBlocking(vm *api.VM, debug bool) (*VMChannels, error)
Click to show internal directories.
Click to hide internal directories.