Versions in this module Expand all Collapse all v1 v1.0.3 Dec 29, 2023 v1.0.2 Dec 29, 2023 v1.0.1 Dec 29, 2023 v1.0.0 Dec 29, 2023 Changes in this version + const CLOUD_PROVIDER_VMWARE + const FREEBSD + const IMAGE_CACHE_DIR_NAME + const LINUX + const MACOS + const MONTYPE_HOSTSYSTEM + const MONTYPE_VIRTUALMACHINE + const NET_TYPE_DVPORTGROUP + const NET_TYPE_NETWORK + const SOLARIS + const VLAN_MODE_NONE + const VLAN_MODE_PVLAN + const VLAN_MODE_TRUNK + const VLAN_MODE_VLAN + const VMWARE + const WINDOWS + const X86 + const X86_64 + var DATACENTER_PROPS = []string + var DATASTORE_PROPS = []string + var DVPORTGROUP_PROPS = []string + var DVS_PROPS = []string + var ErrInvalidFormat = errors.Error("vmdk: invalid format (must be streamOptimized)") + var ErrTimeConsuming = errors.Error("time consuming") + var False bool = false + var GuestOsInfo = map[string]SOsInfo + var HOST_PROPS = []string + var HOST_SYSTEM_PROPS []string + var NETWORK_PROPS = []string + var RESOURCEPOOL_PROPS = []string + var SIMPLE_DVPG_PROPS = []string + var SIMPLE_DVS_PROPS = []string + var SIMPLE_HOST_PROPS = []string + var SIMPLE_NETWORK_PROPS = []string + var SIMPLE_VM_PROPS = []string + var True bool = true + var VIRTUAL_MACHINE_PROPS = []string + var VM_PROPS = []string + func FetchAnonymousFieldValue(val interface{}, target interface{}) bool + func InitEsxiConfig(opt EsxiOptions) error + func NewAHCIDev(key, ctlKey int32) types.BaseVirtualDevice + func NewCDROMDev(path string, key, ctlKey int32) types.BaseVirtualDevice + func NewDiskDev(sizeMb int64, config SDiskConfig) *types.VirtualDisk + func NewIDEDev(key, index int32) types.BaseVirtualDevice + func NewSCSIDev(key, ctlKey int32, driver string) types.BaseVirtualDevice + func NewSVGADev(key, ctlKey int32) types.BaseVirtualDevice + func NewUSBController(key *int32) types.BaseVirtualDevice + func NewVNICDev(host *SHost, mac, driver string, bridge string, vlanId int32, ...) (types.BaseVirtualDevice, error) + func Properties(c *vim25.Client, ctx context.Context, r types.ManagedObjectReference, ...) error + type ESXiClientConfig struct + func NewESXiClientConfig(host string, port int, account, password string) *ESXiClientConfig + func (cfg *ESXiClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *ESXiClientConfig + func (cfg *ESXiClientConfig) Debug(debug bool) *ESXiClientConfig + func (cfg *ESXiClientConfig) Format(format string) *ESXiClientConfig + func (cfg *ESXiClientConfig) Managed(managed bool) *ESXiClientConfig + type EsxiOptions struct + ReasonableCIDREsxi string + TemplateNameRegex string + type IDiskBackingInfo interface + GetDatastore func() *types.ManagedObjectReference + GetDiskMode func() string + GetFileName func() string + GetParent func() IDiskBackingInfo + GetPreallocation func() string + GetUuid func() string + GetWriteThrough func() bool + type INetworkInfo interface + Insert func(SIPProc, netutils.IPV4Addr) + func NewNetworkInfo(dvs bool, size int) INetworkInfo + type IPV4Range struct + func (i IPV4Range) Contains(ip string) bool + type IVMNetwork interface + GetDatacenter func() (*SDatacenter, error) + GetHosts func() []types.ManagedObjectReference + GetId func() string + GetName func() string + GetPath func() []string + GetType func() string + GetVlanId func() int32 + GetVswitchName func() string + Summary func() SNetworkSummary + SummaryText func() string + type IVirtualSwitch interface + FindNetworkByVlanID func(vlanID int32) (IVMNetwork, error) + type ImportParams struct + Datacenter *object.Datacenter + Folder *object.Folder + Force bool + Host *object.HostSystem + Logger progress.Sinker + Path string + Pool *object.ResourcePool + Type types.VirtualDiskType + type SCdromInfo struct + ImageId string + Name string + Path string + Size string + type SCluster struct + func NewCluster(manager *SESXiClient, cluster *mo.ClusterComputeResource, dc *SDatacenter) *SCluster + func (cluster *SCluster) CreateResourcePool(name string) (*mo.ResourcePool, error) + func (cluster *SCluster) ListResourcePools() ([]mo.ResourcePool, error) + func (cluster *SCluster) SyncResourcePool(name string) (*mo.ResourcePool, error) + type SCreateVMParam struct + Bios string + Cdrom SCdromInfo + Cpu int + CpuSockets int + Disks []SDiskInfo + InstanceSnapshotInfo SEsxiInstanceSnapshotInfo + Mem int + Name string + Nics []jsonutils.JSONObject + OsName string + ResourcePool string + Uuid string + type SDatacenter struct + Name string + func (dc *SDatacenter) FetchFakeTempateVMs(regex string) ([]*SVirtualMachine, error) + func (dc *SDatacenter) FetchNoTemplateHostEntityReferens() ([]types.ManagedObjectReference, error) + func (dc *SDatacenter) FetchNoTemplateVMEntityReferens() ([]types.ManagedObjectReference, error) + func (dc *SDatacenter) FetchNoTemplateVMs() ([]*SVirtualMachine, error) + func (dc *SDatacenter) FetchTemplateVMById(id string) (*SVirtualMachine, error) + func (dc *SDatacenter) FetchTemplateVMs() ([]*SVirtualMachine, error) + func (dc *SDatacenter) FetchVMById(id string) (*SVirtualMachine, error) + func (dc *SDatacenter) FetchVMs() ([]*SVirtualMachine, error) + func (dc *SDatacenter) GetCluster(cluster string) (*SCluster, error) + func (dc *SDatacenter) GetIHostByMoId(idstr string) (cloudprovider.ICloudHost, error) + func (dc *SDatacenter) GetIHosts() ([]cloudprovider.ICloudHost, error) + func (dc *SDatacenter) GetIStorageByMoId(idstr string) (cloudprovider.ICloudStorage, error) + func (dc *SDatacenter) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (dc *SDatacenter) GetNetworks() ([]IVMNetwork, error) + func (dc *SDatacenter) GetResourcePools() ([]cloudprovider.ICloudProject, error) + func (dc *SDatacenter) GetTemplateVMs() ([]*SVirtualMachine, error) + func (dc *SDatacenter) ListClusters() ([]*SCluster, error) + type SDatastore struct + func NewDatastore(manager *SESXiClient, ds *mo.Datastore, dc *SDatacenter) *SDatastore + func (self *SDatastore) CheckDirC(remotePath string) error + func (self *SDatastore) CheckFile(ctx context.Context, remotePath string) (*SDatastoreFileInfo, error) + func (self *SDatastore) CheckVmdk(ctx context.Context, remotePath string) error + func (self *SDatastore) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error) + func (self *SDatastore) Delete(ctx context.Context, remotePath string) error + func (self *SDatastore) Delete2(ctx context.Context, remotePath string, isNamespace, force bool) error + func (self *SDatastore) DeleteVmdk(ctx context.Context, remotePath string) error + func (self *SDatastore) Download(ctx context.Context, remotePath string, writer io.Writer) error + func (self *SDatastore) FetchFakeTempateVMById(id string, regex string) (*SVirtualMachine, error) + func (self *SDatastore) FetchFakeTempateVMs(regex string) ([]*SVirtualMachine, error) + func (self *SDatastore) FetchNoTemplateVMs() ([]*SVirtualMachine, error) + func (self *SDatastore) FetchTemplateVMById(id string) (*SVirtualMachine, error) + func (self *SDatastore) FetchTemplateVMs() ([]*SVirtualMachine, error) + func (self *SDatastore) FileGetContent(ctx context.Context, remotePath string) ([]byte, error) + func (self *SDatastore) FilePutContent(ctx context.Context, remotePath string, content string) error + func (self *SDatastore) GetAttachedHosts() ([]cloudprovider.ICloudHost, error) + func (self *SDatastore) GetCapacityMB() int64 + func (self *SDatastore) GetCapacityUsedMB() int64 + func (self *SDatastore) GetEnabled() bool + func (self *SDatastore) GetFullPath(remotePath string) string + func (self *SDatastore) GetGlobalId() string + func (self *SDatastore) GetICloudImages(cache *SDatastoreImageCache) ([]cloudprovider.ICloudImage, error) + func (self *SDatastore) GetIDiskById(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) GetMediumType() string + func (self *SDatastore) GetMountPoint() string + func (self *SDatastore) GetName() string + func (self *SDatastore) GetPathUrl(remotePath string) string + func (self *SDatastore) GetRelName() string + func (self *SDatastore) GetStatus() string + func (self *SDatastore) GetStorageConf() jsonutils.JSONObject + func (self *SDatastore) GetStorageType() string + func (self *SDatastore) GetUrl() string + func (self *SDatastore) GetVmdkInfo(ctx context.Context, remotePath string) (*vmdkutils.SVMDKInfo, error) + func (self *SDatastore) HasFile(remotePath string) bool + func (self *SDatastore) ImportISO(ctx context.Context, isoFile, remotePath string, host *SHost) error + func (self *SDatastore) ImportVM(ctx context.Context, diskFile, name string, host *SHost) (*object.VirtualMachine, error) + func (self *SDatastore) ImportVMDK(ctx context.Context, diskFile, remotePath string, host *SHost) error + func (self *SDatastore) IsSysDiskStore() bool + func (self *SDatastore) ListDir(ctx context.Context, remotePath string) ([]SDatastoreFileInfo, error) + func (self *SDatastore) ListPath(ctx context.Context, remotePath string) ([]types.HostDatastoreBrowserSearchResults, error) + func (self *SDatastore) MakeDir(remotePath string) error + func (self *SDatastore) MoveVmdk(ctx context.Context, srcPath string, dstPath string) error + func (self *SDatastore) Refresh() error + func (self *SDatastore) RemoveDir(ctx context.Context, remotePath string) error + func (self *SDatastore) Upload(ctx context.Context, remotePath string, body io.Reader) error + type SDatastoreFileInfo struct + Date time.Time + FileType string + Name string + Size uint64 + Url string + type SDatastoreImageCache struct + func (self *SDatastoreImageCache) GetGlobalId() string + func (self *SDatastoreImageCache) GetICloudImages() ([]cloudprovider.ICloudImage, error) + func (self *SDatastoreImageCache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error) + func (self *SDatastoreImageCache) GetIImageById(extId string) (cloudprovider.ICloudImage, error) + func (self *SDatastoreImageCache) GetIImageInImagecache() ([]cloudprovider.ICloudImage, error) + func (self *SDatastoreImageCache) GetIImageInTemplateVMs() ([]cloudprovider.ICloudImage, error) + func (self *SDatastoreImageCache) GetIImageInTemplateVMsById(id string) (cloudprovider.ICloudImage, error) + func (self *SDatastoreImageCache) GetId() string + func (self *SDatastoreImageCache) GetName() string + func (self *SDatastoreImageCache) GetPath() string + func (self *SDatastoreImageCache) GetStatus() string + func (self *SDatastoreImageCache) IsEmulated() bool + func (self *SDatastoreImageCache) Refresh() error + func (self *SDatastoreImageCache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, ...) (string, error) + type SDiskConfig struct + ControllerKey int32 + Datastore *SDatastore + ImagePath string + IsRoot bool + Key int32 + Preallocation string + SizeMb int64 + UnitNumber int32 + Uuid string + type SDiskInfo struct + DiskId string + Driver string + ImageInfo SEsxiImageInfo + ImagePath string + Preallocation string + Size int64 + StorageId string + type SDistributedVirtualPortgroup struct + func NewDistributedVirtualPortgroup(manager *SESXiClient, net *mo.DistributedVirtualPortgroup, dc *SDatacenter) *SDistributedVirtualPortgroup + func (net *SDistributedVirtualPortgroup) AddHostToDVS(host *SHost) (err error) + func (net *SDistributedVirtualPortgroup) FindPort() (*types.DistributedVirtualPort, error) + func (net *SDistributedVirtualPortgroup) GetActivePorts() []string + func (net *SDistributedVirtualPortgroup) GetDVSUuid() (string, error) + func (net *SDistributedVirtualPortgroup) GetHosts() []types.ManagedObjectReference + func (net *SDistributedVirtualPortgroup) GetName() string + func (net *SDistributedVirtualPortgroup) GetNumPorts() int32 + func (net *SDistributedVirtualPortgroup) GetType() string + func (net *SDistributedVirtualPortgroup) GetVlanId() int32 + func (net *SDistributedVirtualPortgroup) GetVlanMode() string + func (net *SDistributedVirtualPortgroup) GetVswitchName() string + func (net *SDistributedVirtualPortgroup) Summary() SNetworkSummary + func (net *SDistributedVirtualPortgroup) SummaryText() string + func (net *SDistributedVirtualPortgroup) Uplink() bool + type SDistributedVirtualSwitch struct + DistributedVirtualSwitch mo.DistributedVirtualSwitch + Host *SHost + func (vs *SDistributedVirtualSwitch) FindNetworkByVlanID(vlanID int32) (IVMNetwork, error) + type SESXiClient struct + func NewESXiClient(cfg *ESXiClientConfig) (*SESXiClient, error) + func NewESXiClient2(cfg *ESXiClientConfig) (*SESXiClient, error) + func NewESXiClientFromAccessInfo(ctx context.Context, accessInfo *vcenter.SVCenterAccessInfo) (*SESXiClient, error) + func NewESXiClientFromJson(ctx context.Context, input jsonutils.JSONObject) (*SESXiClient, *vcenter.SVCenterAccessInfo, error) + func (cli *SESXiClient) About() jsonutils.JSONObject + func (cli *SESXiClient) AllHostIP() (map[string]string, []mo.HostSystem, error) + func (cli *SESXiClient) CopyDisk(ctx context.Context, src, dst string, isForce bool) error + func (cli *SESXiClient) DoExtendDiskOnline(_vm *SVirtualMachine, _disk *SVirtualDisk, newSizeMb int64) error + func (cli *SESXiClient) ExtendDisk(url string, newSizeMb int64) error + func (cli *SESXiClient) FindDatacenterByMoId(dcId string) (*SDatacenter, error) + func (cli *SESXiClient) FindHostByIp(hostIp string) (*SHost, error) + func (cli *SESXiClient) FindHostByMoId(moId string) (cloudprovider.ICloudHost, error) + func (cli *SESXiClient) FindVMByPrivateID(idstr string) (*SVirtualMachine, error) + func (cli *SESXiClient) GetAccountId() string + func (cli *SESXiClient) GetCapabilities() []string + func (cli *SESXiClient) GetDatacenters() ([]*SDatacenter, error) + func (cli *SESXiClient) GetI18n() cloudprovider.SModelI18nTable + func (cli *SESXiClient) GetIHostById(id string) (cloudprovider.ICloudHost, error) + func (cli *SESXiClient) GetIHosts() ([]cloudprovider.ICloudHost, error) + func (cli *SESXiClient) GetIProjects() ([]cloudprovider.ICloudProject, error) + func (cli *SESXiClient) GetISkus() ([]cloudprovider.ICloudSku, error) + func (cli *SESXiClient) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error) + func (cli *SESXiClient) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error) + func (cli *SESXiClient) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (cli *SESXiClient) GetIStoragecacheById(idstr string) (cloudprovider.ICloudStoragecache, error) + func (cli *SESXiClient) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error) + func (cli *SESXiClient) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (cli *SESXiClient) GetIVMById(id string) (cloudprovider.ICloudVM, error) + func (cli *SESXiClient) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (cli *SESXiClient) GetIVpcs() ([]cloudprovider.ICloudVpc, error) + func (cli *SESXiClient) GetNetworks() ([]IVMNetwork, error) + func (cli *SESXiClient) GetProvider() string + func (cli *SESXiClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error) + func (cli *SESXiClient) GetUUID() string + func (cli *SESXiClient) GetVersion() string + func (cli *SESXiClient) HostVmIPs(ctx context.Context) (SNetworkInfo, error) + func (cli *SESXiClient) HostVmIPsInCluster(ctx context.Context, cluster *SCluster) (SNetworkInfo, error) + func (cli *SESXiClient) HostVmIPsInDc(ctx context.Context, dc *SDatacenter) (SNetworkInfo, error) + func (cli *SESXiClient) HostVmIPsPro(ctx context.Context) (SNetworkInfoPro, error) + func (cli *SESXiClient) IsHostIpExists(hostIp string) (bool, error) + func (cli *SESXiClient) IsVCenter() bool + func (cli *SESXiClient) IsValid() bool + func (cli *SESXiClient) MoveDisk(ctx context.Context, src, dst string, isForce bool) error + func (cli *SESXiClient) SearchTemplateVM(id string) (*SVirtualMachine, error) + func (cli *SESXiClient) SearchVM(id string) (*SVirtualMachine, error) + func (cli *SESXiClient) VMIP(host mo.HostSystem) (map[string][]string, error) + func (cli *SESXiClient) VMIP2() ([]SVMIPInfo, error) + func (client *SESXiClient) CreateISecurityGroup(conf *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error) + func (client *SESXiClient) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error) + func (client *SESXiClient) GetCloudEnv() string + func (client *SESXiClient) GetGeographicInfo() cloudprovider.SGeographicInfo + func (client *SESXiClient) GetGlobalId() string + func (client *SESXiClient) GetISecurityGroupById(id string) (cloudprovider.ICloudSecurityGroup, error) + func (client *SESXiClient) GetIVpcById(id string) (cloudprovider.ICloudVpc, error) + func (client *SESXiClient) GetIZoneById(id string) (cloudprovider.ICloudZone, error) + func (client *SESXiClient) GetIZones() ([]cloudprovider.ICloudZone, error) + func (client *SESXiClient) GetId() string + func (client *SESXiClient) GetName() string + func (client *SESXiClient) GetStatus() string + func (client *SESXiClient) GetSysTags() map[string]string + func (client *SESXiClient) GetTags() (map[string]string, error) + func (client *SESXiClient) IsEmulated() bool + func (client *SESXiClient) Refresh() error + func (client *SESXiClient) SetTags(tags map[string]string, replace bool) error + func (self *SESXiClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SESXiClient) GetHostMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SESXiClient) GetIDiskById(id string) (cloudprovider.ICloudDisk, error) + func (self *SESXiClient) GetMetricTypes() ([]SEsxiMetricType, error) + func (self *SESXiClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + type SEsxiImageInfo struct + ImageExternalId string + ImageType string + StorageCacheHostIp string + type SEsxiInstanceSnapshotInfo struct + InstanceId string + InstanceSnapshotId string + type SEsxiMetricType struct + Group string + Key string + KeyId int32 + Summary string + Unit string + type SHost struct + func NewHost(manager *SESXiClient, host *mo.HostSystem, dc *SDatacenter) *SHost + func (host *SHost) CloneVM(ctx context.Context, from *SVirtualMachine, ...) (*SVirtualMachine, error) + func (host *SHost) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error) + func (host *SHost) CreateVM2(ctx context.Context, ds *SDatastore, params SCreateVMParam) (needDeploy bool, vm *SVirtualMachine, err error) + func (host *SHost) DoCreateVM(ctx context.Context, ds *SDatastore, params SCreateVMParam) (needDeploy bool, vm *SVirtualMachine, err error) + func (host *SHost) FileUrlPathToDsPath(path string) (string, error) + func (host *SHost) FindDataStoreById(id string) (*SDatastore, error) + func (host *SHost) GetAccessIp() string + func (host *SHost) GetAccessMac() string + func (host *SHost) GetCluster() (*SCluster, error) + func (host *SHost) GetCpuCount() int + func (host *SHost) GetCpuDesc() string + func (host *SHost) GetCpuMhz() int + func (host *SHost) GetDataStores() ([]cloudprovider.ICloudStorage, error) + func (host *SHost) GetEnabled() bool + func (host *SHost) GetGlobalId() string + func (host *SHost) GetHostStatus() string + func (host *SHost) GetHostSystem() *object.HostSystem + func (host *SHost) GetHostType() string + func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error) + func (host *SHost) GetIHostNicsInternal(debug bool) ([]cloudprovider.ICloudHostNetInterface, error) + func (host *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (host *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (host *SHost) GetIVMById(id string) (cloudprovider.ICloudVM, error) + func (host *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (host *SHost) GetIVMs2() ([]cloudprovider.ICloudVM, error) + func (host *SHost) GetIsMaintenance() bool + func (host *SHost) GetManagementServerIp() string + func (host *SHost) GetMemSizeMB() int + func (host *SHost) GetName() string + func (host *SHost) GetNetworks() ([]IVMNetwork, error) + func (host *SHost) GetNodeCount() int8 + func (host *SHost) GetResourcePool() (*object.ResourcePool, error) + func (host *SHost) GetResourcePools() ([]mo.ResourcePool, error) + func (host *SHost) GetSN() string + func (host *SHost) GetSchedtags() ([]string, error) + func (host *SHost) GetSiblingHosts() ([]*SHost, error) + func (host *SHost) GetStatus() string + func (host *SHost) GetStorageInfo() []SHostStorageInfo + func (host *SHost) GetStorageSizeMB() int64 + func (host *SHost) GetStorageType() string + func (host *SHost) GetSysInfo() jsonutils.JSONObject + func (host *SHost) GetSysTags() map[string]string + func (host *SHost) GetTemplateVMById(id string) (*SVirtualMachine, error) + func (host *SHost) GetTemplateVMs() ([]*SVirtualMachine, error) + func (host *SHost) GetVersion() string + func (host *SHost) IsActiveVlanID(vlanID int32) bool + func (host *SHost) IsEmulated() bool + func (host *SHost) IsManagedByVCenter() bool + func (host *SHost) Refresh() error + func (host *SHost) SearchTemplateVM(id string) (*SVirtualMachine, error) + func (host *SHost) SyncResourcePool(name string) (*object.ResourcePool, error) + type SHostStorageAdapterInfo struct + Device string + Driver string + Drivers []*SHostStorageDriverInfo + Enclosure int + Model string + Pci string + type SHostStorageDriverInfo struct + CN string + Dev string + Model string + Name string + Revision string + SSD bool + Size int + Slot int + Status string + Vendor string + type SHostStorageEnclosureInfo struct + CN string + Model string + Name string + Revision string + Status string + Vendor string + type SHostStorageInfo struct + Adapter int + Driver string + Index int + Model string + Rotate bool + Size int + Status string + type SIPPool struct + func NewIPPool(size ...int) SIPPool + func (p *SIPPool) Get(ip netutils.IPV4Addr) (SIPProc, bool) + func (p *SIPPool) Has(ip netutils.IPV4Addr) bool + func (p *SIPPool) Insert(ip netutils.IPV4Addr, proc SIPProc) + func (p *SIPPool) Len() int + func (p *SIPPool) Merge(op *SIPPool) + type SIPProc struct + IsHost bool + VSId string + VlanId int32 + type SIPVlan struct + IP netutils.IPV4Addr + VlanId int32 + type SImage struct + func (img *SImage) GetBios() cloudprovider.TBiosType + func (img *SImage) GetFullOsName() string + func (img *SImage) GetOsArch() string + func (img *SImage) GetOsDist() string + func (img *SImage) GetOsLang() string + func (img *SImage) GetOsType() cloudprovider.TOsType + func (img *SImage) GetOsVersion() string + func (self *SImage) Delete(ctx context.Context) error + func (self *SImage) GetCreatedAt() time.Time + func (self *SImage) GetGlobalId() string + func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache + func (self *SImage) GetId() string + func (self *SImage) GetImageFormat() string + func (self *SImage) GetImageStatus() string + func (self *SImage) GetImageType() cloudprovider.TImageType + func (self *SImage) GetMinOsDiskSizeGb() int + func (self *SImage) GetMinRamSizeMb() int + func (self *SImage) GetName() string + func (self *SImage) GetSizeByte() int64 + func (self *SImage) GetStatus() string + func (self *SImage) IsEmulated() bool + func (self *SImage) Refresh() error + type SMacIps struct + IPs []string + Mac string + type SManagedObject struct + func (self *SManagedObject) GetDatacenter() (*SDatacenter, error) + func (self *SManagedObject) GetDatacenterPath() []string + func (self *SManagedObject) GetDatacenterPathString() string + func (self *SManagedObject) GetId() string + func (self *SManagedObject) GetName() string + func (self *SManagedObject) GetPath() []string + func (self *SManagedObject) GetType() string + type SNetwork struct + func NewNetwork(manager *SESXiClient, net *mo.Network, dc *SDatacenter) *SNetwork + func (net *SNetwork) GetHosts() []types.ManagedObjectReference + func (net *SNetwork) GetName() string + func (net *SNetwork) GetType() string + func (net *SNetwork) GetVlanId() int32 + func (net *SNetwork) GetVswitchName() string + func (net *SNetwork) Summary() SNetworkSummary + func (net *SNetwork) SummaryText() string + type SNetworkInfo struct + HostIps map[string]netutils.IPV4Addr + VlanIps map[int32][]netutils.IPV4Addr + func (s *SNetworkInfo) Insert(proc SIPProc, ip netutils.IPV4Addr) + type SNetworkInfoBase struct + IPPool SIPPool + func (s *SNetworkInfoBase) Insert(proc SIPProc, ip netutils.IPV4Addr) + type SNetworkInfoPro struct + HostIps map[string][]netutils.IPV4Addr + VsMap SVirtualSwitchMap + type SNetworkSummary struct + Accessible bool + IpPoolId int32 + IpPoolName string + Name string + type SOsInfo struct + OsArch TOSArch + OsDistribution string + OsType TOSType + OsVersion string + type SResourcePool struct + func NewResourcePool(manager *SESXiClient, rp *mo.ResourcePool, dc *SDatacenter) *SResourcePool + func (pool *SResourcePool) GetGlobalId() string + func (pool *SResourcePool) GetName() string + func (pool *SResourcePool) GetStatus() string + type SServerNic struct + BandWidth int + Bridge string + Dns string + Domain string + Driver string + Gateway string + Ifname string + Index int + Interface string + Ip string + LinkUp bool + Mac string + Manual bool + Masklen int + Mtu int + Name string + Net string + NetId string + NicType string + Ntp string + TeamWith string + TeamingMaster *SServerNic + TeamingSlaves []*SServerNic + Virtual bool + Vlan int + WireId string + type SSimpleHostDev struct + Id string + Mac string + Name string + type SSimpleVM struct + IPVlans []SIPVlan + Name string + type SSysInfo struct + Manufacture string + Model string + SerialNumber string + type SVMIPInfo struct + MacIps []SMacIps + Moid string + Name string + PowerState string + Uuid string + type SVMTemplate struct + func NewVMTemplate(vm *SVirtualMachine, cache *SDatastoreImageCache) *SVMTemplate + func (t *SVMTemplate) Delete(ctx context.Context) error + func (t *SVMTemplate) GetBios() cloudprovider.TBiosType + func (t *SVMTemplate) GetCreatedAt() time.Time + func (t *SVMTemplate) GetFullOsName() string + func (t *SVMTemplate) GetGlobalId() string + func (t *SVMTemplate) GetIStoragecache() cloudprovider.ICloudStoragecache + func (t *SVMTemplate) GetId() string + func (t *SVMTemplate) GetImageFormat() string + func (t *SVMTemplate) GetImageStatus() string + func (t *SVMTemplate) GetImageType() cloudprovider.TImageType + func (t *SVMTemplate) GetMinOsDiskSizeGb() int + func (t *SVMTemplate) GetMinRamSizeMb() int + func (t *SVMTemplate) GetName() string + func (t *SVMTemplate) GetOsArch() string + func (t *SVMTemplate) GetOsDist() string + func (t *SVMTemplate) GetOsLang() string + func (t *SVMTemplate) GetOsType() cloudprovider.TOsType + func (t *SVMTemplate) GetOsVersion() string + func (t *SVMTemplate) GetSizeByte() int64 + func (t *SVMTemplate) GetStatus() string + func (t *SVMTemplate) GetSubImages() []cloudprovider.SSubImage + func (t *SVMTemplate) IsEmulated() bool + func (t *SVMTemplate) Refresh() error + type SVirtualCdrom struct + func NewVirtualCdrom(vm *SVirtualMachine, dev types.BaseVirtualDevice, index int) SVirtualCdrom + type SVirtualDevice struct + func NewVirtualDevice(vm *SVirtualMachine, dev types.BaseVirtualDevice, index int) SVirtualDevice + func (dev *SVirtualDevice) GetDriver() string + func (dev *SVirtualDevice) GetIndex() int + type SVirtualDisk struct + IsRoot bool + func NewVirtualDisk(vm *SVirtualMachine, dev types.BaseVirtualDevice, index int) SVirtualDisk + func (disk *SVirtualDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error) + func (disk *SVirtualDisk) Delete(ctx context.Context) error + func (disk *SVirtualDisk) GetAccessPath() string + func (disk *SVirtualDisk) GetBillingType() string + func (disk *SVirtualDisk) GetCacheMode() string + func (disk *SVirtualDisk) GetCreatedAt() time.Time + func (disk *SVirtualDisk) GetDiskFormat() string + func (disk *SVirtualDisk) GetDiskSizeMB() int + func (disk *SVirtualDisk) GetDiskType() string + func (disk *SVirtualDisk) GetDriver() string + func (disk *SVirtualDisk) GetExpiredAt() time.Time + func (disk *SVirtualDisk) GetFilename() string + func (disk *SVirtualDisk) GetFsFormat() string + func (disk *SVirtualDisk) GetGlobalId() string + func (disk *SVirtualDisk) GetISnapshot(idStr string) (cloudprovider.ICloudSnapshot, error) + func (disk *SVirtualDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error) + func (disk *SVirtualDisk) GetIStorage() (cloudprovider.ICloudStorage, error) + func (disk *SVirtualDisk) GetIStorageId() string + func (disk *SVirtualDisk) GetId() string + func (disk *SVirtualDisk) GetIsAutoDelete() bool + func (disk *SVirtualDisk) GetIsNonPersistent() bool + func (disk *SVirtualDisk) GetMountpoint() string + func (disk *SVirtualDisk) GetName() string + func (disk *SVirtualDisk) GetPreallocation() string + func (disk *SVirtualDisk) GetProjectId() string + func (disk *SVirtualDisk) GetStatus() string + func (disk *SVirtualDisk) GetTemplateId() string + func (disk *SVirtualDisk) IsEmulated() bool + func (disk *SVirtualDisk) MatchId(id string) bool + func (disk *SVirtualDisk) Rebuild(ctx context.Context) error + func (disk *SVirtualDisk) Refresh() error + func (disk *SVirtualDisk) Reset(ctx context.Context, snapshotId string) (string, error) + func (disk *SVirtualDisk) Resize(ctx context.Context, newSizeMb int64) error + type SVirtualMachine struct + func NewVirtualMachine(manager *SESXiClient, vm *mo.VirtualMachine, dc *SDatacenter) *SVirtualMachine + func (svm *SVirtualMachine) AttachDisk(ctx context.Context, diskId string) error + func (svm *SVirtualMachine) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error + func (svm *SVirtualMachine) CheckFileInfo(ctx context.Context) error + func (svm *SVirtualMachine) ConvertPublicIpToEip() error + func (svm *SVirtualMachine) CopyRootDisk(ctx context.Context, imagePath string) (string, error) + func (svm *SVirtualMachine) CreateDisk(ctx context.Context, opts *cloudprovider.GuestDiskCreateOptions) (string, error) + func (svm *SVirtualMachine) CreateInstanceSnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudInstanceSnapshot, error) + func (svm *SVirtualMachine) DeleteVM(ctx context.Context) error + func (svm *SVirtualMachine) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error + func (svm *SVirtualMachine) DetachDisk(ctx context.Context, diskId string) error + func (svm *SVirtualMachine) DoCustomize(ctx context.Context, params jsonutils.JSONObject) error + func (svm *SVirtualMachine) DoRebuildRoot(ctx context.Context, imagePath string, uuid string) error + func (svm *SVirtualMachine) DoRename(ctx context.Context, name string) error + func (svm *SVirtualMachine) ExportTemplate(ctx context.Context, idx int, diskPath string) error + func (svm *SVirtualMachine) FindController(ctx context.Context, driver string) ([]SVirtualDevice, error) + func (svm *SVirtualMachine) FindDiskByDriver(drivers ...string) []SVirtualDisk + func (svm *SVirtualMachine) FindMinDiffKey(limit int32) int32 + func (svm *SVirtualMachine) GetBillingType() string + func (svm *SVirtualMachine) GetBootOrder() string + func (svm *SVirtualMachine) GetCpuSockets() int + func (svm *SVirtualMachine) GetCreatedAt() time.Time + func (svm *SVirtualMachine) GetError() error + func (svm *SVirtualMachine) GetExpiredAt() time.Time + func (svm *SVirtualMachine) GetGlobalId() string + func (svm *SVirtualMachine) GetGuestFamily() string + func (svm *SVirtualMachine) GetGuestFullName() string + func (svm *SVirtualMachine) GetGuestId() string + func (svm *SVirtualMachine) GetGuestState() string + func (svm *SVirtualMachine) GetGuestToolsRunningStatus() string + func (svm *SVirtualMachine) GetGuestToolsStatus() string + func (svm *SVirtualMachine) GetHostname() string + func (svm *SVirtualMachine) GetHypervisor() string + func (svm *SVirtualMachine) GetIDiskById(idStr string) (cloudprovider.ICloudDisk, error) + func (svm *SVirtualMachine) GetIDisks() ([]cloudprovider.ICloudDisk, error) + func (svm *SVirtualMachine) GetIEIP() (cloudprovider.ICloudEIP, error) + func (svm *SVirtualMachine) GetIHost() cloudprovider.ICloudHost + func (svm *SVirtualMachine) GetIHostId() string + func (svm *SVirtualMachine) GetINics() ([]cloudprovider.ICloudNic, error) + func (svm *SVirtualMachine) GetInstanceSnapshot(idStr string) (cloudprovider.ICloudInstanceSnapshot, error) + func (svm *SVirtualMachine) GetInstanceSnapshots() ([]cloudprovider.ICloudInstanceSnapshot, error) + func (svm *SVirtualMachine) GetInstanceType() string + func (svm *SVirtualMachine) GetIps() []string + func (svm *SVirtualMachine) GetMachine() string + func (svm *SVirtualMachine) GetMoid() string + func (svm *SVirtualMachine) GetProjectId() string + func (svm *SVirtualMachine) GetRootImagePath() (string, error) + func (svm *SVirtualMachine) GetSecurityGroupIds() ([]string, error) + func (svm *SVirtualMachine) GetSerialOutput(port int) (string, error) + func (svm *SVirtualMachine) GetStatus() string + func (svm *SVirtualMachine) GetSysTags() map[string]string + func (svm *SVirtualMachine) GetTags() (map[string]string, error) + func (svm *SVirtualMachine) GetToolsVersion() string + func (svm *SVirtualMachine) GetVGADevice() string + func (svm *SVirtualMachine) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error) + func (svm *SVirtualMachine) GetVcpuCount() int + func (svm *SVirtualMachine) GetVdi() string + func (svm *SVirtualMachine) GetVersion() string + func (svm *SVirtualMachine) GetVga() string + func (svm *SVirtualMachine) GetVmemSizeMB() int + func (svm *SVirtualMachine) GetVmrcInfo() (*cloudprovider.ServerVncOutput, error) + func (svm *SVirtualMachine) GetWebmksInfo() (*cloudprovider.ServerVncOutput, error) + func (svm *SVirtualMachine) IsAutoRenew() bool + func (svm *SVirtualMachine) IsEmulated() bool + func (svm *SVirtualMachine) IsTemplate() bool + func (svm *SVirtualMachine) LiveMigrateVM(hostId string) error + func (svm *SVirtualMachine) MigrateVM(hostId string) error + func (svm *SVirtualMachine) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error) + func (svm *SVirtualMachine) Refresh() error + func (svm *SVirtualMachine) Renew(bc billing.SBillingCycle) error + func (svm *SVirtualMachine) ResetToInstanceSnapshot(ctx context.Context, idStr string) error + func (svm *SVirtualMachine) ResumeVM(ctx context.Context) error + func (svm *SVirtualMachine) SetAutoRenew(bc billing.SBillingCycle) error + func (svm *SVirtualMachine) SetConfig(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error + func (svm *SVirtualMachine) SetSecurityGroups(secgroupIds []string) error + func (svm *SVirtualMachine) SetTags(tags map[string]string, replace bool) error + func (svm *SVirtualMachine) StartVM(ctx context.Context) error + func (svm *SVirtualMachine) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error + func (svm *SVirtualMachine) SuspendVM(ctx context.Context) error + func (svm *SVirtualMachine) UpdateUserData(userData string) error + func (svm *SVirtualMachine) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error + func (vm *SVirtualMachine) GetBios() cloudprovider.TBiosType + func (vm *SVirtualMachine) GetDatastoreNames() []string + func (vm *SVirtualMachine) GetDatastores() ([]*SDatastore, error) + func (vm *SVirtualMachine) GetFullOsName() string + func (vm *SVirtualMachine) GetOsArch() string + func (vm *SVirtualMachine) GetOsDist() string + func (vm *SVirtualMachine) GetOsLang() string + func (vm *SVirtualMachine) GetOsType() cloudprovider.TOsType + func (vm *SVirtualMachine) GetOsVersion() string + type SVirtualMachineSnapshot struct + func NewSnapshot(st types.VirtualMachineSnapshotTree) *SVirtualMachineSnapshot + func (s *SVirtualMachineSnapshot) Delete() error + func (s *SVirtualMachineSnapshot) GetDescription() string + func (s *SVirtualMachineSnapshot) GetGlobalId() string + func (s *SVirtualMachineSnapshot) GetId() string + func (s *SVirtualMachineSnapshot) GetName() string + func (s *SVirtualMachineSnapshot) GetProjectId() string + func (s *SVirtualMachineSnapshot) GetStatus() string + func (s *SVirtualMachineSnapshot) IsEmulated() bool + func (s *SVirtualMachineSnapshot) Refresh() error + type SVirtualNIC struct + func NewVirtualNIC(vm *SVirtualMachine, dev types.BaseVirtualDevice, index int) SVirtualNIC + func (nic *SVirtualNIC) GetDriver() string + func (nic *SVirtualNIC) GetINetworkId() string + func (nic *SVirtualNIC) GetIP() string + func (nic *SVirtualNIC) GetId() string + func (nic *SVirtualNIC) GetMAC() string + func (nic *SVirtualNIC) GetSubAddress() ([]string, error) + func (nic *SVirtualNIC) InClassicNetwork() bool + type SVirtualSwitch struct + Host *SHost + HostVirtualSwitch types.HostVirtualSwitch + func (vs *SVirtualSwitch) FindNetworkByVlanID(vlanID int32) (IVMNetwork, error) + type SVirtualSwitchMap struct + func NewVirtualSwitchMap(length ...int) SVirtualSwitchMap + func (vms *SVirtualSwitchMap) Merge(ovsm *SVirtualSwitchMap) + func (vsm *SVirtualSwitchMap) Insert(id string, vs SVirtualSwitchSpec) + func (vsm *SVirtualSwitchMap) List() []SVirtualSwitchSpec + type SVirtualSwitchSpec struct + Distributed bool + HostIps map[string][]netutils.IPV4Addr + Hosts []SSimpleHostDev + Id string + Name string + func NewVirtualSwitch() *SVirtualSwitchSpec + type SVirtualVGA struct + func NewVirtualVGA(vm *SVirtualMachine, dev types.BaseVirtualDevice, index int) SVirtualVGA + func (vga *SVirtualVGA) GetEnable3D() bool + func (vga *SVirtualVGA) GetRamSizeMB() int + func (vga *SVirtualVGA) String() string + type TOSArch string + type TOSType string + type VMFetcher interface + FetchFakeTempateVMs func(string) ([]*SVirtualMachine, error) + FetchNoTemplateVMs func() ([]*SVirtualMachine, error) + FetchTemplateVMs func() ([]*SVirtualMachine, error)