esxi

package
v2.3.20181123+incompat... Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CLOUD_PROVIDER_VMWARE = models.CLOUD_PROVIDER_VMWARE
)

Variables

View Source
var DATACENTER_PROPS = []string{"name", "parent", "datastore"}
View Source
var DATASTORE_PROPS = []string{"name", "parent"}
View Source
var HOST_SYSTEM_PROPS = []string{"name", "parent", "summary", "config", "hardware", "vm"}
View Source
var VIRTUAL_MACHINE_PROPS = []string{"name", "parent", "runtime", "summary"}

Functions

This section is empty.

Types

type SDatacenter

type SDatacenter struct {
	SManagedObject

	Name string
	// contains filtered or unexported fields
}

func (*SDatacenter) GetIHosts

func (dc *SDatacenter) GetIHosts() ([]cloudprovider.ICloudHost, error)

func (*SDatacenter) GetIStorages

func (dc *SDatacenter) GetIStorages() ([]cloudprovider.ICloudStorage, error)

type SDatastore

type SDatastore struct {
	SManagedObject
}

func NewDatastore

func NewDatastore(manager *SESXiClient, ds *mo.Datastore, dc *SDatacenter) *SDatastore

func (*SDatastore) CreateIDisk

func (self *SDatastore) CreateIDisk(name string, sizeGb int, desc string) (cloudprovider.ICloudDisk, error)

func (*SDatastore) GetCapacityMB

func (self *SDatastore) GetCapacityMB() int

func (*SDatastore) GetEnabled

func (self *SDatastore) GetEnabled() bool

func (*SDatastore) GetGlobalId

func (self *SDatastore) GetGlobalId() string

func (*SDatastore) GetIDisk

func (self *SDatastore) GetIDisk(idStr string) (cloudprovider.ICloudDisk, error)

func (*SDatastore) GetIDisks

func (self *SDatastore) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SDatastore) GetIStoragecache

func (self *SDatastore) GetIStoragecache() cloudprovider.ICloudStoragecache

func (*SDatastore) GetIZone

func (self *SDatastore) GetIZone() cloudprovider.ICloudZone

func (*SDatastore) GetManagerId

func (self *SDatastore) GetManagerId() string

func (*SDatastore) GetMediumType

func (self *SDatastore) GetMediumType() string

func (*SDatastore) GetMetadata

func (self *SDatastore) GetMetadata() *jsonutils.JSONDict

func (*SDatastore) GetStatus

func (self *SDatastore) GetStatus() string

func (*SDatastore) GetStorageConf

func (self *SDatastore) GetStorageConf() jsonutils.JSONObject

func (*SDatastore) GetStorageType

func (self *SDatastore) GetStorageType() string

func (*SDatastore) IsEmulated

func (self *SDatastore) IsEmulated() bool

func (*SDatastore) Refresh

func (self *SDatastore) Refresh() error

type SESXiClient

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

func NewESXiClient

func NewESXiClient(providerId string, providerName string, host string, port int, account string, passwd string) (*SESXiClient, error)

func (*SESXiClient) About

func (cli *SESXiClient) About() jsonutils.JSONObject

func (*SESXiClient) FindDatacenterById

func (cli *SESXiClient) FindDatacenterById(dcId string) (*SDatacenter, error)

func (*SESXiClient) FindHostByIp

func (cli *SESXiClient) FindHostByIp(hostIp string) (*SHost, error)

func (*SESXiClient) GetDatacenters

func (cli *SESXiClient) GetDatacenters() ([]*SDatacenter, error)

func (*SESXiClient) GetSubAccounts

func (cli *SESXiClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)

func (*SESXiClient) GetUUID

func (cli *SESXiClient) GetUUID() string

type SHost

type SHost struct {
	SManagedObject
	// contains filtered or unexported fields
}

func NewHost

func NewHost(manager *SESXiClient, host *mo.HostSystem, dc *SDatacenter) *SHost

func (*SHost) CreateVM

