actions

package
v0.0.0-...-db5c43f Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2016 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Action

type Action interface {
	Search(s ...string) int
	Print(p ...string)
}

Action Interface methods for all actions

type ListDSs

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

ListDSs is class to list DataStores

func NewListDSs

func NewListDSs(u *url.URL, insecure bool, dc string, ctx context.Context) *ListDSs

NewListDSs is the constructor

func (*ListDSs) Print

func (listdss *ListDSs) Print(p ...string)

Print dumps a table with the results

func (*ListDSs) Search

func (listdss *ListDSs) Search(s ...string) int

Search gets DataStore and DataStoreCluster references from VCenter. It accepts one parameter to filter the search. It will return the number of references found.

type ListNets

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

ListNets represents a class to list network resources

func NewListNets

func NewListNets(u *url.URL, insecure bool, dc string, ctx context.Context) *ListNets

NewListNets is the constructor

func (*ListNets) Print

func (listnets *ListNets) Print(p ...string)

Print dumps a table with the results

func (*ListNets) Search

func (listnets *ListNets) Search(s ...string) int

Search gets network resources references from VCenter. It accepts one parameter to filter the search. It will return the number of references found.

type ListVMs

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

ListVMs represents a class to list information about all vms and templates found in the datacenter

func NewListVMs

func NewListVMs(u *url.URL, insecure bool, dc string, ctx context.Context) *ListVMs

NewListVMs is the constructor

func (*ListVMs) Print

func (listvms *ListVMs) Print(p ...string)

Print dumps a table with the results

func (*ListVMs) Search

func (listvms *ListVMs) Search(s ...string) int

Search gets vm references from vcenter. It accepts parameters to filter the search. It will return the number of references found.

type ShowVM

type ShowVM struct {
	*ListVMs
	// contains filtered or unexported fields
}

ShowVM represents a class to show VM properties

func NewShowVM

func NewShowVM(u *url.URL, insecure bool, dc string, ctx context.Context) *ShowVM

NewShowVM is the constructor

func (*ShowVM) Print

func (showvm *ShowVM) Print(p ...string)

Print dumps a table with the results

type VCInfo

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

VCInfo represents a class to gather basic info from Vmware Vcenter

func NewVCInfo

func NewVCInfo(u *url.URL, insecure bool, dc string, ctx context.Context) *VCInfo

NewVCInfo constructor

func (*VCInfo) Print

func (vc *VCInfo) Print(p ...string)

Print dumps basic VCenter info and the list of datacenters

func (*VCInfo) Search

func (vc *VCInfo) Search(s ...string) int

Search gets information from VCenter: available clusters. The parameter accepted represents the base path to perform the search. It will return the number of references found.

Jump to

Keyboard shortcuts

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