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_BINGO_CLOUD + const MAX_RESULT + var INSTANCE_CATEGORY_MAP = map[string]string + type AttachmentSet struct + AttachTime string + Cache string + DeleteOnTermination string + Device string + InstanceId string + Status string + VolumeId string + type BingoCloudConfig struct + func NewBingoCloudClientConfig(endpoint, accessKey, secretKey string) *BingoCloudConfig + func (cfg *BingoCloudConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *BingoCloudConfig + func (cfg *BingoCloudConfig) Debug(debug bool) *BingoCloudConfig + type BingoTags struct + TagSet []struct{ ... } + func (self *BingoTags) GetSysTags() map[string]string + func (self *BingoTags) GetTags() (map[string]string, error) + func (self *BingoTags) SetTags(tags map[string]string, replace bool) error + type DatapointMember struct + Average float64 + Maximum float64 + Minimum float64 + SampleCount float64 + Sum float64 + Timestamp time.Time + Unit string + func (self DatapointMember) GetValue() float64 + type Datapoints struct + Member []DatapointMember + type IPPermissions struct + BoundType string + Description string + FromPort int + Groups []struct{ ... } + IPProtocol string + IPRanges []struct{ ... } + L2Accept string + PermissionId string + Policy string + ToPort int + func (self *IPPermissions) Delete() error + func (self *IPPermissions) GetAction() secrules.TSecurityRuleAction + func (self *IPPermissions) GetCIDRs() []string + func (self *IPPermissions) GetDescription() string + func (self *IPPermissions) GetDirection() secrules.TSecurityRuleDirection + func (self *IPPermissions) GetGlobalId() string + func (self *IPPermissions) GetPorts() string + func (self *IPPermissions) GetPriority() int + func (self *IPPermissions) GetProtocol() string + func (self *IPPermissions) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error + type MetricOutput struct + Datapoints Datapoints + ObjName string + Period int64 + type SAccount struct + AccessKeyId string + Arn string + DeptId string + DeptName string + IsEncrypted string + SecretAccessKey string + UserId string + UserName string + type SBingoCloudClient struct + func NewBingoCloudClient(cfg *BingoCloudConfig) (*SBingoCloudClient, error) + func (self *SBingoCloudClient) DescribeMetricList(ns, metricNm, dimensionName, dimensionValue string, since time.Time, ...) (*MetricOutput, error) + func (self *SBingoCloudClient) GetAccountId() string + func (self *SBingoCloudClient) GetCapabilities() []string + func (self *SBingoCloudClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SBingoCloudClient) GetEnrollmentAccounts() ([]cloudprovider.SEnrollmentAccount, error) + func (self *SBingoCloudClient) GetHostMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SBingoCloudClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error) + func (self *SBingoCloudClient) GetIRegions() []cloudprovider.ICloudRegion + func (self *SBingoCloudClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error) + func (self *SBingoCloudClient) GetRegion(id string) (*SRegion, error) + func (self *SBingoCloudClient) GetRegions() ([]SRegion, error) + func (self *SBingoCloudClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error) + type SCluster struct + ClusterControllerSet []struct{ ... } + ClusterId string + ClusterName string + CreateVolumeMode string + ExtendDiskMode string + Hypervisor string + MaxVolumeStorage string + SchedPolicy string + Status string + func (self *SCluster) GetGlobalId() string + func (self *SCluster) GetI18n() cloudprovider.SModelI18nTable + func (self *SCluster) GetIHostById(id string) (cloudprovider.ICloudHost, error) + func (self *SCluster) GetIHosts() ([]cloudprovider.ICloudHost, error) + func (self *SCluster) GetIRegion() cloudprovider.ICloudRegion + func (self *SCluster) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (self *SCluster) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (self *SCluster) GetId() string + func (self *SCluster) GetName() string + func (self *SCluster) GetStatus() string + type SDisk struct + AttachmentSet []AttachmentSet + AvailabilityZone string + CreateTime string + Description string + DetachBehavior string + Goal string + Iops string + IsDeductQuota string + IsEncrypt string + IsForSleepInst string + IsMirrorVolume string + IsMultiAttach string + IsOneInst string + IsRoot string + Location string + MirrorFrom string + MirrorProcess string + MirrorStatus string + NodeId string + Owner string + Passphrase string + Readonly string + Size int + SnapshotId string + Status string + StorageId string + VolumeId string + VolumeName string + func (self *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error) + func (self *SDisk) Delete(ctx context.Context) error + func (self *SDisk) GetAccessPath() string + func (self *SDisk) GetCacheMode() string + func (self *SDisk) GetDiskFormat() string + func (self *SDisk) GetDiskSizeMB() int + func (self *SDisk) GetDiskType() string + func (self *SDisk) GetDriver() string + func (self *SDisk) GetFsFormat() string + func (self *SDisk) GetGlobalId() string + func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error) + func (self *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error) + func (self *SDisk) GetIStorageId() string + func (self *SDisk) GetId() string + func (self *SDisk) GetIsAutoDelete() bool + func (self *SDisk) GetIsNonPersistent() bool + func (self *SDisk) GetMountpoint() string + func (self *SDisk) GetName() string + func (self *SDisk) GetStatus() string + func (self *SDisk) GetTemplateId() string + func (self *SDisk) Rebuild(ctx context.Context) error + func (self *SDisk) Reset(ctx context.Context, snapshotId string) (string, error) + func (self *SDisk) Resize(ctx context.Context, newSizeMB int64) error + type SEip struct + AddressId string + AddressType string + Bandtype string + Bandwidth int + CanAssociate bool + InstanceId string + Owner string + PublicIp string + SubnetId string + VpcId string + func (self *SEip) Associate(conf *cloudprovider.AssociateConfig) error + func (self *SEip) ChangeBandwidth(bw int) error + func (self *SEip) Delete() error + func (self *SEip) Dissociate() error + func (self *SEip) GetAssociationExternalId() string + func (self *SEip) GetAssociationType() string + func (self *SEip) GetBandwidth() int + func (self *SEip) GetGlobalId() string + func (self *SEip) GetINetworkId() string + func (self *SEip) GetId() string + func (self *SEip) GetInternetChargeType() string + func (self *SEip) GetIpAddr() string + func (self *SEip) GetMode() string + func (self *SEip) GetName() string + func (self *SEip) GetProjectId() string + func (self *SEip) GetStatus() string + type SHost struct + BareMetalHWInfo string + BaseBoardSerial string + BmState string + BmcIP string + BmcPort string + BmcPwd string + BmcUser string + CPUCores int + CPUHz string + CPUKind string + Cabinet string + Extra string + HostIP string + HostId string + HostName string + InCloud string + InstanceId string + IpmiMgrEnabled string + IsBareMetal string + JoinTime time.Time + Location string + Manufacturer string + Memo string + Memory int + ModelId string + MonitorType string + PublicIP string + Room string + SSHMgrEnabled string + Status string + SystemSerial string + type SImage struct + Architecture string + BlockDeviceMapping string + Bootloader string + Clonemode string + ClusterId string + Contentmode string + DefaultStorageId string + Description string + DiskBus string + ExtendDisk string + Features string + Hypervisor string + ImageId string + ImageLocation string + ImageOwnerId string + ImagePath string + ImageSize int64 + ImageState string + ImageType string + IsBareMetal string + IsPublic bool + KernelId string + Name string + OSName string + OsId string + Platform string + RamdiskId string + RootDeviceName string + RootDeviceType string + ScheduleTags string + Shared string + Sharemode string + StateReason string + StorageId string + func (i *SImage) GetBios() cloudprovider.TBiosType + func (i *SImage) GetFullOsName() string + func (i *SImage) GetOsArch() string + func (i *SImage) GetOsDist() string + func (i *SImage) GetOsLang() string + func (i *SImage) GetOsType() cloudprovider.TOsType + func (i *SImage) GetOsVersion() string + func (self *SImage) Delete(ctx context.Context) error + func (self *SImage) GetCreatedAt() time.Time + func (self *SImage) GetGlobalId() string + func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache + func (self *SImage) GetId() string + func (self *SImage) GetImageFormat() string + func (self *SImage) GetImageStatus() string + func (self *SImage) GetImageType() cloudprovider.TImageType + func (self *SImage) GetMinOsDiskSizeGb() int + func (self *SImage) GetMinRamSizeMb() int + func (self *SImage) GetName() string + func (self *SImage) GetProjectId() string + func (self *SImage) GetPublicScope() rbacscope.TRbacScope + func (self *SImage) GetSizeByte() int64 + func (self *SImage) GetSizeGB() int64 + func (self *SImage) GetStatus() string + func (self *SImage) GetSubImages() []cloudprovider.SSubImage + func (self *SImage) UEFI() bool + type SInstance struct + GroupSet []struct{ ... } + InstancesSet struct{ ... } + OwnerId string + ReservationId string + func (i *SInstance) GetOsDist() string + func (i *SInstance) GetOsLang() string + func (i *SInstance) GetOsVersion() string + func (self *SInstance) AttachDisk(ctx context.Context, diskId string) error + func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error + func (self *SInstance) CreateInstanceSnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudInstanceSnapshot, error) + func (self *SInstance) DeleteVM(ctx context.Context) error + func (self *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error + func (self *SInstance) DetachDisk(ctx context.Context, diskId string) error + func (self *SInstance) GetBios() cloudprovider.TBiosType + func (self *SInstance) GetBootOrder() string + func (self *SInstance) GetError() error + func (self *SInstance) GetFullOsName() string + func (self *SInstance) GetGlobalId() string + func (self *SInstance) GetHostname() string + func (self *SInstance) GetHypervisor() string + func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error) + func (self *SInstance) GetIEIP() (cloudprovider.ICloudEIP, error) + func (self *SInstance) GetIHost() cloudprovider.ICloudHost + func (self *SInstance) GetIHostId() string + func (self *SInstance) GetINics() ([]cloudprovider.ICloudNic, error) + func (self *SInstance) GetId() string + func (self *SInstance) GetInstanceSnapshot(id string) (cloudprovider.ICloudInstanceSnapshot, error) + func (self *SInstance) GetInstanceSnapshots() ([]cloudprovider.ICloudInstanceSnapshot, error) + func (self *SInstance) GetInstanceType() string + func (self *SInstance) GetMachine() string + func (self *SInstance) GetName() string + func (self *SInstance) GetOsArch() string + func (self *SInstance) GetOsType() cloudprovider.TOsType + func (self *SInstance) GetProjectId() string + func (self *SInstance) GetSecurityGroupIds() ([]string, error) + func (self *SInstance) GetStatus() string + func (self *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error) + func (self *SInstance) GetVcpuCount() int + func (self *SInstance) GetVdi() string + func (self *SInstance) GetVga() string + func (self *SInstance) GetVmemSizeMB() int + func (self *SInstance) RebuildRoot(ctx context.Context, config *cloudprovider.SManagedVMRebuildRootConfig) (string, error) + func (self *SInstance) Refresh() error + func (self *SInstance) ResetToInstanceSnapshot(ctx context.Context, idStr string) error + func (self *SInstance) ResumeVM(ctx context.Context) error + func (self *SInstance) SetSecurityGroups(secgroupIds []string) error + func (self *SInstance) StartVM(ctx context.Context) error + func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error + func (self *SInstance) SuspendVM(ctx context.Context) error + func (self *SInstance) UpdateInstanceType(instanceType string) error + func (self *SInstance) UpdateUserData(userData string) error + func (self *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error + type SInstanceNic struct + Association string + Attachment struct{ ... } + AvailabilityZone string + Description string + FirstPacketLimit string + MACAddress string + Model string + NetworkInterfaceId string + NoMatchPort string + OwnerId string + PrivateDNSName string + PrivateIPAddress string + PrivateIPAddressesSet []struct{ ... } + RequesterManaged string + SourceDestCheck string + Status string + SubnetId string + VpcId string + func (self *SInstanceNic) AssignAddress(ipAddrs []string) error + func (self *SInstanceNic) AssignNAddress(count int) ([]string, error) + func (self *SInstanceNic) GetDriver() string + func (self *SInstanceNic) GetINetworkId() string + func (self *SInstanceNic) GetIP() string + func (self *SInstanceNic) GetId() string + func (self *SInstanceNic) GetMAC() string + func (self *SInstanceNic) GetSubAddress() ([]string, error) + func (self *SInstanceNic) InClassicNetwork() bool + func (self *SInstanceNic) UnassignAddress(ipAddrs []string) error + type SInstanceSnapshot struct + CreateTime string + DiskOnly bool + InstanceId string + InstanceSnapshotId string + InstanceSnapshotName string + Size int64 + Status string + StatusReason string + func (self SInstanceSnapshot) Delete() error + func (self SInstanceSnapshot) GetCreatedAt() time.Time + func (self SInstanceSnapshot) GetDescription() string + func (self SInstanceSnapshot) GetGlobalId() string + func (self SInstanceSnapshot) GetId() string + func (self SInstanceSnapshot) GetName() string + func (self SInstanceSnapshot) GetProjectId() string + func (self SInstanceSnapshot) GetStatus() string + func (self SInstanceSnapshot) GetSysTags() map[string]string + func (self SInstanceSnapshot) GetTags() (map[string]string, error) + func (self SInstanceSnapshot) IsEmulated() bool + func (self SInstanceSnapshot) Refresh() error + func (self SInstanceSnapshot) SetTags(tags map[string]string, replace bool) error + type SInstanceType struct + Available int + Cpu int + Description string + DisplayName string + InstanceType string + Max int + Ram int + func (insType *SInstanceType) Delete() error + func (insType *SInstanceType) GetAttachedDiskCount() int + func (insType *SInstanceType) GetAttachedDiskSizeGB() int + func (insType *SInstanceType) GetAttachedDiskType() string + func (insType *SInstanceType) GetCpuArch() string + func (insType *SInstanceType) GetCpuCoreCount() int + func (insType *SInstanceType) GetCreatedAt() time.Time + func (insType *SInstanceType) GetDataDiskMaxCount() int + func (insType *SInstanceType) GetDataDiskTypes() string + func (insType *SInstanceType) GetDescription() string + func (insType *SInstanceType) GetGlobalId() string + func (insType *SInstanceType) GetGpuAttachable() bool + func (insType *SInstanceType) GetGpuCount() string + func (insType *SInstanceType) GetGpuMaxCount() int + func (insType *SInstanceType) GetGpuSpec() string + func (insType *SInstanceType) GetId() string + func (insType *SInstanceType) GetInstanceTypeCategory() string + func (insType *SInstanceType) GetInstanceTypeFamily() string + func (insType *SInstanceType) GetMemorySizeMB() int + func (insType *SInstanceType) GetName() string + func (insType *SInstanceType) GetNicMaxCount() int + func (insType *SInstanceType) GetNicType() string + func (insType *SInstanceType) GetOsName() string + func (insType *SInstanceType) GetPostpaidStatus() string + func (insType *SInstanceType) GetPrepaidStatus() string + func (insType *SInstanceType) GetStatus() string + func (insType *SInstanceType) GetSysDiskMaxSizeGB() int + func (insType *SInstanceType) GetSysDiskMinSizeGB() int + func (insType *SInstanceType) GetSysDiskResizable() bool + func (insType *SInstanceType) GetSysDiskType() string + func (insType *SInstanceType) GetSysTags() map[string]string + func (insType *SInstanceType) GetTags() (map[string]string, error) + func (insType *SInstanceType) IsEmulated() bool + func (insType *SInstanceType) Refresh() error + func (insType *SInstanceType) SetTags(tags map[string]string, replace bool) error + type SNetwork struct + Active string + AvailabilityZone string + AvailableIPAddressCount string + Broadcast string + CheckIP string + CidrBlock string + DefaultForAz string + Description string + DvsPortGroup string + DvswitchName string + FloatingPool string + IPAddressCount string + IPVersion string + Index string + IsManagedNetwork string + MapPublicIPOnLaunch string + MicroSegmentation string + NetName string + Network string + NetworkFrom string + NetworkMask string + NetworkNode string + NetworkTo string + ResStatus string + Router string + RouterCc string + RouterCc2 string + RouterId string + RouterMac string + State string + StaticPool string + SubnetId string + SubnetName string + UserName string + VlanNum string + VpcId string + VpcIsPublic string + VpcShared string + func (self *SNetwork) Delete() error + func (self *SNetwork) GetAllocTimeoutSeconds() int + func (self *SNetwork) GetGateway() string + func (self *SNetwork) GetGlobalId() string + func (self *SNetwork) GetIWire() cloudprovider.ICloudWire + func (self *SNetwork) GetId() string + func (self *SNetwork) GetIpEnd() string + func (self *SNetwork) GetIpMask() int8 + func (self *SNetwork) GetIpStart() string + func (self *SNetwork) GetName() string + func (self *SNetwork) GetProjectId() string + func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope + func (self *SNetwork) GetServerType() string + func (self *SNetwork) GetStatus() string + type SNode struct + ClusterId string + CpuCores int + CpuMax int + CpuModel string + CpuNode int + CpuSockets int + CpuUsed int + DiskMax int64 + DiskNode int64 + DiskUsed int + MemNode int + MemoryMax int + MemoryUsed int + NodeId string + NodeName string + ScheduleTags string + Status string + func (node *SNode) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error) + func (self *SNode) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error) + func (self *SNode) GetAccessIp() string + func (self *SNode) GetAccessMac() string + func (self *SNode) GetCpuCmtbound() float32 + func (self *SNode) GetCpuCount() int + func (self *SNode) GetCpuDesc() string + func (self *SNode) GetCpuMhz() int + func (self *SNode) GetEnabled() bool + func (self *SNode) GetGlobalId() string + func (self *SNode) GetHostStatus() string + func (self *SNode) GetHostType() string + func (self *SNode) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (self *SNode) GetIStorages() ([]cloudprovider.ICloudStorage, error) + func (self *SNode) GetIVMById(id string) (cloudprovider.ICloudVM, error) + func (self *SNode) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (self *SNode) GetId() string + func (self *SNode) GetIsMaintenance() bool + func (self *SNode) GetMemCmtbound() float32 + func (self *SNode) GetMemSizeMB() int + func (self *SNode) GetName() string + func (self *SNode) GetNodeCount() int8 + func (self *SNode) GetNodeStatus() string + func (self *SNode) GetNodeType() string + func (self *SNode) GetReservedMemoryMb() int + func (self *SNode) GetSN() string + func (self *SNode) GetSchedtags() ([]string, error) + func (self *SNode) GetStatus() string + func (self *SNode) GetStorageSizeMB() int64 + func (self *SNode) GetStorageType() string + func (self *SNode) GetSysInfo() jsonutils.JSONObject + func (self *SNode) GetVersion() string + type SQuotas struct + HardLimit int + InUse int + OwnerId string + Resource string + ResourceEn string + ResourceZh string + type SRegion struct + Hypervisor string + NetworkMode string + RegionEndpoint string + RegionId string + RegionName string + func (insType *SRegion) GetISkus() ([]cloudprovider.ICloudSku, error) + func (insType *SRegion) GetInstanceTypes() ([]SInstanceType, error) + func (region *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, error) + func (self *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error) + func (self *SRegion) CreateSecurityGroupRules(secGrpId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) error + func (self *SRegion) GetCapabilities() []string + func (self *SRegion) GetClient() *SBingoCloudClient + func (self *SRegion) GetCloudEnv() string + func (self *SRegion) GetClusters() ([]SCluster, error) + func (self *SRegion) GetDisk(id string) (*SDisk, error) + func (self *SRegion) GetDisks(id string, maxResult int, nextToken string) ([]SDisk, string, error) + func (self *SRegion) GetEips(ip, instanceId, nextToken string) ([]SEip, string, error) + func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo + func (self *SRegion) GetGlobalId() string + func (self *SRegion) GetHosts(nextToken string) ([]SHost, string, error) + func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable + func (self *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error) + func (self *SRegion) GetIEips() ([]cloudprovider.ICloudEIP, error) + func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error) + func (self *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error) + func (self *SRegion) GetISecurityGroupById(id string) (cloudprovider.ICloudSecurityGroup, error) + func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error) + func (self *SRegion) GetISnapshotById(id string) (cloudprovider.ICloudSnapshot, error) + func (self *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error) + func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error) + func (self *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error) + func (self *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error) + func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error) + func (self *SRegion) GetIVpcs() ([]cloudprovider.ICloudVpc, error) + func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error) + func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error) + func (self *SRegion) GetId() string + func (self *SRegion) GetImageById(id string) (*SImage, error) + func (self *SRegion) GetImages(id, nextToken string) ([]SImage, string, error) + func (self *SRegion) GetInstanceNics(insId string) ([]SInstanceNic, error) + func (self *SRegion) GetInstances(id, nodeId string, maxResult int, nextToken string) ([]SInstance, string, error) + func (self *SRegion) GetName() string + func (self *SRegion) GetNetworks(id, clusterId, vpcId string) ([]SNetwork, error) + func (self *SRegion) GetNodes(clusterId, nodeId string) ([]SNode, error) + func (self *SRegion) GetProvider() string + func (self *SRegion) GetQuotas() ([]SQuotas, error) + func (self *SRegion) GetSecurityGroups(id, name, nextToken string) ([]SSecurityGroup, string, error) + func (self *SRegion) GetStatus() string + func (self *SRegion) GetStorages(nextToken string) ([]SStorage, string, error) + func (self *SRegion) GetVpcs(id string) ([]SVpc, error) + func (self *SRegion) GetZones() ([]SZone, error) + type SSecurityGroup struct + ComplexIPPermissions string + ComplexIPPermissionsEgress string + DisplayName string + GroupDescription string + GroupId string + GroupName string + IPPermissionType string + IPPermissions []IPPermissions + IPPermissionsEgress []IPPermissions + OwnerId 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) GetReferences() ([]cloudprovider.SecurityGroupReference, error) + func (self *SSecurityGroup) GetRules() ([]cloudprovider.ISecurityGroupRule, error) + func (self *SSecurityGroup) GetStatus() string + func (self *SSecurityGroup) GetVpcId() string + type SSnapshot struct + BackupId string + Description string + OwnerId string + Progress string + SnapshotId string + SnapshotName string + StartTime string + Status string + VolumeId string + VolumeSize string + func (self SSnapshot) Delete() error + func (self SSnapshot) GetCreatedAt() time.Time + func (self SSnapshot) GetDescription() string + func (self SSnapshot) GetDiskId() string + func (self SSnapshot) GetDiskType() string + func (self SSnapshot) GetGlobalId() string + func (self SSnapshot) GetId() string + func (self SSnapshot) GetName() string + func (self SSnapshot) GetProjectId() string + func (self SSnapshot) GetSizeMb() int32 + func (self SSnapshot) GetStatus() string + func (self SSnapshot) GetSysTags() map[string]string + func (self SSnapshot) GetTags() (map[string]string, error) + func (self SSnapshot) IsEmulated() bool + func (self SSnapshot) Refresh() error + func (self SSnapshot) SetTags(tags map[string]string, replace bool) error + type SStorage struct + ClusterId string + Disabled string + DrCloudId string + FileFormat string + IsDRStorage string + Location string + ParameterSet []struct{ ... } + ResUsage string + ScheduleTags string + SpaceMax int64 + SpaceUsed int64 + StorageId string + StorageName string + StorageType string + UsedBy string + func (self *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error) + func (self *SStorage) DisableSync() bool + func (self *SStorage) GetCapacityMB() int64 + func (self *SStorage) GetCapacityUsedMB() int64 + func (self *SStorage) GetEnabled() bool + func (self *SStorage) GetGlobalId() string + func (self *SStorage) GetIDiskById(id string) (cloudprovider.ICloudDisk, error) + func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error) + func (self *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache + func (self *SStorage) GetIZone() cloudprovider.ICloudZone + func (self *SStorage) GetId() string + func (self *SStorage) GetMediumType() string + func (self *SStorage) GetMountPoint() string + func (self *SStorage) GetName() string + func (self *SStorage) GetStatus() string + func (self *SStorage) GetStorageConf() jsonutils.JSONObject + func (self *SStorage) GetStorageType() string + func (self *SStorage) IsSysDiskStore() bool + type SStoragecache struct + func (self *SStoragecache) GetGlobalId() string + func (self *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error) + func (self *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error) + func (self *SStoragecache) GetIImageById(id string) (cloudprovider.ICloudImage, error) + func (self *SStoragecache) GetId() string + func (self *SStoragecache) GetName() string + func (self *SStoragecache) GetPath() string + func (self *SStoragecache) GetStatus() string + func (self *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, ...) (string, error) + type SVpc struct + AsGateway string + CidrBlock string + Description string + DhcpOptionsId string + GatewayId string + InstanceTenancy string + IsDefault string + IsPublicNetwork string + OwnerId string + Provider string + RequestId string + Shared string + State string + SubnetPolicy string + VlanNum string + VpcId string + VpcName string + WanCode string + func (self *SVpc) Delete() error + func (self *SVpc) GetCidrBlock() string + func (self *SVpc) GetGlobalId() string + func (self *SVpc) GetIRouteTableById(id string) (cloudprovider.ICloudRouteTable, error) + func (self *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error) + func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error) + func (self *SVpc) GetIWireById(id string) (cloudprovider.ICloudWire, error) + func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error) + func (self *SVpc) GetId() string + func (self *SVpc) GetIsDefault() bool + func (self *SVpc) GetName() string + func (self *SVpc) GetRegion() cloudprovider.ICloudRegion + func (self *SVpc) GetStatus() string + type SWire struct + func (self *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error) + func (self *SWire) GetBandwidth() int + func (self *SWire) GetGlobalId() string + func (self *SWire) GetINetworkById(id string) (cloudprovider.ICloudNetwork, error) + func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error) + func (self *SWire) GetIVpc() cloudprovider.ICloudVpc + func (self *SWire) GetIZone() cloudprovider.ICloudZone + func (self *SWire) GetId() string + func (self *SWire) GetName() string + func (self *SWire) GetStatus() string + func (self *SWire) IsEmulated() bool + type SZone struct + DisplayName string + ZoneName string + ZoneState string + type SecurityGroupCreateOutput struct + GroupId string + Return bool