func (self *SHost) CreateVM(name string, imgId string, sysDiskSize int, cpu int, memMB int, vswitchId string, ipAddr string, desc string,
	passwd string, storageType string, diskSizes []int, publicKey string, secGrpId string, userData string) (cloudprovider.ICloudVM, error)

func (*SHost) GetAccessIp

func (self *SHost) GetAccessIp() string

func (*SHost) GetAccessMac

func (self *SHost) GetAccessMac() string

func (*SHost) GetCpuCount

func (self *SHost) GetCpuCount() int8

func (*SHost) GetCpuDesc

func (self *SHost) GetCpuDesc() string

func (*SHost) GetCpuMhz

func (self *SHost) GetCpuMhz() int

func (*SHost) GetEnabled

func (self *SHost) GetEnabled() bool

func (*SHost) GetGlobalId

func (self *SHost) GetGlobalId() string

func (*SHost) GetHostStatus

func (self *SHost) GetHostStatus() string

func (*SHost) GetHostType

func (self *SHost) GetHostType() string

func (*SHost) GetIStorageById

func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SHost) GetIStorages

func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SHost) GetIVMById

func (self *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)

func (*SHost) GetIVMs

func (self *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)

func (*SHost) GetIWires

func (self *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)

func (*SHost) GetManagerId

func (self *SHost) GetManagerId() string

func (*SHost) GetMemSizeMB

func (self *SHost) GetMemSizeMB() int

func (*SHost) GetMetadata

func (self *SHost) GetMetadata() *jsonutils.JSONDict

func (*SHost) GetNodeCount

func (self *SHost) GetNodeCount() int8

func (*SHost) GetSN

func (self *SHost) GetSN() string

func (*SHost) GetStatus

func (self *SHost) GetStatus() string

func (*SHost) GetStorageSizeMB

func (self *SHost) GetStorageSizeMB() int

func (*SHost) GetStorageType

func (self *SHost) GetStorageType() string

func (*SHost) GetSysInfo

func (self *SHost) GetSysInfo() jsonutils.JSONObject

func (*SHost) IsEmulated

func (self *SHost) IsEmulated() bool

func (*SHost) Refresh

func (self *SHost) Refresh() error

type SHostNicInfo

type SHostNicInfo struct {
	Dev     string
	Driver  string
	Mac     string
	Index   int
	LinkUp  bool
	IpAddr  string
	Mtu     int
	NicType string
}

type SHostStorageAdapterInfo

type SHostStorageAdapterInfo struct {
	Device    string
	Model     string
	Driver    string
	Pci       string
	Drivers   []SHostStorageDriverInfo
	Enclosure int
}

type SHostStorageDriverInfo

type SHostStorageDriverInfo struct {
	CN       string
	Name     string
	Model    string
	Vendor   string
	Revision string
	Status   string
	SSD      bool
	Dev      string
	Size     int
}

type SHostStorageEnclosureInfo

type SHostStorageEnclosureInfo struct {
	CN       string
	Name     string
	Model    string
	Vendor   string
	Revision string
	Status   string
}

type SManagedObject

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

func (*SManagedObject) GetDatacenter

func (self *SManagedObject) GetDatacenter() (*SDatacenter, error)

func (*SManagedObject) GetDatacenterPath

func (self *SManagedObject) GetDatacenterPath() []string

func (*SManagedObject) GetId

func (self *SManagedObject) GetId() string

func (*SManagedObject) GetName

func (self *SManagedObject) GetName() string

func (*SManagedObject) GetPath

func (self *SManagedObject) GetPath() []string

func (*SManagedObject) GetType

func (self *SManagedObject) GetType() string

type SSysInfo

type SSysInfo struct {
	Manufacture  string
	Model        string
	SerialNumber string
}

type SVirtualMachine

type SVirtualMachine struct {
	SManagedObject
	// contains filtered or unexported fields
}

func NewVirtualMachine

func NewVirtualMachine(manager *SESXiClient, vm *mo.VirtualMachine, dc *SDatacenter, host *SHost) *SVirtualMachine

func (*SVirtualMachine) AttachDisk

