driver

package
v1.3.2-0...-98b2f99 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2017 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloneConfig

type CloneConfig struct {
	Name         string
	Folder       string
	Host         string
	ResourcePool string
	Datastore    string
	LinkedClone  bool
}

type ConnectConfig

type ConnectConfig struct {
	VCenterServer      string
	Username           string
	Password           string
	InsecureConnection bool
	Datacenter         string
}

type Datastore

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

func (*Datastore) Info

func (ds *Datastore) Info(params ...string) (*mo.Datastore, error)

type Driver

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

func NewDriver

func NewDriver(config *ConnectConfig) (*Driver, error)

func (*Driver) FindDatastore

func (d *Driver) FindDatastore(name string) (*Datastore, error)

func (*Driver) FindFolder

func (d *Driver) FindFolder(name string) (*Folder, error)

func (*Driver) FindHost

func (d *Driver) FindHost(name string) (*Host, error)

func (*Driver) FindResourcePool

func (d *Driver) FindResourcePool(host string, name string) (*ResourcePool, error)

func (*Driver) FindVM

func (d *Driver) FindVM(name string) (*VirtualMachine, error)

func (*Driver) NewDatastore

func (d *Driver) NewDatastore(ref *types.ManagedObjectReference) *Datastore

func (*Driver) NewFolder

func (d *Driver) NewFolder(ref *types.ManagedObjectReference) *Folder

func (*Driver) NewHost

func (d *Driver) NewHost(ref *types.ManagedObjectReference) *Host

func (*Driver) NewResourcePool

func (d *Driver) NewResourcePool(ref *types.ManagedObjectReference) *ResourcePool

func (*Driver) NewVM

type Folder

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

func (*Folder) Info

func (f *Folder) Info(params ...string) (*mo.Folder, error)

func (*Folder) Path

func (f *Folder) Path() (string, error)

type HardwareConfig

type HardwareConfig struct {
	CPUs           int32
	CPUReservation int64
	CPULimit       int64
	RAM            int64
	RAMReservation int64
	RAMReserveAll  bool
	DiskSize       int64
}

type Host

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

func (*Host) Info

func (h *Host) Info(params ...string) (*mo.HostSystem, error)

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

Jump to

Keyboard shortcuts

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