virtualboxclient

package
v0.0.0-...-a58d3e8 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2019 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachDisk

func AttachDisk(vmNameOrId, vmdkPath string, controllerPort int, storageDriver types.StorageDriver) error

func ConfigureVmNetwork

func ConfigureVmNetwork(vmName, adapterName string, adapterType config.VirtualboxAdapterType) error

func CreateVm

func CreateVm(vmName, baseFolder string, memoryMb int, adapterName string, adapterType config.VirtualboxAdapterType, storageDriver types.StorageDriver) error

func CreateVmNatless

func CreateVmNatless(vmName, baseFolder, adapterName string, adapterType config.VirtualboxAdapterType, storageDriver types.StorageDriver) error

func DestroyVm

func DestroyVm(vmNameOrId string) error

func DetachDisk

func DetachDisk(vmNameOrId string, controllerPort int, storageDriver types.StorageDriver) error

func PowerOffVm

func PowerOffVm(vmNameOrId string) error

func PowerOnVm

func PowerOnVm(vmNameOrId string) error

func RefreshDiskUUID

func RefreshDiskUUID(diskPath string) error

Types

type VboxDevice

type VboxDevice struct {
	DiskFile      string
	ControllerKey string
}

type VboxVm

type VboxVm struct {
	Name    string
	UUID    string
	MACAddr string
	Devices []*VboxDevice
	Running bool
}

func GetVm

func GetVm(vmNameOrId string) (*VboxVm, error)

func Vms

func Vms() ([]*VboxVm, error)

func (*VboxVm) String

func (vm *VboxVm) String() string

Jump to

Keyboard shortcuts

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