func (self *SVirtualMachine) AttachDisk(diskId string) error

func (*SVirtualMachine) ChangeConfig

func (dc *SVirtualMachine) ChangeConfig(instanceId string, ncpu int, vmem int) error

func (*SVirtualMachine) DeleteVM

func (self *SVirtualMachine) DeleteVM() error

func (*SVirtualMachine) DeployVM

func (self *SVirtualMachine) DeployVM(name string, password string, publicKey string, deleteKeypair bool, description string) error

func (*SVirtualMachine) DetachDisk

func (self *SVirtualMachine) DetachDisk(diskId string) error

func (*SVirtualMachine) GetBillingType

func (self *SVirtualMachine) GetBillingType() string

func (*SVirtualMachine) GetBios

func (self *SVirtualMachine) GetBios() string

func (*SVirtualMachine) GetBootOrder

func (self *SVirtualMachine) GetBootOrder() string

func (*SVirtualMachine) GetCreateTime

func (self *SVirtualMachine) GetCreateTime() time.Time

func (*SVirtualMachine) GetExpiredAt

func (self *SVirtualMachine) GetExpiredAt() time.Time

func (*SVirtualMachine) GetGlobalId

func (self *SVirtualMachine) GetGlobalId() string

func (*SVirtualMachine) GetHypervisor

func (self *SVirtualMachine) GetHypervisor() string

func (*SVirtualMachine) GetIDisks

func (self *SVirtualMachine) GetIDisks() ([]cloudprovider.ICloudDisk, error)

func (*SVirtualMachine) GetIEIP

func (self *SVirtualMachine) GetIEIP() (cloudprovider.ICloudEIP, error)

func (*SVirtualMachine) GetIHost

func (self *SVirtualMachine) GetIHost() cloudprovider.ICloudHost

func (*SVirtualMachine) GetINics

func (self *SVirtualMachine) GetINics() ([]cloudprovider.ICloudNic, error)

func (*SVirtualMachine) GetMachine

func (self *SVirtualMachine) GetMachine() string

func (*SVirtualMachine) GetMetadata

func (self *SVirtualMachine) GetMetadata() *jsonutils.JSONDict

func (*SVirtualMachine) GetOSName

func (self *SVirtualMachine) GetOSName() string

func (*SVirtualMachine) GetOSType

func (self *SVirtualMachine) GetOSType() string

func (*SVirtualMachine) GetStatus

func (self *SVirtualMachine) GetStatus() string

func (*SVirtualMachine) GetVNCInfo

func (self *SVirtualMachine) GetVNCInfo() (jsonutils.JSONObject, error)

func (*SVirtualMachine) GetVcpuCount

func (self *SVirtualMachine) GetVcpuCount() int8

func (*SVirtualMachine) GetVdi

func (self *SVirtualMachine) GetVdi() string

func (*SVirtualMachine) GetVga

func (self *SVirtualMachine) GetVga() string

func (*SVirtualMachine) GetVmemSizeMB

func (self *SVirtualMachine) GetVmemSizeMB() int

func (*SVirtualMachine) IsEmulated

func (self *SVirtualMachine) IsEmulated() bool

func (*SVirtualMachine) RebuildRoot

func (self *SVirtualMachine) RebuildRoot(imageId string, passwd string, publicKey string, sysSizeGB int) (string, error)

func (*SVirtualMachine) Refresh

func (self *SVirtualMachine) Refresh() error

func (*SVirtualMachine) StartVM

func (self *SVirtualMachine) StartVM() error

func (*SVirtualMachine) StopVM

func (self *SVirtualMachine) StopVM(isForce bool) error

func (*SVirtualMachine) SyncSecurityGroup

func (self *SVirtualMachine) SyncSecurityGroup(secgroupId, name string, rules []secrules.SecurityRule) error

func (*SVirtualMachine) UpdateUserData

func (self *SVirtualMachine) UpdateUserData(userData string) error

func (*SVirtualMachine) UpdateVM

func (self *SVirtualMachine) UpdateVM(name string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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