client

package
v0.1.5-rc2 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Machine

type Machine struct {
	// contains filtered or unexported fields
}

Machine represents an installed virtual machine in vbox.

func NewMachine

func NewMachine(vb *VirtualBox, id string) *Machine

NewMachine returns a pointer to a Machine value

func (*Machine) GetID

func (m *Machine) GetID() string

GetID returns the ID last populated for this machine

func (*Machine) GetMediumAttachments

func (m *Machine) GetMediumAttachments() []*MediumAttachment

GetMediumAttachments returns the attached media to machine

func (*Machine) GetName

func (m *Machine) GetName() string

GetName returns the Name last populated for this machine

type MediumAttachment

type MediumAttachment struct {
	Medium     string
	Controller string
	Port       int32
	Device     int32
	Type       string
}

MediumAttachment represents attached devices to machine

type VirtualBox

type VirtualBox struct {
	// contains filtered or unexported fields
}

VirtualBox Represents a virtualbox sesion

func NewVirtualBox

func NewVirtualBox(uname, pwd, url string) *VirtualBox

NewVirtualBox returns a reference to a VirtualBox value.

func (*VirtualBox) FindMachine

func (vb *VirtualBox) FindMachine(nameOrID string) (*Machine, error)

FindMachine finds a machine based on its name or machine id.

func (*VirtualBox) GetMachines

func (vb *VirtualBox) GetMachines() ([]*Machine, error)

GetMachines returns all registered machines for the virtualbox

func (*VirtualBox) Logon

func (vb *VirtualBox) Logon() error

Logon logs into the soap server.

func (*VirtualBox) PopulateMachineInfo

func (vb *VirtualBox) PopulateMachineInfo(machine *Machine) error

PopulateMachineInfo loads additional descriptive information for machine

func (*VirtualBox) UseBasicAuth

func (vb *VirtualBox) UseBasicAuth(flag bool) *VirtualBox

UseBasicAuth Sets the use of basic-auth as true or false

func (*VirtualBox) WithTimeout

func (vb *VirtualBox) WithTimeout(dur time.Duration) *VirtualBox

WithTimeout sets connection timeout

Jump to

Keyboard shortcuts

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