Documentation ¶
Index ¶
- Constants
- Variables
- type SDatacenter
- type SDatastore
- func (self *SDatastore) CreateIDisk(name string, sizeGb int, desc string) (cloudprovider.ICloudDisk, error)
- func (self *SDatastore) GetCapacityMB() int
- func (self *SDatastore) GetEnabled() bool
- func (self *SDatastore) GetGlobalId() string
- func (self *SDatastore) GetIDisk(idStr string) (cloudprovider.ICloudDisk, error)
- func (self *SDatastore) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (self *SDatastore) GetIStoragecache() cloudprovider.ICloudStoragecache
- func (self *SDatastore) GetIZone() cloudprovider.ICloudZone
- func (self *SDatastore) GetManagerId() string
- func (self *SDatastore) GetMediumType() string
- func (self *SDatastore) GetMetadata() *jsonutils.JSONDict
- func (self *SDatastore) GetStatus() string
- func (self *SDatastore) GetStorageConf() jsonutils.JSONObject
- func (self *SDatastore) GetStorageType() string
- func (self *SDatastore) IsEmulated() bool
- func (self *SDatastore) Refresh() error
- type SESXiClient
- func (cli *SESXiClient) About() jsonutils.JSONObject
- func (cli *SESXiClient) FindDatacenterById(dcId string) (*SDatacenter, error)
- func (cli *SESXiClient) FindHostByIp(hostIp string) (*SHost, error)
- func (cli *SESXiClient) GetDatacenters() ([]*SDatacenter, error)
- func (cli *SESXiClient) GetUUID() string
- type SHost
- func (self *SHost) CreateVM(name string, imgId string, sysDiskSize int, cpu int, memMB int, ...) (cloudprovider.ICloudVM, error)
- func (self *SHost) GetAccessIp() string
- func (self *SHost) GetAccessMac() string
- func (self *SHost) GetCpuCount() int8
- func (self *SHost) GetCpuDesc() string
- func (self *SHost) GetCpuMhz() int
- func (self *SHost) GetEnabled() bool
- func (self *SHost) GetGlobalId() string
- func (self *SHost) GetHostStatus() string
- func (self *SHost) GetHostType() string
- func (self *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
- func (self *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
- func (self *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error)
- func (self *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error)
- func (self *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)
- func (self *SHost) GetManagerId() string
- func (self *SHost) GetMemSizeMB() int
- func (self *SHost) GetMetadata() *jsonutils.JSONDict
- func (self *SHost) GetNodeCount() int8
- func (self *SHost) GetSN() string
- func (self *SHost) GetStatus() string
- func (self *SHost) GetStorageSizeMB() int
- func (self *SHost) GetStorageType() string
- func (self *SHost) GetSysInfo() jsonutils.JSONObject
- func (self *SHost) IsEmulated() bool
- func (self *SHost) Refresh() error
- type SHostNicInfo
- type SHostStorageAdapterInfo
- type SHostStorageDriverInfo
- type SHostStorageEnclosureInfo
- type SManagedObject
- func (self *SManagedObject) GetDatacenter() (*SDatacenter, error)
- func (self *SManagedObject) GetDatacenterPath() []string
- func (self *SManagedObject) GetId() string
- func (self *SManagedObject) GetName() string
- func (self *SManagedObject) GetPath() []string
- func (self *SManagedObject) GetType() string
- type SSysInfo
- type SVirtualMachine
- func (self *SVirtualMachine) AttachDisk(diskId string) error
- func (dc *SVirtualMachine) ChangeConfig(instanceId string, ncpu int, vmem int) error
- func (self *SVirtualMachine) DeleteVM() error
- func (self *SVirtualMachine) DeployVM(name string, password string, publicKey string, deleteKeypair bool, ...) error
- func (self *SVirtualMachine) DetachDisk(diskId string) error
- func (self *SVirtualMachine) GetBios() string
- func (self *SVirtualMachine) GetBootOrder() string
- func (self *SVirtualMachine) GetCreateTime() time.Time
- func (self *SVirtualMachine) GetGlobalId() string
- func (self *SVirtualMachine) GetHypervisor() string
- func (self *SVirtualMachine) GetIDisks() ([]cloudprovider.ICloudDisk, error)
- func (self *SVirtualMachine) GetIEIP() (cloudprovider.ICloudEIP, error)
- func (self *SVirtualMachine) GetIHost() cloudprovider.ICloudHost
- func (self *SVirtualMachine) GetINics() ([]cloudprovider.ICloudNic, error)
- func (self *SVirtualMachine) GetMachine() string
- func (self *SVirtualMachine) GetMetadata() *jsonutils.JSONDict
- func (self *SVirtualMachine) GetOSName() string
- func (self *SVirtualMachine) GetOSType() string
- func (self *SVirtualMachine) GetStatus() string
- func (self *SVirtualMachine) GetVNCInfo() (jsonutils.JSONObject, error)
- func (self *SVirtualMachine) GetVcpuCount() int8
- func (self *SVirtualMachine) GetVdi() string
- func (self *SVirtualMachine) GetVga() string
- func (self *SVirtualMachine) GetVmemSizeMB() int
- func (self *SVirtualMachine) IsEmulated() bool
- func (self *SVirtualMachine) RebuildRoot(imageId string, passwd string, publicKey string, sysSizeGB int) (string, error)
- func (self *SVirtualMachine) Refresh() error
- func (self *SVirtualMachine) StartVM() error
- func (self *SVirtualMachine) StopVM(isForce bool) error
- func (self *SVirtualMachine) SyncSecurityGroup(secgroupId, name string, rules []secrules.SecurityRule) error
- func (self *SVirtualMachine) UpdateVM(name string) error
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 (*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) 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) GetAccessIp ¶
func (*SHost) GetAccessMac ¶
func (*SHost) GetCpuCount ¶
func (*SHost) GetCpuDesc ¶
func (*SHost) GetEnabled ¶
func (*SHost) GetGlobalId ¶
func (*SHost) GetHostStatus ¶
func (*SHost) GetHostType ¶
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) GetIWires ¶
func (self *SHost) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SHost) GetManagerId ¶
func (*SHost) GetMemSizeMB ¶
func (*SHost) GetMetadata ¶
func (*SHost) GetNodeCount ¶
func (*SHost) GetStorageSizeMB ¶
func (*SHost) GetStorageType ¶
func (*SHost) GetSysInfo ¶
func (self *SHost) GetSysInfo() jsonutils.JSONObject
func (*SHost) IsEmulated ¶
type SHostNicInfo ¶
type SHostStorageAdapterInfo ¶
type SHostStorageDriverInfo ¶
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 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) DetachDisk ¶
func (self *SVirtualMachine) DetachDisk(diskId string) error
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) 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 (*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) UpdateVM ¶
func (self *SVirtualMachine) UpdateVM(name string) error
Source Files ¶
Click to show internal directories.
Click to hide internal directories.