vsphere

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: Apache-2.0 Imports: 8 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatacenterFromID

func DatacenterFromID(client *govmomi.Client, id string) (*object.Datacenter, error)

Types

type Client added in v0.15.0

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

func NewClient added in v0.15.0

func NewClient(vmomi *govmomi.Client, datacenter string) Client

func (Client) GetRootFolder added in v0.15.0

func (c Client) GetRootFolder(filter string) (*object.Folder, error)

type Deletable added in v0.16.0

type Deletable interface {
	Delete() error
	Name() string
	Type() string
}

type Folder

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

func NewFolder

func NewFolder(folder *object.Folder, name string) Folder

func (Folder) Delete

func (f Folder) Delete() error

func (Folder) Name

func (f Folder) Name() string

func (Folder) Type added in v0.16.0

func (f Folder) Type() string

type Folders

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

func NewFolders

func NewFolders(client client, logger logger) Folders

func (Folders) List

func (v Folders) List(filter string) ([]Deletable, error)

type Leftovers

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

func NewLeftovers

func NewLeftovers(logger logger, vCenterIP, vCenterUser, vCenterPassword, vCenterDC string) (Leftovers, error)

func (Leftovers) Delete

func (l Leftovers) Delete(filter string) error

func (Leftovers) List added in v0.16.0

func (l Leftovers) List(filter string)

type VirtualMachine added in v0.15.0

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

func NewVirtualMachine added in v0.15.0

func NewVirtualMachine(vm *object.VirtualMachine) VirtualMachine

func (VirtualMachine) Delete added in v0.15.0

func (v VirtualMachine) Delete() error

func (VirtualMachine) Name added in v0.15.0

func (v VirtualMachine) Name() string

func (VirtualMachine) Type added in v0.16.0

func (v VirtualMachine) Type() string

type VirtualMachines

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

func NewVirtualMachines

func NewVirtualMachines(client client, logger logger) VirtualMachines

func (VirtualMachines) List

func (v VirtualMachines) List(filter string) ([]Deletable, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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