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_ZSTACK + const CephPoolTypeData + const CephPoolTypeImageCache + const CephPoolTypeRoot + const StorageTypeCeph + const StorageTypeLocal + const StorageTypeVCenter + const ZSTACK_API_VERSION + const ZSTACK_DEFAULT_REGION + var SkipEsxi bool = true + type DataPoint struct + Labels Label + Time int64 + Value float64 + type ImageServers []SImageServer + func (v ImageServers) Len() int + func (v ImageServers) Less(i, j int) bool + func (v ImageServers) Swap(i, j int) + type Label struct + HostUuid string + VMUuid string + type SBackupStorageRef struct + BackupStorageUUID string + CreateDate time.Time + ImageUUID string + InstallPath string + LastOpDate time.Time + Status string + type SCluster struct + Description string + HypervisorType string + State string + Type string + ZoneUUID string + type SConfiguration struct + Category string + DefaultValue string + Description string + Name string + Value string + type SConsoleInfo struct + Hostname string + Port int + Scheme string + Token string + type SDataPoint struct + DataPoints []DataPoint + type SDisk struct + ActualSize int + DeviceID float32 + DiskOfferingUUID string + Format string + InstallPath string + PrimaryStorageUUID string + RootImageUUID string + Size int + State string + Status string + Type string + VMInstanceUUID string + func (disk *SDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error) + func (disk *SDisk) Delete(ctx context.Context) error + func (disk *SDisk) GetAccessPath() string + func (disk *SDisk) GetBillingType() string + func (disk *SDisk) GetCacheMode() string + func (disk *SDisk) GetCreatedAt() time.Time + func (disk *SDisk) GetDiskFormat() string + func (disk *SDisk) GetDiskSizeMB() int + func (disk *SDisk) GetDiskType() string + func (disk *SDisk) GetDriver() string + func (disk *SDisk) GetExpiredAt() time.Time + func (disk *SDisk) GetFsFormat() string + func (disk *SDisk) GetGlobalId() string + func (disk *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error) + func (disk *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error) + func (disk *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error) + func (disk *SDisk) GetIStorageId() string + func (disk *SDisk) GetId() string + func (disk *SDisk) GetIsAutoDelete() bool + func (disk *SDisk) GetIsNonPersistent() bool + func (disk *SDisk) GetMountpoint() string + func (disk *SDisk) GetName() string + func (disk *SDisk) GetProjectId() string + func (disk *SDisk) GetStatus() string + func (disk *SDisk) GetSysTags() map[string]string + func (disk *SDisk) GetTemplateId() string + func (disk *SDisk) IsEmulated() bool + func (disk *SDisk) Rebuild(ctx context.Context) error + func (disk *SDisk) Refresh() error + func (disk *SDisk) Reset(ctx context.Context, snapshotId string) (string, error) + func (disk *SDisk) Resize(ctx context.Context, sizeMb int64) error + type SDiskOffering struct + AllocatorStrategy string + DiskSize int + State string + Type string + type SEipAddress struct + GuestIP string + State string + VMNicUUID string + VipIP string + VipUUID string + func (eip *SEipAddress) Associate(conf *cloudprovider.AssociateConfig) error + func (eip *SEipAddress) ChangeBandwidth(bw int) error + func (eip *SEipAddress) Delete() error + func (eip *SEipAddress) Dissociate() error + func (eip *SEipAddress) GetAssociationExternalId() string + func (eip *SEipAddress) GetAssociationType() string + func (eip *SEipAddress) GetBandwidth() int + func (eip *SEipAddress) GetBillingType() string + func (eip *SEipAddress) GetCreatedAt() time.Time + func (eip *SEipAddress) GetExpiredAt() time.Time + func (eip *SEipAddress) GetGlobalId() string + func (eip *SEipAddress) GetINetworkId() string + func (eip *SEipAddress) GetId() string + func (eip *SEipAddress) GetInternetChargeType() string + func (eip *SEipAddress) GetIpAddr() string + func (eip *SEipAddress) GetMode() string + func (eip *SEipAddress) GetName() string + func (eip *SEipAddress) GetProjectId() string + func (eip *SEipAddress) GetStatus() string + func (eip *SEipAddress) IsEmulated() bool + func (eip *SEipAddress) Refresh() error + type SHost struct + AvailableCPUCapacity int + AvailableMemoryCapacity int + CPUNum int + CPUSockets int + ClusterUUID string + HypervisorType string + ManagementIP string + SSHPort int + State string + Status string + TotalCPUCapacity int + TotalMemoryCapacity int + Username string + ZoneUUID string + func (host *SHost) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error) + func (host *SHost) GetAccessIp() string + func (host *SHost) GetAccessMac() string + func (host *SHost) GetCpuCmtbound() float32 + func (host *SHost) GetCpuCount() int + func (host *SHost) GetCpuDesc() string + func (host *SHost) GetCpuMhz() int + func (host *SHost) GetEnabled() bool + func (host *SHost) GetGlobalId() string + func (host *SHost) GetHostStatus() string + func (host *SHost) GetHostType() string + func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error) + func (host *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (host *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (host *SHost) GetIVMById(instanceId string) (cloudprovider.ICloudVM, error) + func (host *SHost) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (host *SHost) GetId() string + func (host *SHost) GetIsMaintenance() bool + func (host *SHost) GetMemCmtbound() float32 + func (host *SHost) GetMemSizeMB() int + func (host *SHost) GetName() string + func (host *SHost) GetNodeCount() int8 + func (host *SHost) GetReservedMemoryMb() int + func (host *SHost) GetSN() string + func (host *SHost) GetStatus() string + func (host *SHost) GetStorageSizeMB() int64 + func (host *SHost) GetStorageType() string + func (host *SHost) GetSysInfo() jsonutils.JSONObject + func (host *SHost) GetVersion() string + func (host *SHost) IsEmulated() bool + func (host *SHost) Refresh() error + type SHostRoute struct + ID int + L3NetworkUuid string + Nexthop string + Prefix string + type SImage struct + ActualSize int + BackupStorageRefs []SBackupStorageRef + CreateDate time.Time + Description string + Format string + LastOpDate time.Time + MD5Sum string + MediaType string + Name string + Platform string + Size int + State string + Status string + System bool + Type string + URL string + UUID string + func (image *SImage) Delete(ctx context.Context) error + func (image *SImage) GetBios() cloudprovider.TBiosType + func (image *SImage) GetCreatedAt() time.Time + func (image *SImage) GetFullOsName() string + func (image *SImage) GetGlobalId() string + func (image *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache + func (image *SImage) GetId() string + func (image *SImage) GetImageFormat() string + func (image *SImage) GetImageStatus() string + func (image *SImage) GetImageType() cloudprovider.TImageType + func (image *SImage) GetMinOsDiskSizeGb() int + func (image *SImage) GetMinRamSizeMb() int + func (image *SImage) GetName() string + func (image *SImage) GetOsArch() string + func (image *SImage) GetOsDist() string + func (image *SImage) GetOsLang() string + func (image *SImage) GetOsType() cloudprovider.TOsType + func (image *SImage) GetOsVersion() string + func (image *SImage) GetSizeByte() int64 + func (image *SImage) GetStatus() string + func (image *SImage) IsEmulated() bool + func (image *SImage) Refresh() error + type SImageServer struct + AttachedZoneUUIDs []string + AvailableCapacity int + Hostname string + SSHPort int + State string + Status string + TotalCapacity int + Type string + URL string + Username string + type SInstance struct + AllVolumes []SDisk + CPUNum int + CPUSpeed int + ClusterUUID string + DefaultL3NetworkUUID string + HostUUID string + HypervisorType string + InstanceOfferingUUID string + InternalID string + LastHostUUID string + MemorySize int + Platform string + RootVolumeUUID string + State string + Type string + VMCdRoms []SInstanceCdrome + VMNics []SInstanceNic + ZoneUUID string + func (instance *SInstance) AttachDisk(ctx context.Context, diskId string) error + func (instance *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error + func (instance *SInstance) DeleteVM(ctx context.Context) error + func (instance *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error + func (instance *SInstance) DetachDisk(ctx context.Context, diskId string) error + func (instance *SInstance) GetBillingType() string + func (instance *SInstance) GetBios() cloudprovider.TBiosType + func (instance *SInstance) GetBootOrder() string + func (instance *SInstance) GetCreatedAt() time.Time + func (instance *SInstance) GetError() error + func (instance *SInstance) GetExpiredAt() time.Time + func (instance *SInstance) GetFullOsName() string + func (instance *SInstance) GetGlobalId() string + func (instance *SInstance) GetHostname() string + func (instance *SInstance) GetHypervisor() string + func (instance *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error) + func (instance *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error) + func (instance *SInstance) GetIHost() cloudprovider.ICloudHost + func (instance *SInstance) GetIHostId() string + func (instance *SInstance) GetINics() ([]cloudprovider.ICloudNic, error) + func (instance *SInstance) GetId() string + func (instance *SInstance) GetInstanceType() string + func (instance *SInstance) GetMachine() string + func (instance *SInstance) GetName() string + func (instance *SInstance) GetOsArch() string + func (instance *SInstance) GetOsDist() string + func (instance *SInstance) GetOsLang() string + func (instance *SInstance) GetOsType() cloudprovider.TOsType + func (instance *SInstance) GetOsVersion() string + func (instance *SInstance) GetProjectId() string + func (instance *SInstance) GetSecurityGroupIds() ([]string, error) + func (instance *SInstance) GetStatus() string + func (instance *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error) + func (instance *SInstance) GetVcpuCount() int + func (instance *SInstance) GetVdi() string + func (instance *SInstance) GetVga() string + func (instance *SInstance) GetVmemSizeMB() int + func (instance *SInstance) IsEmulated() bool + func (instance *SInstance) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error) + func (instance *SInstance) Refresh() error + func (instance *SInstance) Renew(bc billing.SBillingCycle) error + func (instance *SInstance) SetSecurityGroups(secgroupIds []string) error + func (instance *SInstance) StartVM(ctx context.Context) error + func (instance *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error + func (instance *SInstance) UpdateUserData(userData string) error + func (instance *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error + type SInstanceCdrome struct + type SInstanceNic struct + DeviceID int + HypervisorType string + IP string + IPVersion int + InternalName string + L3NetworkUUID string + Mac string + UUID string + UsedIps []string + VMInstanceUUID string + func (nic *SInstanceNic) GetDriver() string + func (nic *SInstanceNic) GetINetworkId() string + func (nic *SInstanceNic) GetIP() string + func (nic *SInstanceNic) GetId() string + func (nic *SInstanceNic) GetMAC() string + func (nic *SInstanceNic) InClassicNetwork() bool + type SInstanceOffering struct + AllocatorStrategy string + CPUNum int + CPUSpeed int + MemorySize int + State string + Type string + func (offering *SInstanceOffering) Delete() error + func (offering *SInstanceOffering) GetAttachedDiskCount() int + func (offering *SInstanceOffering) GetAttachedDiskSizeGB() int + func (offering *SInstanceOffering) GetAttachedDiskType() string + func (offering *SInstanceOffering) GetCpuArch() string + func (offering *SInstanceOffering) GetCpuCoreCount() int + func (offering *SInstanceOffering) GetDataDiskMaxCount() int + func (offering *SInstanceOffering) GetDataDiskTypes() string + func (offering *SInstanceOffering) GetGlobalId() string + func (offering *SInstanceOffering) GetGpuAttachable() bool + func (offering *SInstanceOffering) GetGpuCount() string + func (offering *SInstanceOffering) GetGpuMaxCount() int + func (offering *SInstanceOffering) GetGpuSpec() string + func (offering *SInstanceOffering) GetId() string + func (offering *SInstanceOffering) GetInstanceTypeCategory() string + func (offering *SInstanceOffering) GetInstanceTypeFamily() string + func (offering *SInstanceOffering) GetMemorySizeMB() int + func (offering *SInstanceOffering) GetName() string + func (offering *SInstanceOffering) GetNicMaxCount() int + func (offering *SInstanceOffering) GetNicType() string + func (offering *SInstanceOffering) GetOsName() string + func (offering *SInstanceOffering) GetPostpaidStatus() string + func (offering *SInstanceOffering) GetPrepaidStatus() string + func (offering *SInstanceOffering) GetStatus() string + func (offering *SInstanceOffering) GetSysDiskMaxSizeGB() int + func (offering *SInstanceOffering) GetSysDiskMinSizeGB() int + func (offering *SInstanceOffering) GetSysDiskResizable() bool + func (offering *SInstanceOffering) GetSysDiskType() string + func (offering *SInstanceOffering) IsEmulated() bool + func (offering *SInstanceOffering) Refresh() error + type SInterfaceIP struct + IP string + IPRangeUUID string + L3NetworkUUID string + func (ip *SInterfaceIP) GetGlobalId() string + func (ip *SInterfaceIP) GetINetworkId() string + func (ip *SInterfaceIP) GetIP() string + func (ip *SInterfaceIP) IsPrimary() bool + type SL3Network struct + Category bool + DNS []string + HostRoute []SHostRoute + IPVersion int + L2NetworkUUID string + Networks []SNetwork + State string + System bool + Type string + ZoneUUID string + type SLocalStorage struct + AvailableCapacity int64 + AvailablePhysicalCapacity int64 + HostUUID string + TotalCapacity int64 + TotalPhysicalCapacity int64 + func (storage *SLocalStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error) + func (storage *SLocalStorage) GetCapacityMB() int64 + func (storage *SLocalStorage) GetCapacityUsedMB() int64 + func (storage *SLocalStorage) GetEnabled() bool + func (storage *SLocalStorage) GetGlobalId() string + func (storage *SLocalStorage) GetIDiskById(diskId string) (cloudprovider.ICloudDisk, error) + func (storage *SLocalStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error) + func (storage *SLocalStorage) GetIStoragecache() cloudprovider.ICloudStoragecache + func (storage *SLocalStorage) GetIZone() cloudprovider.ICloudZone + func (storage *SLocalStorage) GetId() string + func (storage *SLocalStorage) GetMediumType() string + func (storage *SLocalStorage) GetMountPoint() string + func (storage *SLocalStorage) GetName() string + func (storage *SLocalStorage) GetStatus() string + func (storage *SLocalStorage) GetStorageConf() jsonutils.JSONObject + func (storage *SLocalStorage) GetStorageType() string + func (storage *SLocalStorage) IsEmulated() bool + func (storage *SLocalStorage) IsSysDiskStore() bool + func (storage *SLocalStorage) Refresh() error + type SNetwork struct + EndIP string + Gateway string + IPVersion int + L3NetworkUUID string + Netmask string + NetworkCIDR string + PrefixLen int + StartIP string + func (network *SNetwork) Contains(ipAddr string) bool + func (network *SNetwork) Delete() error + func (network *SNetwork) GetAllocTimeoutSeconds() int + func (network *SNetwork) GetGateway() string + func (network *SNetwork) GetGlobalId() string + func (network *SNetwork) GetIPRange() netutils.IPV4AddrRange + func (network *SNetwork) GetIWire() cloudprovider.ICloudWire + func (network *SNetwork) GetId() string + func (network *SNetwork) GetIpEnd() string + func (network *SNetwork) GetIpMask() int8 + func (network *SNetwork) GetIpStart() string + func (network *SNetwork) GetIsPublic() bool + func (network *SNetwork) GetName() string + func (network *SNetwork) GetProjectId() string + func (network *SNetwork) GetServerType() string + func (network *SNetwork) GetStatus() string + func (network *SNetwork) IsEmulated() bool + func (network *SNetwork) Refresh() error + func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope + type SNetworkService struct + CentralizedDNS []string + DHCP []string + DNS []string + Eip []string + HostRoute []string + IPsec []string + LoadBalancer []string + PortForwarding []string + SNAT []string + SecurityGroup []string + Userdata []string + VRouterRoute []string + VipQos []string + type SNetworkServiceProvider struct + AttachedL2NetworkUUIDs []string + NetworkServiceTypes []string + Type string + type SNetworkServiceRef struct + L3NetworkUUID string + NetworkServiceProviderUUID string + NetworkServiceType string + type SPool struct + AvailableCapacity int64 + PoolName string + PrimaryStorageUUID string + ReplicatedSize int64 + TotalCapacity int64 + Type TCephPoolType + UUID string + UsedCapacity int64 + type SQuota struct + IdentityType string + IdentityUuid string + Name string + Uuid string + Value int + func (q *SQuota) GetCurrentQuotaUsedCount() int + func (q *SQuota) GetDesc() string + func (q *SQuota) GetGlobalId() string + func (q *SQuota) GetMaxQuotaCount() int + func (q *SQuota) GetName() string + func (q *SQuota) GetQuotaType() string + type SRegion struct + Name string + func (region *SRegion) AssignSecurityGroup(instanceId, secgroupId string) error + func (region *SRegion) AssociateEip(instanceId, eipId string) error + func (region *SRegion) AttachDisk(instanceId string, diskId string) error + func (region *SRegion) AttachServiceForl3Network(l3Id string, services []string) error + func (region *SRegion) ChangeConfig(instanceId, offeringId string) error + func (region *SRegion) CreateDisk(name string, storageId string, hostId string, poolName string, sizeGb int, ...) (*SDisk, error) + func (region *SRegion) CreateDiskOffering(diskSizeGB int) (*SDiskOffering, error) + func (region *SRegion) CreateEIP(eip *cloudprovider.SEip) (cloudprovider.ICloudEIP, error) + func (region *SRegion) CreateEip(name string, vipId string, desc string) (*SEipAddress, error) + func (region *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error) + func (region *SRegion) CreateISku(opts *cloudprovider.SServerSkuCreateOption) (cloudprovider.ICloudSku, error) + func (region *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error) + func (region *SRegion) CreateImage(zoneId string, imageName, format, osType, desc string, reader io.Reader, ...) (*SImage, error) + func (region *SRegion) CreateInstance(desc *cloudprovider.SManagedVMCreateConfig, l3Id, zoneId string, ...) (*SInstance, error) + func (region *SRegion) CreateInstanceOffering(name string, cpu int, memoryMb int, offeringType string) (*SInstanceOffering, error) + func (region *SRegion) CreateNetwork(name string, cidr string, wireId string, desc string) (*SNetwork, error) + func (region *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (*SSecurityGroup, error) + func (region *SRegion) CreateSecurityGroupRule(secgroupId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) error + func (region *SRegion) CreateSnapshot(name, diskId, desc string) (*SSnapshot, error) + func (region *SRegion) CreateVirtualIP(name, desc, ip string, l3Id string) (*SVirtualIP, error) + func (region *SRegion) DeleteDisk(diskId string) error + func (region *SRegion) DeleteDiskOffering(offerId string) error + func (region *SRegion) DeleteISkuByName(name string) error + func (region *SRegion) DeleteImage(imageId string) error + func (region *SRegion) DeleteNetwork(networkId string) error + func (region *SRegion) DeleteOffering(offeringId string) error + func (region *SRegion) DeleteSecurityGroupRules(ruleIds []string) error + func (region *SRegion) DeleteSnapshot(snapshotId string) error + func (region *SRegion) DeleteVM(instanceId string) error + func (region *SRegion) DeleteVirtualIP(vipId string) error + func (region *SRegion) DetachDisk(instanceId, diskId string) error + func (region *SRegion) DisassociateEip(eipId string) error + func (region *SRegion) ExpungeDisk(diskId string) error + func (region *SRegion) GetBackupStorageUUID(zondId string) ([]string, error) + func (region *SRegion) GetBootOrder(instanceId string) string + func (region *SRegion) GetCapabilities() []string + func (region *SRegion) GetClient() *SZStackClient + func (region *SRegion) GetCloudEnv() string + func (region *SRegion) GetClusterIds() ([]string, error) + func (region *SRegion) GetClusters() ([]SCluster, error) + func (region *SRegion) GetConfigrations() ([]SConfiguration, error) + func (region *SRegion) GetDisk(diskId string) (*SDisk, error) + func (region *SRegion) GetDiskOfferings(diskSizeGB int) ([]SDiskOffering, error) + func (region *SRegion) GetDiskWithStorage(diskId string) (*SDisk, error) + func (region *SRegion) GetDisks(storageId string, diskIds []string, diskType string) ([]SDisk, error) + func (region *SRegion) GetEip(eipId string) (*SEipAddress, error) + func (region *SRegion) GetEips(eipId, instanceId string) ([]SEipAddress, error) + func (region *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo + func (region *SRegion) GetGlobalId() string + func (region *SRegion) GetHost(hostId string) (*SHost, error) + func (region *SRegion) GetHosts(zoneId string, hostId string) ([]SHost, error) + func (region *SRegion) GetI18n() cloudprovider.SModelI18nTable + func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error) + func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error) + func (region *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error) + func (region *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error) + func (region *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error) + func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error) + func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error) + func (region *SRegion) GetISkus() ([]cloudprovider.ICloudSku, error) + func (region *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error) + func (region *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error) + func (region *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (region *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error) + func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error) + func (region *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (region *SRegion) GetIVpcById(vpcId string) (cloudprovider.ICloudVpc, error) + func (region *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error) + func (region *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error) + func (region *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error) + func (region *SRegion) GetId() string + func (region *SRegion) GetImage(imageId string) (*SImage, error) + func (region *SRegion) GetImageServers(zoneId, serverId string) ([]SImageServer, error) + func (region *SRegion) GetImages(zoneId string, imageId string) ([]SImage, error) + func (region *SRegion) GetInstance(instanceId string) (*SInstance, error) + func (region *SRegion) GetInstanceConsoleInfo(instnaceId string) (*SConsoleInfo, error) + func (region *SRegion) GetInstanceConsolePassword(instnaceId string) (string, error) + func (region *SRegion) GetInstanceOffering(offerId string) (*SInstanceOffering, error) + func (region *SRegion) GetInstanceOfferingByType(instanceType string) (*SInstanceOffering, error) + func (region *SRegion) GetInstanceOfferings(offerId string, name string, cpu int, memorySizeMb int) ([]SInstanceOffering, error) + func (region *SRegion) GetInstances(hostId string, instanceId string, nicId string) ([]SInstance, error) + func (region *SRegion) GetL3Network(l3Id string) (*SL3Network, error) + func (region *SRegion) GetL3Networks(zoneId string, wireId string, l3Id string) ([]SL3Network, error) + func (region *SRegion) GetLocalStorage(storageId string, hostId string) (*SLocalStorage, error) + func (region *SRegion) GetLocalStorages(storageId string, hostId string) ([]SLocalStorage, error) + func (region *SRegion) GetName() string + func (region *SRegion) GetNetwork(zoneId, wireId, l3Id, networkId string) (*SNetwork, error) + func (region *SRegion) GetNetworkId(vip *SVirtualIP) string + func (region *SRegion) GetNetworkServiceProviders(Type string) ([]SNetworkServiceProvider, error) + func (region *SRegion) GetNetworkServiceRef(l3Id string, Type string) ([]SNetworkServiceRef, error) + func (region *SRegion) GetNetworkServices() (*SNetworkService, error) + func (region *SRegion) GetNetworks(zoneId string, wireId string, l3Id string, networkId string) ([]SNetwork, error) + func (region *SRegion) GetProvider() string + func (region *SRegion) GetQuotas() ([]SQuota, error) + func (region *SRegion) GetResourceSysTags(tagId string, resourceType string, resourceId string, tag string) ([]SSysTag, error) + func (region *SRegion) GetSecurityGroup(secgroupId string) (*SSecurityGroup, error) + func (region *SRegion) GetSecurityGroups(secgroupId string, instanceId string, name string) ([]SSecurityGroup, error) + func (region *SRegion) GetSnapshot(snapshotId string) (*SSnapshot, error) + func (region *SRegion) GetSnapshots(snapshotId string, diskId string) ([]SSnapshot, error) + func (region *SRegion) GetStatus() string + func (region *SRegion) GetStorage(storageId string) (*SStorage, error) + func (region *SRegion) GetStorages(zoneId, clusterId, storageId string) ([]SStorage, error) + func (region *SRegion) GetUserAccount(name string) ([]SUserAccount, error) + func (region *SRegion) GetVirtualIP(vipId string) (*SVirtualIP, error) + func (region *SRegion) GetVirtualIPs(vipId string) ([]SVirtualIP, error) + func (region *SRegion) GetVpc() *SVpc + func (region *SRegion) GetWire(wireId string) (*SWire, error) + func (region *SRegion) GetWires(zoneId string, wireId string, clusterId string) ([]SWire, error) + func (region *SRegion) GetZone(zoneId string) (*SZone, error) + func (region *SRegion) GetZones(zoneId string) ([]SZone, error) + func (region *SRegion) IsEmulated() bool + func (region *SRegion) RebuildDisk(diskId string) error + func (region *SRegion) RebuildRoot(instanceId, imageId string, sysSizeGB int) (string, error) + func (region *SRegion) Refresh() error + func (region *SRegion) RemoveNetworkService(l3Id string, service string) error + func (region *SRegion) ResetDisks(snapshotId string) (jsonutils.JSONObject, error) + func (region *SRegion) ResizeDisk(diskId string, sizeMb int64) error + func (region *SRegion) RevokeSecurityGroup(instanceId, secgroupId string) error + func (region *SRegion) StartVM(instanceId string) error + func (region *SRegion) StopVM(instanceId string, isForce bool) error + func (region *SRegion) UpdateVM(instanceId string, params jsonutils.JSONObject) error + func (self *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error) + func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error) + func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error) + type SSecurityGroup struct + AttachedL3NetworkUUIDs []string + IPVersion int + InternalID int + Rules []SSecurityGroupRule + State string + func (self *SSecurityGroup) Delete() error + func (self *SSecurityGroup) GetDescription() string + func (self *SSecurityGroup) GetGlobalId() string + func (self *SSecurityGroup) GetId() string + func (self *SSecurityGroup) GetName() string + func (self *SSecurityGroup) GetProjectId() string + func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error) + func (self *SSecurityGroup) GetStatus() string + func (self *SSecurityGroup) GetVpcId() string + func (self *SSecurityGroup) Refresh() error + type SSecurityGroupRule struct + AllowedCIDR string + EndPort int + IPVersion int + Protocol string + RemoteSecurityGroupUUID string + SecurityGroupUUID string + StartPort int + State string + Type string + func (self *SSecurityGroupRule) Delete() error + func (self *SSecurityGroupRule) GetAction() secrules.TSecurityRuleAction + func (self *SSecurityGroupRule) GetCIDRs() []string + func (self *SSecurityGroupRule) GetDescription() string + func (self *SSecurityGroupRule) GetDirection() secrules.TSecurityRuleDirection + func (self *SSecurityGroupRule) GetGlobalId() string + func (self *SSecurityGroupRule) GetPorts() string + func (self *SSecurityGroupRule) GetPriority() int + func (self *SSecurityGroupRule) GetProtocol() string + func (self *SSecurityGroupRule) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error + type SSnapshot struct + Format string + Latest bool + PrimaryStorageUUID string + Size int + State string + Status string + VolumeType string + VolumeUUID string + func (snapshot *SSnapshot) Delete() error + func (snapshot *SSnapshot) GetDiskId() string + func (snapshot *SSnapshot) GetDiskType() string + func (snapshot *SSnapshot) GetGlobalId() string + func (snapshot *SSnapshot) GetId() string + func (snapshot *SSnapshot) GetName() string + func (snapshot *SSnapshot) GetProjectId() string + func (snapshot *SSnapshot) GetSizeMb() int32 + func (snapshot *SSnapshot) GetStatus() string + func (snapshot *SSnapshot) IsEmulated() bool + func (snapshot *SSnapshot) Refresh() error + type SStorage struct + AttachedClusterUUIDs []string + AvailableCapacity int + AvailablePhysicalCapacity int + Datastore string + MountPath string + Pools []SPool + State string + Status string + TotalCapacity int64 + TotalPhysicalCapacity int + Type TStorageType + URL string + VCenterUUID string + ZoneUUID string + func (storage *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error) + func (storage *SStorage) GetCapacityMB() int64 + func (storage *SStorage) GetCapacityUsedMB() int64 + func (storage *SStorage) GetDataPoolName() (string, error) + func (storage *SStorage) GetEnabled() bool + func (storage *SStorage) GetGlobalId() string + func (storage *SStorage) GetIDiskById(diskId string) (cloudprovider.ICloudDisk, error) + func (storage *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error) + func (storage *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache + func (storage *SStorage) GetIZone() cloudprovider.ICloudZone + func (storage *SStorage) GetId() string + func (storage *SStorage) GetMediumType() string + func (storage *SStorage) GetMountPoint() string + func (storage *SStorage) GetName() string + func (storage *SStorage) GetStatus() string + func (storage *SStorage) GetStorageConf() jsonutils.JSONObject + func (storage *SStorage) GetStorageType() string + func (storage *SStorage) IsSysDiskStore() bool + type SStoragecache struct + ZoneId string + func (scache *SStoragecache) GetGlobalId() string + func (scache *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error) + func (scache *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error) + func (scache *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error) + func (scache *SStoragecache) GetId() string + func (scache *SStoragecache) GetName() string + func (scache *SStoragecache) GetPath() string + func (scache *SStoragecache) GetStatus() string + func (scache *SStoragecache) IsEmulated() bool + func (scache *SStoragecache) Refresh() error + func (scache *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, ...) (string, error) + type SSysTag struct + Inherent bool + ResourceType string + ResourceUUID string + Tag string + Type string + UUID string + type SUserAccount struct + Uuid string + type SVersion struct + Version string + type SVirtualIP struct + Gateway string + IP string + IPRangeUUID string + L3NetworkUUID string + Netmask string + PeerL3NetworkUuids []string + PrefixLen int + ServiceProvider string + State string + UseFor string + UsedIPUUID string + func (vip *SVirtualIP) GetAssociateId() string + func (vip *SVirtualIP) GetAssociateType() string + func (vip *SVirtualIP) GetGlobalId() string + func (vip *SVirtualIP) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error) + func (vip *SVirtualIP) GetId() string + func (vip *SVirtualIP) GetMacAddress() string + func (vip *SVirtualIP) GetName() string + func (vip *SVirtualIP) GetStatus() string + type SVpc struct + func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error) + func (vpc *SVpc) Delete() error + func (vpc *SVpc) GetCidrBlock() string + func (vpc *SVpc) GetGlobalId() string + func (vpc *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error) + func (vpc *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error) + func (vpc *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error) + func (vpc *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error) + func (vpc *SVpc) GetId() string + func (vpc *SVpc) GetIsDefault() bool + func (vpc *SVpc) GetName() string + func (vpc *SVpc) GetRegion() cloudprovider.ICloudRegion + func (vpc *SVpc) GetStatus() string + func (vpc *SVpc) IsEmulated() bool + func (vpc *SVpc) Refresh() error + type SWire struct + AttachedClusterUUIDs []string + PhysicalInterface string + Type string + Vlan int + ZoneUUID string + func (wire *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error) + func (wire *SWire) GetBandwidth() int + func (wire *SWire) GetGlobalId() string + func (wire *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error) + func (wire *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error) + func (wire *SWire) GetIVpc() cloudprovider.ICloudVpc + func (wire *SWire) GetIZone() cloudprovider.ICloudZone + func (wire *SWire) GetId() string + func (wire *SWire) GetName() string + func (wire *SWire) GetStatus() string + func (wire *SWire) IsEmulated() bool + func (wire *SWire) Refresh() error + type SZStackClient struct + func NewZStackClient(cfg *ZstackClientConfig) (*SZStackClient, error) + func (cli *SZStackClient) GetCloudRegionExternalIdPrefix() string + func (cli *SZStackClient) GetIProjects() ([]cloudprovider.ICloudProject, error) + func (cli *SZStackClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error) + func (cli *SZStackClient) GetIRegions() []cloudprovider.ICloudRegion + func (cli *SZStackClient) GetRegion(regionId string) *SRegion + func (cli *SZStackClient) GetRegions() []SRegion + func (cli *SZStackClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error) + func (self *SZStackClient) GetCapabilities() []string + func (self *SZStackClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SZStackClient) GetHostMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SZStackClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SZStackClient) GetMonitorData(name string, namespace string, since time.Time, until time.Time) ([]DataPoint, error) + func (self *SZStackClient) GetVersion() (*SVersion, error) + type SZone struct + State string + Type string + func (zone *SZone) GetGlobalId() string + func (zone *SZone) GetI18n() cloudprovider.SModelI18nTable + func (zone *SZone) GetIHostById(hostId string) (cloudprovider.ICloudHost, error) + func (zone *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error) + func (zone *SZone) GetIRegion() cloudprovider.ICloudRegion + func (zone *SZone) GetIStorageById(storageId string) (cloudprovider.ICloudStorage, error) + func (zone *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (zone *SZone) GetIWires() ([]cloudprovider.ICloudWire, error) + func (zone *SZone) GetId() string + func (zone *SZone) GetName() string + func (zone *SZone) GetStatus() string + func (zone *SZone) IsEmulated() bool + func (zone *SZone) Refresh() error + type TCephPoolType string + type TStorageType string + type ZStackBasic struct + Description string + Name string + UUID string + type ZStackTags struct + func (self *ZStackTags) GetSysTags() map[string]string + func (self *ZStackTags) GetTags() (map[string]string, error) + func (self *ZStackTags) SetTags(tags map[string]string, replace bool) error + type ZStackTime struct + CreateDate time.Time + LastOpDate time.Time + type ZstackClientConfig struct + func NewZstackClientConfig(authURL, username, password string) *ZstackClientConfig + func (cfg *ZstackClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *ZstackClientConfig + func (cfg *ZstackClientConfig) Debug(debug bool) *ZstackClientConfig