Documentation ¶
Index ¶
- type CloneConfig
- type ConnectConfig
- type Datastore
- type Driver
- func (d *Driver) FindDatastore(name string) (*Datastore, error)
- func (d *Driver) FindFolder(name string) (*Folder, error)
- func (d *Driver) FindHost(name string) (*Host, error)
- func (d *Driver) FindResourcePool(host string, name string) (*ResourcePool, error)
- func (d *Driver) FindVM(name string) (*VirtualMachine, error)
- func (d *Driver) NewDatastore(ref *types.ManagedObjectReference) *Datastore
- func (d *Driver) NewFolder(ref *types.ManagedObjectReference) *Folder
- func (d *Driver) NewHost(ref *types.ManagedObjectReference) *Host
- func (d *Driver) NewResourcePool(ref *types.ManagedObjectReference) *ResourcePool
- func (d *Driver) NewVM(ref *types.ManagedObjectReference) *VirtualMachine
- type Folder
- type HardwareConfig
- type Host
- type ResourcePool
- type VirtualMachine
- func (template *VirtualMachine) Clone(config *CloneConfig) (*VirtualMachine, error)
- func (vm *VirtualMachine) Configure(config *HardwareConfig) error
- func (vm *VirtualMachine) ConvertToTemplate() error
- func (vm *VirtualMachine) CreateSnapshot(name string) error
- func (vm *VirtualMachine) Destroy() error
- func (vm *VirtualMachine) Info(params ...string) (*mo.VirtualMachine, error)
- func (vm *VirtualMachine) PowerOff() error
- func (vm *VirtualMachine) PowerOn() error
- func (vm *VirtualMachine) StartShutdown() error
- func (vm *VirtualMachine) WaitForIP() (string, error)
- func (vm *VirtualMachine) WaitForShutdown(timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloneConfig ¶
type ConnectConfig ¶
type Driver ¶
type Driver struct {
// contains filtered or unexported fields
}
func NewDriver ¶
func NewDriver(config *ConnectConfig) (*Driver, error)
func (*Driver) FindResourcePool ¶
func (d *Driver) FindResourcePool(host string, name string) (*ResourcePool, error)
func (*Driver) NewDatastore ¶
func (d *Driver) NewDatastore(ref *types.ManagedObjectReference) *Datastore
func (*Driver) NewResourcePool ¶
func (d *Driver) NewResourcePool(ref *types.ManagedObjectReference) *ResourcePool
func (*Driver) NewVM ¶
func (d *Driver) NewVM(ref *types.ManagedObjectReference) *VirtualMachine
type HardwareConfig ¶
type ResourcePool ¶
type ResourcePool struct {
// contains filtered or unexported fields
}
func (*ResourcePool) Info ¶
func (p *ResourcePool) Info(params ...string) (*mo.ResourcePool, error)
func (*ResourcePool) Path ¶
func (p *ResourcePool) Path() (string, error)
type VirtualMachine ¶
type VirtualMachine struct {
// contains filtered or unexported fields
}
func (*VirtualMachine) Clone ¶
func (template *VirtualMachine) Clone(config *CloneConfig) (*VirtualMachine, error)
func (*VirtualMachine) Configure ¶
func (vm *VirtualMachine) Configure(config *HardwareConfig) error
func (*VirtualMachine) ConvertToTemplate ¶
func (vm *VirtualMachine) ConvertToTemplate() error
func (*VirtualMachine) CreateSnapshot ¶
func (vm *VirtualMachine) CreateSnapshot(name string) error
func (*VirtualMachine) Destroy ¶
func (vm *VirtualMachine) Destroy() error
func (*VirtualMachine) Info ¶
func (vm *VirtualMachine) Info(params ...string) (*mo.VirtualMachine, error)
func (*VirtualMachine) PowerOff ¶
func (vm *VirtualMachine) PowerOff() error
func (*VirtualMachine) PowerOn ¶
func (vm *VirtualMachine) PowerOn() error
func (*VirtualMachine) StartShutdown ¶
func (vm *VirtualMachine) StartShutdown() error
func (*VirtualMachine) WaitForIP ¶
func (vm *VirtualMachine) WaitForIP() (string, error)
func (*VirtualMachine) WaitForShutdown ¶
func (vm *VirtualMachine) WaitForShutdown(timeout time.Duration) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.