operations

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2021 License: Apache-2.0 Imports: 23 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanupVM added in v0.5.0

func CleanupVM(vm *api.VM) error

CleanupVM removes the resources of the given VM

func DeleteVM added in v0.5.0

func DeleteVM(c *client.Client, vm *api.VM) error

DeleteVM removes the specified VM from the Client and performs a cleanup

func FindOrImportImage

func FindOrImportImage(c *client.Client, ociRef meta.OCIImageRef) (*api.Image, error)

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

func FindOrImportKernel(c *client.Client, ociRef meta.OCIImageRef) (*api.Kernel, error)

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)

func StartVM

func StartVM(vm *api.VM, debug bool) error

func StopVM

func StopVM(vm *api.VM, kill, silent bool) error

StopVM removes networking of the given VM and stops or kills it

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL