vbox

package
v0.0.0-...-caea6a0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2019 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VBoxCmdContext

func VBoxCmdContext(ctx context.Context, cmd string, cmds ...string) ([]byte, error)

Types

type Library

type Library interface {
	GetCopy(context.Context, store.InstanceConfig, ...VMOpt) (VM, error)
	IsAvailable(string) bool
}

func NewLibrary

func NewLibrary(pwd string) Library

type VBoxErr

type VBoxErr struct {
	Action string
	Output []byte
}

func (*VBoxErr) Error

func (err *VBoxErr) Error() string

type VM

type VM interface {
	virtual.Instance
	Snapshot(string) error
	LinkedClone(context.Context, string, ...VMOpt) (VM, error)
}

func NewVMWithSum

func NewVMWithSum(path, image string, checksum string, vmOpts ...VMOpt) VM

func VmExists

func VmExists(image string, checksum string) (VM, bool)

type VMOpt

type VMOpt func(context.Context, *vm) error

func SetBridge

func SetBridge(nic string) VMOpt

func SetCPU

func SetCPU(cores uint) VMOpt

func SetLocalRDP

func SetLocalRDP(ip string, port uint) VMOpt

func SetRAM

func SetRAM(mb uint) VMOpt

Jump to

Keyboard shortcuts

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