Documentation ¶
Index ¶
- Constants
- Variables
- type DataPoint
- type ImageServers
- type Label
- type SBackupStorageRef
- type SCluster
- type SConfiguration
- type SConsoleInfo
- type SDataPoint
- type SDisk
- 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
- type SEipAddress
- 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
- 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
- type SImage
- 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
- type SInstance
- 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
- type SInstanceNic
- type SInstanceOffering
- 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
- type SL3Network
- type SLocalStorage
- 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
- 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 (self *SNetwork) GetPublicScope() rbacscope.TRbacScope
- func (network *SNetwork) GetServerType() string
- func (network *SNetwork) GetStatus() string
- func (network *SNetwork) IsEmulated() bool
- func (network *SNetwork) Refresh() error
- type SNetworkService
- type SNetworkServiceProvider
- type SNetworkServiceRef
- type SPool
- type SQuota
- type SRegion
- 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) (*SSecurityGroupRule, 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 (self *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, 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 (self *SRegion) GetISecurityGroups() ([]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 (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, 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
- type SSecurityGroup
- func (self *SSecurityGroup) CreateRule(opts *cloudprovider.SecurityGroupRuleCreateOptions) (cloudprovider.ISecurityGroupRule, error)
- 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
- 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
- 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
- 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
- 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
- type SUserAccount
- type SVersion
- type SVirtualIP
- 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
- func (vpc *SVpc) Delete() error
- func (vpc *SVpc) GetCidrBlock() string
- func (vpc *SVpc) GetGlobalId() string
- func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
- 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
- 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
- func (self *SZStackClient) GetCapabilities() []string
- func (cli *SZStackClient) GetCloudRegionExternalIdPrefix() string
- func (self *SZStackClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (self *SZStackClient) GetHostMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
- func (cli *SZStackClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
- func (cli *SZStackClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
- func (cli *SZStackClient) GetIRegions() []cloudprovider.ICloudRegion
- 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 (cli *SZStackClient) GetRegion(regionId string) *SRegion
- func (cli *SZStackClient) GetRegions() []SRegion
- func (cli *SZStackClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
- func (self *SZStackClient) GetVersion() (*SVersion, error)
- type SZone
- 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
- type TStorageType
- type ZStackBasic
- type ZStackTags
- type ZStackTime
- type ZstackClientConfig
Constants ¶
View Source
const ( StorageTypeCeph = TStorageType("Ceph") StorageTypeLocal = TStorageType("LocalStorage") StorageTypeVCenter = TStorageType("VCenter") CephPoolTypeData = TCephPoolType("Data") CephPoolTypeRoot = TCephPoolType("Root") CephPoolTypeImageCache = TCephPoolType("ImageCache") )
View Source
const ( CLOUD_PROVIDER_ZSTACK = api.CLOUD_PROVIDER_ZSTACK ZSTACK_DEFAULT_REGION = "ZStack" ZSTACK_API_VERSION = "v1" )
Variables ¶
View Source
var (
SkipEsxi bool = true
)
Functions ¶
This section is empty.
Types ¶
type ImageServers ¶
type ImageServers []SImageServer
func (ImageServers) Len ¶
func (v ImageServers) Len() int
func (ImageServers) Less ¶
func (v ImageServers) Less(i, j int) bool
func (ImageServers) Swap ¶
func (v ImageServers) Swap(i, j int)
type SBackupStorageRef ¶
type SCluster ¶
type SCluster struct { ZStackBasic Description string `json:"description"` State string `json:"State"` HypervisorType string `json:"hypervisorType"` ZStackTime ZoneUUID string `json:"zoneUuid"` Type string `json:"type"` }
type SConfiguration ¶
type SConsoleInfo ¶
type SDataPoint ¶
type SDataPoint struct {
DataPoints []DataPoint `json:"data"`
}
type SDisk ¶
type SDisk struct { multicloud.SDisk ZStackTags ZStackBasic PrimaryStorageUUID string `json:"primaryStorageUuid"` VMInstanceUUID string `json:"vmInstanceUuid"` DiskOfferingUUID string `json:"diskOfferingUuid"` RootImageUUID string `json:"rootImageUuid"` InstallPath string `json:"installPath"` Type string `json:"type"` Format string `json:"format"` Size int `json:"size"` ActualSize int `json:"actualSize"` DeviceID float32 `json:"deviceId"` State string `json:"state"` Status string `json:"status"` ZStackTime // contains filtered or unexported fields }
func (*SDisk) CreateISnapshot ¶
func (disk *SDisk) CreateISnapshot(ctx context.Context, name, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetAccessPath ¶
func (*SDisk) GetBillingType ¶
func (*SDisk) GetCacheMode ¶
func (*SDisk) GetCreatedAt ¶
func (*SDisk) GetDiskFormat ¶
func (*SDisk) GetDiskSizeMB ¶
func (*SDisk) GetDiskType ¶
func (*SDisk) GetExpiredAt ¶
func (*SDisk) GetFsFormat ¶
func (*SDisk) GetGlobalId ¶
func (*SDisk) GetISnapshot ¶
func (disk *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetISnapshots ¶
func (disk *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetIStorage ¶
func (disk *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
func (*SDisk) GetIStorageId ¶
func (*SDisk) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetProjectId ¶
func (*SDisk) GetSysTags ¶
func (*SDisk) GetTemplateId ¶
func (*SDisk) IsEmulated ¶
type SDiskOffering ¶
type SDiskOffering struct { ZStackBasic DiskSize int `json:"diskSize"` Type string `json:"type"` State string `json:"state"` AllocatorStrategy string `json:"allocatorStrategy"` }
type SEipAddress ¶
type SEipAddress struct { multicloud.SEipBase ZStackTags ZStackBasic VMNicUUID string `json:"vmNicUuid"` VipUUID string `json:"vipUuid"` State string `json:"state"` VipIP string `json:"vipIp"` GuestIP string `json:"guestIp"` ZStackTime // contains filtered or unexported fields }
func (*SEipAddress) Associate ¶
func (eip *SEipAddress) Associate(conf *cloudprovider.AssociateConfig) error
func (*SEipAddress) ChangeBandwidth ¶
func (eip *SEipAddress) ChangeBandwidth(bw int) error
func (*SEipAddress) Delete ¶
func (eip *SEipAddress) Delete() error
func (*SEipAddress) Dissociate ¶
func (eip *SEipAddress) Dissociate() error
func (*SEipAddress) GetAssociationExternalId ¶
func (eip *SEipAddress) GetAssociationExternalId() string
func (*SEipAddress) GetAssociationType ¶
func (eip *SEipAddress) GetAssociationType() string
func (*SEipAddress) GetBandwidth ¶
func (eip *SEipAddress) GetBandwidth() int
func (*SEipAddress) GetBillingType ¶
func (eip *SEipAddress) GetBillingType() string
func (*SEipAddress) GetCreatedAt ¶
func (eip *SEipAddress) GetCreatedAt() time.Time
func (*SEipAddress) GetExpiredAt ¶
func (eip *SEipAddress) GetExpiredAt() time.Time
func (*SEipAddress) GetGlobalId ¶
func (eip *SEipAddress) GetGlobalId() string
func (*SEipAddress) GetINetworkId ¶
func (eip *SEipAddress) GetINetworkId() string
func (*SEipAddress) GetId ¶
func (eip *SEipAddress) GetId() string
func (*SEipAddress) GetInternetChargeType ¶
func (eip *SEipAddress) GetInternetChargeType() string
func (*SEipAddress) GetIpAddr ¶
func (eip *SEipAddress) GetIpAddr() string
func (*SEipAddress) GetMode ¶
func (eip *SEipAddress) GetMode() string
func (*SEipAddress) GetName ¶
func (eip *SEipAddress) GetName() string
func (*SEipAddress) GetProjectId ¶
func (eip *SEipAddress) GetProjectId() string
func (*SEipAddress) GetStatus ¶
func (eip *SEipAddress) GetStatus() string
func (*SEipAddress) IsEmulated ¶
func (eip *SEipAddress) IsEmulated() bool
func (*SEipAddress) Refresh ¶
func (eip *SEipAddress) Refresh() error
type SHost ¶
type SHost struct { multicloud.SHostBase ZStackBasic Username string `json:"username"` SSHPort int `json:"sshPort"` ZoneUUID string `json:"zoneUuid"` ClusterUUID string `json:"clusterUuid"` ManagementIP string `json:"managementIp"` HypervisorType string `json:"hypervisorType"` State string `json:"state"` Status string `json:"status"` TotalCPUCapacity int `json:"totalCpuCapacity"` AvailableCPUCapacity int `json:"availableCpuCapacity"` CPUSockets int `json:"cpuSockets"` TotalMemoryCapacity int `json:"totalMemoryCapacity"` AvailableMemoryCapacity int `json:"availableMemoryCapacity"` CPUNum int `json:"cpuNum"` ZStackTime // contains filtered or unexported fields }
func (*SHost) CreateVM ¶
func (host *SHost) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
func (*SHost) GetAccessIp ¶
func (*SHost) GetAccessMac ¶
func (*SHost) GetCpuCmtbound ¶
func (*SHost) GetCpuCount ¶
func (*SHost) GetCpuDesc ¶
func (*SHost) GetEnabled ¶
func (*SHost) GetGlobalId ¶
func (*SHost) GetHostStatus ¶
func (*SHost) GetHostType ¶
func (*SHost) GetIHostNics ¶
func (host *SHost) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
func (*SHost) GetIStorageById ¶
func (host *SHost) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SHost) GetIStorages ¶
func (host *SHost) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SHost) GetIVMById ¶
func (host *SHost) GetIVMById(instanceId string) (cloudprovider.ICloudVM, error)
func (*SHost) GetIsMaintenance ¶
func (*SHost) GetMemCmtbound ¶
func (*SHost) GetMemSizeMB ¶
func (*SHost) GetNodeCount ¶
func (*SHost) GetReservedMemoryMb ¶
func (*SHost) GetStorageSizeMB ¶
func (*SHost) GetStorageType ¶
func (*SHost) GetSysInfo ¶
func (host *SHost) GetSysInfo() jsonutils.JSONObject
func (*SHost) GetVersion ¶
func (*SHost) IsEmulated ¶
type SHostRoute ¶
type SHostRoute struct { ID int L3NetworkUuid string `json:"l3NetworkUuid"` Prefix string Nexthop string ZStackTime }
type SImage ¶
type SImage struct { multicloud.SImageBase ZStackTags BackupStorageRefs []SBackupStorageRef `json:"backupStorageRefs"` ActualSize int `json:"actualSize"` CreateDate time.Time `json:"createDate"` Description string `json:"description"` Format string `json:"format"` LastOpDate time.Time `json:"lastOpDate"` MD5Sum string `json:"md5sum"` MediaType string `json:"mediaType"` Name string `json:"name"` Platform string `json:"platform"` Size int `json:"size"` State string `json:"state"` Status string `json:"Ready"` System bool `json:"system"` Type string `json:"type"` URL string `json:"url"` UUID string `json:"uuid"` // contains filtered or unexported fields }
func (*SImage) GetBios ¶
func (image *SImage) GetBios() cloudprovider.TBiosType
func (*SImage) GetCreatedAt ¶
func (*SImage) GetFullOsName ¶
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (image *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) GetImageFormat ¶
func (*SImage) GetImageStatus ¶
func (*SImage) GetImageType ¶
func (image *SImage) GetImageType() cloudprovider.TImageType
func (*SImage) GetMinOsDiskSizeGb ¶
func (*SImage) GetMinRamSizeMb ¶
func (*SImage) GetOsType ¶
func (image *SImage) GetOsType() cloudprovider.TOsType
func (*SImage) GetOsVersion ¶
func (*SImage) GetSizeByte ¶
func (*SImage) IsEmulated ¶
type SImageServer ¶
type SImageServer struct { ZStackBasic Hostname string `json:"hostname"` Username string `json:"username"` SSHPort int `json:"sshPort"` URL string `json:"url"` TotalCapacity int `json:"totalCapacity"` AvailableCapacity int `json:"availableCapacity"` Type string `json:"type"` State string `json:"state"` Status string `json:"status"` AttachedZoneUUIDs []string `json:"attachedZoneUuids"` ZStackTime }
type SInstance ¶
type SInstance struct { multicloud.SInstanceBase ZStackTags ZStackBasic ZoneUUID string `json:"zoneUuid"` ClusterUUID string `json:"clusterUuid"` HostUUID string `json:"hostUuid"` LastHostUUID string `json:"lastHostUuid"` RootVolumeUUID string `json:"rootVolumeUuid"` Platform string `json:"platform"` InstanceOfferingUUID string `json:"instanceOfferingUuid"` DefaultL3NetworkUUID string `json:"defaultL3NetworkUuid"` Type string `json:"type"` HypervisorType string `json:"hypervisorType"` MemorySize int `json:"memorySize"` CPUNum int `json:"cpuNum"` CPUSpeed int `json:"cpuSpeed"` State string `json:"state"` InternalID string `json:"internalId"` VMNics []SInstanceNic `json:"vmNics"` AllVolumes []SDisk `json:"allVolumes"` VMCdRoms []SInstanceCdrome `json:"vmCdRoms"` ZStackTime // contains filtered or unexported fields }
func (*SInstance) AttachDisk ¶
func (*SInstance) ChangeConfig ¶
func (instance *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
func (*SInstance) DeployVM ¶
func (instance *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error
func (*SInstance) DetachDisk ¶
func (*SInstance) GetBillingType ¶
func (*SInstance) GetBios ¶
func (instance *SInstance) GetBios() cloudprovider.TBiosType
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetCreatedAt ¶
func (*SInstance) GetExpiredAt ¶
func (*SInstance) GetFullOsName ¶
func (*SInstance) GetGlobalId ¶
func (*SInstance) GetHostname ¶
func (*SInstance) GetHypervisor ¶
func (*SInstance) GetIDisks ¶
func (instance *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SInstance) GetIHost ¶
func (instance *SInstance) GetIHost() cloudprovider.ICloudHost
func (*SInstance) GetIHostId ¶
func (*SInstance) GetINics ¶
func (instance *SInstance) GetINics() ([]cloudprovider.ICloudNic, error)
func (*SInstance) GetInstanceType ¶
func (*SInstance) GetMachine ¶
func (*SInstance) GetOsType ¶
func (instance *SInstance) GetOsType() cloudprovider.TOsType
func (*SInstance) GetOsVersion ¶
func (*SInstance) GetProjectId ¶
func (*SInstance) GetSecurityGroupIds ¶
func (*SInstance) GetVNCInfo ¶
func (instance *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) IsEmulated ¶
func (*SInstance) RebuildRoot ¶
func (instance *SInstance) RebuildRoot(ctx context.Context, desc *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
func (*SInstance) SetSecurityGroups ¶
func (*SInstance) StopVM ¶
func (instance *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
func (*SInstance) UpdateUserData ¶
func (*SInstance) UpdateVM ¶
func (instance *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error
type SInstanceCdrome ¶
type SInstanceCdrome struct { }
type SInstanceNic ¶
type SInstanceNic struct { UUID string `json:"uuid"` VMInstanceUUID string `json:"vmInstanceUuid"` L3NetworkUUID string `json:"l3NetworkUuid"` IP string `json:"ip"` Mac string `json:"mac"` HypervisorType string `json:"hypervisorType"` IPVersion int `json:"ipVersion"` UsedIps []string `json:"usedIps"` InternalName string `json:"internalName"` DeviceID int `json:"deviceId"` ZStackTime cloudprovider.DummyICloudNic // contains filtered or unexported fields }
func (*SInstanceNic) GetDriver ¶
func (nic *SInstanceNic) GetDriver() string
func (*SInstanceNic) GetINetworkId ¶
func (nic *SInstanceNic) GetINetworkId() string
func (*SInstanceNic) GetIP ¶
func (nic *SInstanceNic) GetIP() string
func (*SInstanceNic) GetId ¶
func (nic *SInstanceNic) GetId() string
func (*SInstanceNic) GetMAC ¶
func (nic *SInstanceNic) GetMAC() string
func (*SInstanceNic) InClassicNetwork ¶
func (nic *SInstanceNic) InClassicNetwork() bool
type SInstanceOffering ¶
type SInstanceOffering struct { multicloud.SServerSku ZStackTags ZStackBasic MemorySize int `json:"memorySize"` CPUNum int `json:"cpuNum"` CPUSpeed int `json:"cpuSpeed"` Type string `json:"type"` AllocatorStrategy string `json:"allocatorStrategy"` State string `json:"state"` ZStackTime // contains filtered or unexported fields }
func (*SInstanceOffering) Delete ¶
func (offering *SInstanceOffering) Delete() error
func (*SInstanceOffering) GetAttachedDiskCount ¶
func (offering *SInstanceOffering) GetAttachedDiskCount() int
func (*SInstanceOffering) GetAttachedDiskSizeGB ¶
func (offering *SInstanceOffering) GetAttachedDiskSizeGB() int
func (*SInstanceOffering) GetAttachedDiskType ¶
func (offering *SInstanceOffering) GetAttachedDiskType() string
func (*SInstanceOffering) GetCpuArch ¶
func (offering *SInstanceOffering) GetCpuArch() string
func (*SInstanceOffering) GetCpuCoreCount ¶
func (offering *SInstanceOffering) GetCpuCoreCount() int
func (*SInstanceOffering) GetDataDiskMaxCount ¶
func (offering *SInstanceOffering) GetDataDiskMaxCount() int
func (*SInstanceOffering) GetDataDiskTypes ¶
func (offering *SInstanceOffering) GetDataDiskTypes() string
func (*SInstanceOffering) GetGlobalId ¶
func (offering *SInstanceOffering) GetGlobalId() string
func (*SInstanceOffering) GetGpuAttachable ¶
func (offering *SInstanceOffering) GetGpuAttachable() bool
func (*SInstanceOffering) GetGpuCount ¶
func (offering *SInstanceOffering) GetGpuCount() string
func (*SInstanceOffering) GetGpuMaxCount ¶
func (offering *SInstanceOffering) GetGpuMaxCount() int
func (*SInstanceOffering) GetGpuSpec ¶
func (offering *SInstanceOffering) GetGpuSpec() string
func (*SInstanceOffering) GetId ¶
func (offering *SInstanceOffering) GetId() string
func (*SInstanceOffering) GetInstanceTypeCategory ¶
func (offering *SInstanceOffering) GetInstanceTypeCategory() string
func (*SInstanceOffering) GetInstanceTypeFamily ¶
func (offering *SInstanceOffering) GetInstanceTypeFamily() string
func (*SInstanceOffering) GetMemorySizeMB ¶
func (offering *SInstanceOffering) GetMemorySizeMB() int
func (*SInstanceOffering) GetName ¶
func (offering *SInstanceOffering) GetName() string
func (*SInstanceOffering) GetNicMaxCount ¶
func (offering *SInstanceOffering) GetNicMaxCount() int
func (*SInstanceOffering) GetNicType ¶
func (offering *SInstanceOffering) GetNicType() string
func (*SInstanceOffering) GetOsName ¶
func (offering *SInstanceOffering) GetOsName() string
func (*SInstanceOffering) GetPostpaidStatus ¶
func (offering *SInstanceOffering) GetPostpaidStatus() string
func (*SInstanceOffering) GetPrepaidStatus ¶
func (offering *SInstanceOffering) GetPrepaidStatus() string
func (*SInstanceOffering) GetStatus ¶
func (offering *SInstanceOffering) GetStatus() string
func (*SInstanceOffering) GetSysDiskMaxSizeGB ¶
func (offering *SInstanceOffering) GetSysDiskMaxSizeGB() int
func (*SInstanceOffering) GetSysDiskMinSizeGB ¶
func (offering *SInstanceOffering) GetSysDiskMinSizeGB() int
func (*SInstanceOffering) GetSysDiskResizable ¶
func (offering *SInstanceOffering) GetSysDiskResizable() bool
func (*SInstanceOffering) GetSysDiskType ¶
func (offering *SInstanceOffering) GetSysDiskType() string
func (*SInstanceOffering) IsEmulated ¶
func (offering *SInstanceOffering) IsEmulated() bool
func (*SInstanceOffering) Refresh ¶
func (offering *SInstanceOffering) Refresh() error
type SInterfaceIP ¶
func (*SInterfaceIP) GetGlobalId ¶
func (ip *SInterfaceIP) GetGlobalId() string
func (*SInterfaceIP) GetINetworkId ¶
func (ip *SInterfaceIP) GetINetworkId() string
func (*SInterfaceIP) GetIP ¶
func (ip *SInterfaceIP) GetIP() string
func (*SInterfaceIP) IsPrimary ¶
func (ip *SInterfaceIP) IsPrimary() bool
type SL3Network ¶
type SL3Network struct { ZStackBasic Type string `json:"type"` ZoneUUID string `json:"zoneUuid"` L2NetworkUUID string `json:"l2NetworkUuid"` State string `json:"state"` System bool `json:"system"` Category bool `json:"category"` IPVersion int `json:"ipVersion"` DNS []string `json:"dns"` Networks []SNetwork `json:"ipRanges"` HostRoute []SHostRoute `json:"hostRoute"` ZStackTime }
type SLocalStorage ¶
type SLocalStorage struct { multicloud.SStorageBase ZStackTags HostUUID string `json:"hostUuid"` TotalCapacity int64 `json:"totalCapacity"` AvailableCapacity int64 `json:"availableCapacity"` TotalPhysicalCapacity int64 `json:"totalPhysicalCapacity"` AvailablePhysicalCapacity int64 `json:"availablePhysicalCapacity"` // contains filtered or unexported fields }
func (*SLocalStorage) CreateIDisk ¶
func (storage *SLocalStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SLocalStorage) GetCapacityMB ¶
func (storage *SLocalStorage) GetCapacityMB() int64
func (*SLocalStorage) GetCapacityUsedMB ¶
func (storage *SLocalStorage) GetCapacityUsedMB() int64
func (*SLocalStorage) GetEnabled ¶
func (storage *SLocalStorage) GetEnabled() bool
func (*SLocalStorage) GetGlobalId ¶
func (storage *SLocalStorage) GetGlobalId() string
func (*SLocalStorage) GetIDiskById ¶
func (storage *SLocalStorage) GetIDiskById(diskId string) (cloudprovider.ICloudDisk, error)
func (*SLocalStorage) GetIDisks ¶
func (storage *SLocalStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SLocalStorage) GetIStoragecache ¶
func (storage *SLocalStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SLocalStorage) GetIZone ¶
func (storage *SLocalStorage) GetIZone() cloudprovider.ICloudZone
func (*SLocalStorage) GetId ¶
func (storage *SLocalStorage) GetId() string
func (*SLocalStorage) GetMediumType ¶
func (storage *SLocalStorage) GetMediumType() string
func (*SLocalStorage) GetMountPoint ¶
func (storage *SLocalStorage) GetMountPoint() string
func (*SLocalStorage) GetName ¶
func (storage *SLocalStorage) GetName() string
func (*SLocalStorage) GetStatus ¶
func (storage *SLocalStorage) GetStatus() string
func (*SLocalStorage) GetStorageConf ¶
func (storage *SLocalStorage) GetStorageConf() jsonutils.JSONObject
func (*SLocalStorage) GetStorageType ¶
func (storage *SLocalStorage) GetStorageType() string
func (*SLocalStorage) IsEmulated ¶
func (storage *SLocalStorage) IsEmulated() bool
func (*SLocalStorage) IsSysDiskStore ¶
func (storage *SLocalStorage) IsSysDiskStore() bool
func (*SLocalStorage) Refresh ¶
func (storage *SLocalStorage) Refresh() error
type SNetwork ¶
type SNetwork struct { multicloud.SResourceBase ZStackTags ZStackBasic L3NetworkUUID string `json:"l3NetworkUuid"` StartIP string `json:"startIp"` EndIP string `json:"endIp"` Netmask string `json:"netmask"` Gateway string `json:"gateway"` NetworkCIDR string `json:"networkCidr"` IPVersion int `json:"ipVersion"` PrefixLen int `json:"prefixLen"` ZStackTime // contains filtered or unexported fields }
func (*SNetwork) GetAllocTimeoutSeconds ¶
func (*SNetwork) GetGateway ¶
func (*SNetwork) GetGlobalId ¶
func (*SNetwork) GetIPRange ¶
func (network *SNetwork) GetIPRange() netutils.IPV4AddrRange
func (*SNetwork) GetIWire ¶
func (network *SNetwork) GetIWire() cloudprovider.ICloudWire
func (*SNetwork) GetIpStart ¶
func (*SNetwork) GetIsPublic ¶
func (*SNetwork) GetProjectId ¶
func (*SNetwork) GetPublicScope ¶
func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope
func (*SNetwork) GetServerType ¶
func (*SNetwork) IsEmulated ¶
type SNetworkService ¶
type SNetworkService struct { IPsec []string `json:"IPsec"` VRouterRoute []string `json:"VRouterRoute"` VipQos []string `json:"VipQos"` DNS []string `json:"DNS"` SNAT []string `json:"SNAT"` LoadBalancer []string `json:"LoadBalancer"` Userdata []string `json:"Userdata"` SecurityGroup []string `json:"SecurityGroup"` Eip []string `json:"Eip"` DHCP []string `json:"DHCP"` CentralizedDNS []string `json:"CentralizedDNS"` HostRoute []string `json:"HostRoute"` PortForwarding []string `json:"PortForwarding"` }
type SNetworkServiceProvider ¶
type SNetworkServiceProvider struct { ZStackBasic ZStackTime Type string `json:"type"` NetworkServiceTypes []string `json:"networkServiceTypes"` AttachedL2NetworkUUIDs []string `json:"attachedL2NetworkUuids"` }
type SNetworkServiceRef ¶
type SPool ¶
type SPool struct { UUID string `json:"uuid"` PrimaryStorageUUID string `json:"primaryStorageUuid"` PoolName string `json:"poolName"` Type TCephPoolType `json:"type"` AvailableCapacity int64 `json:"availableCapacity"` UsedCapacity int64 `json:"usedCapacity"` ReplicatedSize int64 `json:"replicatedSize"` TotalCapacity int64 `json:"totalCapacity"` ZStackTime }
type SQuota ¶
func (*SQuota) GetCurrentQuotaUsedCount ¶
func (*SQuota) GetGlobalId ¶
func (*SQuota) GetMaxQuotaCount ¶
func (*SQuota) GetQuotaType ¶
type SRegion ¶
type SRegion struct { multicloud.SRegion multicloud.SNoLbRegion multicloud.SNoObjectStorageRegion Name string // contains filtered or unexported fields }
func (*SRegion) AssignSecurityGroup ¶
func (*SRegion) AssociateEip ¶
func (*SRegion) AttachDisk ¶
func (*SRegion) AttachServiceForl3Network ¶
func (*SRegion) ChangeConfig ¶
func (*SRegion) CreateDisk ¶
func (*SRegion) CreateDiskOffering ¶
func (region *SRegion) CreateDiskOffering(diskSizeGB int) (*SDiskOffering, error)
func (*SRegion) CreateEIP ¶
func (region *SRegion) CreateEIP(eip *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)
func (*SRegion) CreateISecurityGroup ¶
func (region *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) CreateISku ¶
func (region *SRegion) CreateISku(opts *cloudprovider.SServerSkuCreateOption) (cloudprovider.ICloudSku, error)
func (*SRegion) CreateIVpc ¶
func (region *SRegion) CreateIVpc(opts *cloudprovider.VpcCreateOptions) (cloudprovider.ICloudVpc, error)
func (*SRegion) CreateImage ¶
func (*SRegion) CreateInstance ¶
func (region *SRegion) CreateInstance(desc *cloudprovider.SManagedVMCreateConfig, l3Id, zoneId string, offerings map[string]string) (*SInstance, error)
func (*SRegion) CreateInstanceOffering ¶
func (*SRegion) CreateNetwork ¶
func (*SRegion) CreateSecurityGroup ¶
func (region *SRegion) CreateSecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (*SSecurityGroup, error)
func (*SRegion) CreateSecurityGroupRule ¶
func (region *SRegion) CreateSecurityGroupRule(secgroupId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) (*SSecurityGroupRule, error)
func (*SRegion) CreateSnapshot ¶
func (*SRegion) CreateVirtualIP ¶
func (region *SRegion) CreateVirtualIP(name, desc, ip string, l3Id string) (*SVirtualIP, error)
func (*SRegion) DeleteDisk ¶
func (*SRegion) DeleteDiskOffering ¶
func (*SRegion) DeleteISkuByName ¶
func (*SRegion) DeleteImage ¶
func (*SRegion) DeleteNetwork ¶
func (*SRegion) DeleteOffering ¶
func (*SRegion) DeleteSecurityGroupRules ¶
func (*SRegion) DeleteSnapshot ¶
func (*SRegion) DeleteVirtualIP ¶
func (*SRegion) DetachDisk ¶
func (*SRegion) DisassociateEip ¶
func (*SRegion) ExpungeDisk ¶
func (*SRegion) GetBackupStorageUUID ¶
func (*SRegion) GetBootOrder ¶
func (*SRegion) GetCapabilities ¶
func (*SRegion) GetClient ¶
func (region *SRegion) GetClient() *SZStackClient
func (*SRegion) GetCloudEnv ¶
func (*SRegion) GetClusterIds ¶
func (*SRegion) GetClusters ¶
func (*SRegion) GetConfigrations ¶
func (region *SRegion) GetConfigrations() ([]SConfiguration, error)
func (*SRegion) GetDiskOfferings ¶
func (region *SRegion) GetDiskOfferings(diskSizeGB int) ([]SDiskOffering, error)
func (*SRegion) GetDiskWithStorage ¶
func (*SRegion) GetEips ¶
func (region *SRegion) GetEips(eipId, instanceId string) ([]SEipAddress, error)
func (*SRegion) GetGeographicInfo ¶
func (region *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetI18n ¶
func (region *SRegion) GetI18n() cloudprovider.SModelI18nTable
func (*SRegion) GetICloudQuotas ¶
func (region *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error)
func (*SRegion) GetIDiskById ¶
func (self *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
func (*SRegion) GetIEipById ¶
func (region *SRegion) GetIEipById(eipId string) (cloudprovider.ICloudEIP, error)
func (*SRegion) GetIHostById ¶
func (region *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SRegion) GetIHosts ¶
func (region *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SRegion) GetINetworkInterfaces ¶
func (region *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error)
func (*SRegion) GetISecurityGroupById ¶
func (region *SRegion) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISecurityGroups ¶
func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISnapshotById ¶
func (region *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetISnapshots ¶
func (region *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetIStorageById ¶
func (region *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SRegion) GetIStoragecacheById ¶
func (region *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStoragecaches ¶
func (region *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStorages ¶
func (region *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SRegion) GetIVMById ¶
func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
func (*SRegion) GetIVpcById ¶
func (region *SRegion) GetIVpcById(vpcId string) (cloudprovider.ICloudVpc, error)
func (*SRegion) GetIZoneById ¶
func (region *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
func (*SRegion) GetIZones ¶
func (region *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
func (*SRegion) GetImageServers ¶
func (region *SRegion) GetImageServers(zoneId, serverId string) ([]SImageServer, error)
func (*SRegion) GetInstance ¶
func (*SRegion) GetInstanceConsoleInfo ¶
func (region *SRegion) GetInstanceConsoleInfo(instnaceId string) (*SConsoleInfo, error)
func (*SRegion) GetInstanceConsolePassword ¶
func (*SRegion) GetInstanceOffering ¶
func (region *SRegion) GetInstanceOffering(offerId string) (*SInstanceOffering, error)
func (*SRegion) GetInstanceOfferingByType ¶
func (region *SRegion) GetInstanceOfferingByType(instanceType string) (*SInstanceOffering, error)
func (*SRegion) GetInstanceOfferings ¶
func (*SRegion) GetInstances ¶
func (*SRegion) GetL3Network ¶
func (region *SRegion) GetL3Network(l3Id string) (*SL3Network, error)
func (*SRegion) GetL3Networks ¶
func (*SRegion) GetLocalStorage ¶
func (region *SRegion) GetLocalStorage(storageId string, hostId string) (*SLocalStorage, error)
func (*SRegion) GetLocalStorages ¶
func (region *SRegion) GetLocalStorages(storageId string, hostId string) ([]SLocalStorage, error)
func (*SRegion) GetNetwork ¶
func (*SRegion) GetNetworkId ¶
func (region *SRegion) GetNetworkId(vip *SVirtualIP) string
func (*SRegion) GetNetworkServiceProviders ¶
func (region *SRegion) GetNetworkServiceProviders(Type string) ([]SNetworkServiceProvider, error)
func (*SRegion) GetNetworkServiceRef ¶
func (region *SRegion) GetNetworkServiceRef(l3Id string, Type string) ([]SNetworkServiceRef, error)
func (*SRegion) GetNetworkServices ¶
func (region *SRegion) GetNetworkServices() (*SNetworkService, error)
func (*SRegion) GetNetworks ¶
func (*SRegion) GetProvider ¶
func (*SRegion) GetResourceSysTags ¶
func (*SRegion) GetSecurityGroup ¶
func (region *SRegion) GetSecurityGroup(secgroupId string) (*SSecurityGroup, error)
func (*SRegion) GetSecurityGroups ¶
func (*SRegion) GetSnapshot ¶
func (*SRegion) GetSnapshots ¶
func (*SRegion) GetStorages ¶
func (*SRegion) GetUserAccount ¶
func (region *SRegion) GetUserAccount(name string) ([]SUserAccount, error)
func (*SRegion) GetVirtualIP ¶
func (region *SRegion) GetVirtualIP(vipId string) (*SVirtualIP, error)
func (*SRegion) GetVirtualIPs ¶
func (region *SRegion) GetVirtualIPs(vipId string) ([]SVirtualIP, error)
func (*SRegion) IsEmulated ¶
func (*SRegion) RebuildDisk ¶
func (*SRegion) RebuildRoot ¶
func (*SRegion) RemoveNetworkService ¶
func (*SRegion) ResetDisks ¶
func (region *SRegion) ResetDisks(snapshotId string) (jsonutils.JSONObject, error)
func (*SRegion) RevokeSecurityGroup ¶
type SSecurityGroup ¶
type SSecurityGroup struct { multicloud.SSecurityGroup ZStackTags ZStackBasic State string `json:"state"` IPVersion int `json:"ipVersion"` ZStackTime InternalID int `json:"internalId"` Rules []SSecurityGroupRule `json:"rules"` AttachedL3NetworkUUIDs []string `json:"attachedL3NetworkUuids"` // contains filtered or unexported fields }
func (*SSecurityGroup) CreateRule ¶
func (self *SSecurityGroup) CreateRule(opts *cloudprovider.SecurityGroupRuleCreateOptions) (cloudprovider.ISecurityGroupRule, error)
func (*SSecurityGroup) Delete ¶
func (self *SSecurityGroup) Delete() error
func (*SSecurityGroup) GetDescription ¶
func (self *SSecurityGroup) GetDescription() string
func (*SSecurityGroup) GetGlobalId ¶
func (self *SSecurityGroup) GetGlobalId() string
func (*SSecurityGroup) GetId ¶
func (self *SSecurityGroup) GetId() string
func (*SSecurityGroup) GetName ¶
func (self *SSecurityGroup) GetName() string
func (*SSecurityGroup) GetProjectId ¶
func (self *SSecurityGroup) GetProjectId() string
func (*SSecurityGroup) GetRules ¶
func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error)
func (*SSecurityGroup) GetStatus ¶
func (self *SSecurityGroup) GetStatus() string
func (*SSecurityGroup) GetVpcId ¶
func (self *SSecurityGroup) GetVpcId() string
func (*SSecurityGroup) Refresh ¶
func (self *SSecurityGroup) Refresh() error
type SSecurityGroupRule ¶
type SSecurityGroupRule struct { ZStackBasic SecurityGroupUUID string `json:"securityGroupUuid"` Type string `json:"type"` IPVersion int `json:"ipVersion"` StartPort int `json:"startPort"` EndPort int `json:"endPort"` Protocol string `json:"protocol"` State string `json:"state"` AllowedCIDR string `json:"allowedCidr"` RemoteSecurityGroupUUID string `json:"remoteSecurityGroupUuid"` ZStackTime // contains filtered or unexported fields }
func (*SSecurityGroupRule) Delete ¶
func (self *SSecurityGroupRule) Delete() error
func (*SSecurityGroupRule) GetAction ¶
func (self *SSecurityGroupRule) GetAction() secrules.TSecurityRuleAction
func (*SSecurityGroupRule) GetCIDRs ¶
func (self *SSecurityGroupRule) GetCIDRs() []string
func (*SSecurityGroupRule) GetDescription ¶
func (self *SSecurityGroupRule) GetDescription() string
func (*SSecurityGroupRule) GetDirection ¶
func (self *SSecurityGroupRule) GetDirection() secrules.TSecurityRuleDirection
func (*SSecurityGroupRule) GetGlobalId ¶
func (self *SSecurityGroupRule) GetGlobalId() string
func (*SSecurityGroupRule) GetPorts ¶
func (self *SSecurityGroupRule) GetPorts() string
func (*SSecurityGroupRule) GetPriority ¶
func (self *SSecurityGroupRule) GetPriority() int
func (*SSecurityGroupRule) GetProtocol ¶
func (self *SSecurityGroupRule) GetProtocol() string
func (*SSecurityGroupRule) Update ¶
func (self *SSecurityGroupRule) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error
type SSnapshot ¶
type SSnapshot struct { multicloud.SResourceBase ZStackTags ZStackBasic PrimaryStorageUUID string `json:"primaryStorageUuid"` VolumeUUID string `json:"volumeUuid"` VolumeType string `json:"volumeType"` Format string `json:"format"` Latest bool `json:"latest"` Size int `json:"size"` State string `json:"state"` Status string `json:"status"` // contains filtered or unexported fields }
func (*SSnapshot) GetDiskType ¶
func (*SSnapshot) GetGlobalId ¶
func (*SSnapshot) GetProjectId ¶
func (*SSnapshot) IsEmulated ¶
type SStorage ¶
type SStorage struct { multicloud.SStorageBase ZStackTags ZStackBasic VCenterUUID string `json:"VCenterUuid"` Datastore string `json:"datastore"` ZoneUUID string `json:"zoneUuid"` URL string `json:"url"` TotalCapacity int64 `json:"totalCapacity"` AvailableCapacity int `json:"availableCapacity"` TotalPhysicalCapacity int `json:"totalPhysicalCapacity"` AvailablePhysicalCapacity int `json:"availablePhysicalCapacity"` Type TStorageType `json:"type"` State string `json:"state"` Status string `json:"status"` MountPath string `json:"mountPath"` AttachedClusterUUIDs []string `json:"attachedClusterUuids"` Pools []SPool `json:"pools"` ZStackTime // contains filtered or unexported fields }
func (*SStorage) CreateIDisk ¶
func (storage *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetCapacityMB ¶
func (*SStorage) GetCapacityUsedMB ¶
func (*SStorage) GetDataPoolName ¶
func (*SStorage) GetEnabled ¶
func (*SStorage) GetGlobalId ¶
func (*SStorage) GetIDiskById ¶
func (storage *SStorage) GetIDiskById(diskId string) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetIDisks ¶
func (storage *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SStorage) GetIStoragecache ¶
func (storage *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SStorage) GetIZone ¶
func (storage *SStorage) GetIZone() cloudprovider.ICloudZone
func (*SStorage) GetMediumType ¶
func (*SStorage) GetMountPoint ¶
func (*SStorage) GetStorageConf ¶
func (storage *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsSysDiskStore ¶
type SStoragecache ¶
type SStoragecache struct { multicloud.SResourceBase ZStackTags ZoneId string // contains filtered or unexported fields }
func (*SStoragecache) GetGlobalId ¶
func (scache *SStoragecache) GetGlobalId() string
func (*SStoragecache) GetICloudImages ¶
func (scache *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetICustomizedCloudImages ¶
func (scache *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetIImageById ¶
func (scache *SStoragecache) GetIImageById(extId string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) GetId ¶
func (scache *SStoragecache) GetId() string
func (*SStoragecache) GetName ¶
func (scache *SStoragecache) GetName() string
func (*SStoragecache) GetPath ¶
func (scache *SStoragecache) GetPath() string
func (*SStoragecache) GetStatus ¶
func (scache *SStoragecache) GetStatus() string
func (*SStoragecache) IsEmulated ¶
func (scache *SStoragecache) IsEmulated() bool
func (*SStoragecache) Refresh ¶
func (scache *SStoragecache) Refresh() error
func (*SStoragecache) UploadImage ¶
func (scache *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, callback func(progress float32)) (string, error)
type SUserAccount ¶
type SUserAccount struct {
Uuid string
}
type SVirtualIP ¶
type SVirtualIP struct { multicloud.SNetworkInterfaceBase ZStackTags ZStackBasic IPRangeUUID string `json:"ipRangeUuid"` L3NetworkUUID string `json:"l3NetworkUuid"` IP string `json:"ip"` State string `json:"state"` Gateway string `json:"gateway"` Netmask string `json:"netmask"` PrefixLen int `json:"prefixLen"` ServiceProvider string `json:"serviceProvider"` PeerL3NetworkUuids []string `json:"peerL3NetworkUuids"` UseFor string `json:"useFor"` UsedIPUUID string `json:"usedIpUuid"` ZStackTime // contains filtered or unexported fields }
func (*SVirtualIP) GetAssociateId ¶
func (vip *SVirtualIP) GetAssociateId() string
func (*SVirtualIP) GetAssociateType ¶
func (vip *SVirtualIP) GetAssociateType() string
func (*SVirtualIP) GetGlobalId ¶
func (vip *SVirtualIP) GetGlobalId() string
func (*SVirtualIP) GetICloudInterfaceAddresses ¶
func (vip *SVirtualIP) GetICloudInterfaceAddresses() ([]cloudprovider.ICloudInterfaceAddress, error)
func (*SVirtualIP) GetId ¶
func (vip *SVirtualIP) GetId() string
func (*SVirtualIP) GetMacAddress ¶
func (vip *SVirtualIP) GetMacAddress() string
func (*SVirtualIP) GetName ¶
func (vip *SVirtualIP) GetName() string
func (*SVirtualIP) GetStatus ¶
func (vip *SVirtualIP) GetStatus() string
type SVpc ¶
type SVpc struct { multicloud.SVpc ZStackTags // contains filtered or unexported fields }
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalId ¶
func (*SVpc) GetIRouteTableById ¶
func (self *SVpc) GetIRouteTableById(routeTableId string) (cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetIRouteTables ¶
func (vpc *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetISecurityGroups ¶
func (vpc *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SVpc) GetIWireById ¶
func (vpc *SVpc) GetIWireById(wireId string) (cloudprovider.ICloudWire, error)
func (*SVpc) GetIWires ¶
func (vpc *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SVpc) GetIsDefault ¶
func (*SVpc) GetRegion ¶
func (vpc *SVpc) GetRegion() cloudprovider.ICloudRegion
func (*SVpc) IsEmulated ¶
type SWire ¶
type SWire struct { multicloud.SResourceBase ZStackTags ZStackBasic Vlan int `json:"vlan"` ZoneUUID string `json:"zoneUuid"` PhysicalInterface string `json:"physicalInterface"` Type string `json:"type"` ZStackTime AttachedClusterUUIDs []string `json:"attachedClusterUuids"` // contains filtered or unexported fields }
func (*SWire) CreateINetwork ¶
func (wire *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetBandwidth ¶
func (*SWire) GetGlobalId ¶
func (*SWire) GetINetworkById ¶
func (wire *SWire) GetINetworkById(netid string) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetINetworks ¶
func (wire *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
func (*SWire) GetIVpc ¶
func (wire *SWire) GetIVpc() cloudprovider.ICloudVpc
func (*SWire) GetIZone ¶
func (wire *SWire) GetIZone() cloudprovider.ICloudZone
func (*SWire) IsEmulated ¶
type SZStackClient ¶
type SZStackClient struct { *ZstackClientConfig // contains filtered or unexported fields }
func NewZStackClient ¶
func NewZStackClient(cfg *ZstackClientConfig) (*SZStackClient, error)
func (*SZStackClient) GetCapabilities ¶
func (self *SZStackClient) GetCapabilities() []string
func (*SZStackClient) GetCloudRegionExternalIdPrefix ¶
func (cli *SZStackClient) GetCloudRegionExternalIdPrefix() string
func (*SZStackClient) GetEcsMetrics ¶
func (self *SZStackClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SZStackClient) GetHostMetrics ¶
func (self *SZStackClient) GetHostMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SZStackClient) GetIProjects ¶
func (cli *SZStackClient) GetIProjects() ([]cloudprovider.ICloudProject, error)
func (*SZStackClient) GetIRegionById ¶
func (cli *SZStackClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SZStackClient) GetIRegions ¶
func (cli *SZStackClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SZStackClient) GetMetrics ¶
func (self *SZStackClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SZStackClient) GetMonitorData ¶
func (*SZStackClient) GetRegion ¶
func (cli *SZStackClient) GetRegion(regionId string) *SRegion
func (*SZStackClient) GetRegions ¶
func (cli *SZStackClient) GetRegions() []SRegion
func (*SZStackClient) GetSubAccounts ¶
func (cli *SZStackClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
func (*SZStackClient) GetVersion ¶
func (self *SZStackClient) GetVersion() (*SVersion, error)
type SZone ¶
type SZone struct { multicloud.SResourceBase ZStackTags ZStackBasic Type string State string // contains filtered or unexported fields }
func (*SZone) GetGlobalId ¶
func (*SZone) GetI18n ¶
func (zone *SZone) GetI18n() cloudprovider.SModelI18nTable
func (*SZone) GetIHostById ¶
func (zone *SZone) GetIHostById(hostId string) (cloudprovider.ICloudHost, error)
func (*SZone) GetIHosts ¶
func (zone *SZone) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SZone) GetIRegion ¶
func (zone *SZone) GetIRegion() cloudprovider.ICloudRegion
func (*SZone) GetIStorageById ¶
func (zone *SZone) GetIStorageById(storageId string) (cloudprovider.ICloudStorage, error)
func (*SZone) GetIStorages ¶
func (zone *SZone) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SZone) GetIWires ¶
func (zone *SZone) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SZone) IsEmulated ¶
type TCephPoolType ¶
type TCephPoolType string
type TStorageType ¶
type TStorageType string
type ZStackBasic ¶
type ZStackTags ¶
type ZStackTags struct { }
func (*ZStackTags) GetSysTags ¶
func (self *ZStackTags) GetSysTags() map[string]string
type ZStackTime ¶
type ZstackClientConfig ¶
type ZstackClientConfig struct {
// contains filtered or unexported fields
}
func NewZstackClientConfig ¶
func NewZstackClientConfig(authURL, username, password string) *ZstackClientConfig
func (*ZstackClientConfig) CloudproviderConfig ¶
func (cfg *ZstackClientConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *ZstackClientConfig
func (*ZstackClientConfig) Debug ¶
func (cfg *ZstackClientConfig) Debug(debug bool) *ZstackClientConfig
Source Files ¶
- cluster.go
- configuration.go
- disk.go
- disk_offering.go
- doc.go
- eip.go
- host.go
- image.go
- image_server.go
- instance.go
- instancenic.go
- monitor.go
- network.go
- network_service.go
- offering.go
- quota.go
- region.go
- secgrouprule.go
- securitygroup.go
- snapshot.go
- storage.go
- storage_local.go
- storagecache.go
- systag.go
- tag_base.go
- version.go
- vip.go
- vpc.go
- wire.go
- zone.go
- zstack.go
- zstack_const.go
Click to show internal directories.
Click to hide internal directories.