Documentation ¶
Index ¶
- type Machine
- type MediumAttachment
- type VirtualBox
- func (vb *VirtualBox) FindMachine(nameOrID string) (*Machine, error)
- func (vb *VirtualBox) GetMachines() ([]*Machine, error)
- func (vb *VirtualBox) Logon() error
- func (vb *VirtualBox) PopulateMachineInfo(machine *Machine) error
- func (vb *VirtualBox) UseBasicAuth(flag bool) *VirtualBox
- func (vb *VirtualBox) WithTimeout(dur time.Duration) *VirtualBox
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) GetMediumAttachments ¶
func (m *Machine) GetMediumAttachments() []*MediumAttachment
GetMediumAttachments returns the attached media to 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) 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
Click to show internal directories.
Click to hide internal directories.