Documentation
¶
Index ¶
- Constants
- Variables
- type AttachmentSet
- type BingoCloudConfig
- type BingoTags
- type DatapointMember
- type Datapoints
- type IPPermissions
- 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
- type SAccount
- type SBingoCloudClient
- 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
- 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
- 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
- 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
- type SImage
- func (self *SImage) Delete(ctx context.Context) error
- func (i *SImage) GetBios() cloudprovider.TBiosType
- func (self *SImage) GetCreatedAt() time.Time
- func (i *SImage) GetFullOsName() string
- 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 (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) 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
- 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 (i *SInstance) GetOsDist() string
- func (i *SInstance) GetOsLang() string
- func (self *SInstance) GetOsType() cloudprovider.TOsType
- func (i *SInstance) GetOsVersion() string
- 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
- 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
- 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
- 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
- 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
- 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 (node *SNode) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
- 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
- type SRegion
- 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 (insType *SRegion) GetISkus() ([]cloudprovider.ICloudSku, 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 (region *SRegion) GetIVMs() ([]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 (insType *SRegion) GetInstanceTypes() ([]SInstanceType, 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
- 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
- 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
- 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
- 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
- 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
- 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
- type SecurityGroupCreateOutput
Constants ¶
View Source
const ( CLOUD_PROVIDER_BINGO_CLOUD = api.CLOUD_PROVIDER_BINGO_CLOUD MAX_RESULT = 20 )
Variables ¶
View Source
var INSTANCE_CATEGORY_MAP = map[string]string{
"m1": "M1代",
"m2": "M2代",
"m3": "M3代",
"c1": "C1代",
"c2": "C2代",
"c3": "C3代",
"t1": "T1代",
"t2": "T2代",
"t3": "T3代",
}
Functions ¶
This section is empty.
Types ¶
type AttachmentSet ¶
type BingoCloudConfig ¶
type BingoCloudConfig struct {
// contains filtered or unexported fields
}
func NewBingoCloudClientConfig ¶
func NewBingoCloudClientConfig(endpoint, accessKey, secretKey string) *BingoCloudConfig
func (*BingoCloudConfig) CloudproviderConfig ¶
func (cfg *BingoCloudConfig) CloudproviderConfig(cpcfg cloudprovider.ProviderConfig) *BingoCloudConfig
func (*BingoCloudConfig) Debug ¶
func (cfg *BingoCloudConfig) Debug(debug bool) *BingoCloudConfig
type BingoTags ¶
func (*BingoTags) GetSysTags ¶
type DatapointMember ¶
type DatapointMember struct {
Average float64
Maximum float64
Minimum float64
SampleCount float64
Sum float64
Timestamp time.Time
Unit string
}
func (DatapointMember) GetValue ¶
func (self DatapointMember) GetValue() float64
type Datapoints ¶
type Datapoints struct {
Member []DatapointMember
}
type IPPermissions ¶
type IPPermissions struct {
BoundType string `json:"boundType"`
Description string `json:"description"`
FromPort int `json:"fromPort"`
IPProtocol string `json:"ipProtocol"`
Groups []struct {
GroupId string
GroupName string
} `json:"groups"`
IPRanges []struct {
CIDRIP string `json:"cidrIp"`
} `json:"ipRanges"`
L2Accept string `json:"l2Accept"`
PermissionId string `json:"permissionId"`
Policy string `json:"policy"`
ToPort int `json:"toPort"`
// contains filtered or unexported fields
}
func (*IPPermissions) Delete ¶
func (self *IPPermissions) Delete() error
func (*IPPermissions) GetAction ¶
func (self *IPPermissions) GetAction() secrules.TSecurityRuleAction
func (*IPPermissions) GetCIDRs ¶
func (self *IPPermissions) GetCIDRs() []string
func (*IPPermissions) GetDescription ¶
func (self *IPPermissions) GetDescription() string
func (*IPPermissions) GetDirection ¶
func (self *IPPermissions) GetDirection() secrules.TSecurityRuleDirection
func (*IPPermissions) GetGlobalId ¶
func (self *IPPermissions) GetGlobalId() string
func (*IPPermissions) GetPorts ¶
func (self *IPPermissions) GetPorts() string
func (*IPPermissions) GetPriority ¶
func (self *IPPermissions) GetPriority() int
func (*IPPermissions) GetProtocol ¶
func (self *IPPermissions) GetProtocol() string
func (*IPPermissions) Update ¶
func (self *IPPermissions) Update(opts *cloudprovider.SecurityGroupRuleUpdateOptions) error
type MetricOutput ¶
type MetricOutput struct {
Datapoints Datapoints
ObjName string
Period int64
}
type SBingoCloudClient ¶
type SBingoCloudClient struct {
*BingoCloudConfig
// contains filtered or unexported fields
}
func NewBingoCloudClient ¶
func NewBingoCloudClient(cfg *BingoCloudConfig) (*SBingoCloudClient, error)
func (*SBingoCloudClient) DescribeMetricList ¶
func (self *SBingoCloudClient) DescribeMetricList(ns, metricNm, dimensionName, dimensionValue string, since time.Time, until time.Time) (*MetricOutput, error)
func (*SBingoCloudClient) GetAccountId ¶
func (self *SBingoCloudClient) GetAccountId() string
func (*SBingoCloudClient) GetCapabilities ¶
func (self *SBingoCloudClient) GetCapabilities() []string
func (*SBingoCloudClient) GetEcsMetrics ¶
func (self *SBingoCloudClient) GetEcsMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SBingoCloudClient) GetEnrollmentAccounts ¶
func (self *SBingoCloudClient) GetEnrollmentAccounts() ([]cloudprovider.SEnrollmentAccount, error)
func (*SBingoCloudClient) GetHostMetrics ¶
func (self *SBingoCloudClient) GetHostMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SBingoCloudClient) GetIRegionById ¶
func (self *SBingoCloudClient) GetIRegionById(id string) (cloudprovider.ICloudRegion, error)
func (*SBingoCloudClient) GetIRegions ¶
func (self *SBingoCloudClient) GetIRegions() []cloudprovider.ICloudRegion
func (*SBingoCloudClient) GetMetrics ¶
func (self *SBingoCloudClient) GetMetrics(opts *cloudprovider.MetricListOptions) ([]cloudprovider.MetricValues, error)
func (*SBingoCloudClient) GetRegion ¶
func (self *SBingoCloudClient) GetRegion(id string) (*SRegion, error)
func (*SBingoCloudClient) GetRegions ¶
func (self *SBingoCloudClient) GetRegions() ([]SRegion, error)
func (*SBingoCloudClient) GetSubAccounts ¶
func (self *SBingoCloudClient) GetSubAccounts() ([]cloudprovider.SSubAccount, error)
type SCluster ¶
type SCluster struct {
multicloud.SResourceBase
multicloud.STagBase
ClusterControllerSet []struct {
Address string
Role string
}
ClusterId string
ClusterName string
CreateVolumeMode string
ExtendDiskMode string
Hypervisor string
MaxVolumeStorage string
SchedPolicy string
Status string
// contains filtered or unexported fields
}
func (*SCluster) GetGlobalId ¶
func (*SCluster) GetI18n ¶
func (self *SCluster) GetI18n() cloudprovider.SModelI18nTable
func (*SCluster) GetIHostById ¶
func (self *SCluster) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SCluster) GetIHosts ¶
func (self *SCluster) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SCluster) GetIRegion ¶
func (self *SCluster) GetIRegion() cloudprovider.ICloudRegion
func (*SCluster) GetIStorageById ¶
func (self *SCluster) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SCluster) GetIStorages ¶
func (self *SCluster) GetIStorages() ([]cloudprovider.ICloudStorage, error)
type SDisk ¶
type SDisk struct {
BingoTags
multicloud.SDisk
AttachmentSet []AttachmentSet `json:"attachmentSet"`
AvailabilityZone string `json:"availabilityZone"`
CreateTime string `json:"createTime"`
Description string `json:"description"`
DetachBehavior string `json:"detachBehavior"`
Goal string `json:"goal"`
Iops string `json:"iops"`
IsDeductQuota string `json:"isDeductQuota"`
IsEncrypt string `json:"isEncrypt"`
IsForSleepInst string `json:"isForSleepInst"`
IsMirrorVolume string `json:"isMirrorVolume"`
IsMultiAttach string `json:"isMultiAttach"`
IsOneInst string `json:"isOneInst"`
IsRoot string `json:"isRoot"`
Location string `json:"location"`
MirrorFrom string `json:"mirrorFrom"`
MirrorProcess string `json:"mirrorProcess"`
MirrorStatus string `json:"mirrorStatus"`
NodeId string `json:"nodeId"`
Owner string `json:"owner"`
Passphrase string `json:"passphrase"`
Readonly string `json:"readonly"`
Size int `json:"size"`
SnapshotId string `json:"snapshotId"`
Status string `json:"status"`
StorageId string `json:"storageId"`
VolumeId string `json:"volumeId"`
VolumeName string `json:"volumeName"`
// contains filtered or unexported fields
}
func (*SDisk) CreateISnapshot ¶
func (self *SDisk) CreateISnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetAccessPath ¶
func (*SDisk) GetCacheMode ¶
func (*SDisk) GetDiskFormat ¶
func (*SDisk) GetDiskSizeMB ¶
func (*SDisk) GetDiskType ¶
func (*SDisk) GetFsFormat ¶
func (*SDisk) GetGlobalId ¶
func (*SDisk) GetISnapshots ¶
func (self *SDisk) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SDisk) GetIStorage ¶
func (self *SDisk) GetIStorage() (cloudprovider.ICloudStorage, error)
func (*SDisk) GetIStorageId ¶
func (*SDisk) GetIsAutoDelete ¶
func (*SDisk) GetIsNonPersistent ¶
func (*SDisk) GetMountpoint ¶
func (*SDisk) GetTemplateId ¶
type SEip ¶
type SEip struct {
multicloud.SEipBase
BingoTags
AddressId string
AddressType string
Bandtype string
Bandwidth int
CanAssociate bool
InstanceId string
Owner string
PublicIp string
SubnetId string
VpcId string
// contains filtered or unexported fields
}
func (*SEip) Associate ¶
func (self *SEip) Associate(conf *cloudprovider.AssociateConfig) error
func (*SEip) ChangeBandwidth ¶
func (*SEip) Dissociate ¶
func (*SEip) GetAssociationExternalId ¶
func (*SEip) GetAssociationType ¶
func (*SEip) GetBandwidth ¶
func (*SEip) GetGlobalId ¶
func (*SEip) GetINetworkId ¶
func (*SEip) GetInternetChargeType ¶
func (*SEip) GetProjectId ¶
type SHost ¶
type SHost struct {
CPUHz string `json:"CpuHz"`
ModelId string `json:"ModelId"`
MonitorType string `json:"MonitorType"`
IpmiMgrEnabled string `json:"IpmiMgrEnabled"`
JoinTime time.Time `json:"JoinTime"`
IsBareMetal string `json:"isBareMetal"`
BmcPwd string `json:"BmcPwd"`
Extra string `json:"Extra"`
InstanceId string `json:"instanceId"`
Manufacturer string `json:"Manufacturer"`
BaseBoardSerial string `json:"BaseBoardSerial"`
BareMetalHWInfo string `json:"BareMetalHWInfo"`
BmcPort string `json:"BmcPort"`
CPUCores int `json:"CpuCores"`
BmcIP string `json:"BmcIp"`
Cabinet string `json:"Cabinet"`
Memo string `json:"Memo"`
HostIP string `json:"HostIp"`
Memory int `json:"Memory"`
HostId string `json:"HostId"`
CPUKind string `json:"CpuKind"`
SystemSerial string `json:"SystemSerial"`
InCloud string `json:"InCloud"`
Location string `json:"Location"`
BmcUser string `json:"BmcUser"`
PublicIP string `json:"PublicIp"`
Status string `json:"Status"`
Room string `json:"Room"`
SSHMgrEnabled string `json:"SshMgrEnabled"`
BmState string `json:"bmState"`
HostName string `json:"HostName"`
}
type SImage ¶
type SImage struct {
multicloud.SImageBase
BingoTags
Architecture string `json:"architecture"`
BlockDeviceMapping string `json:"blockDeviceMapping"`
Bootloader string `json:"bootloader"`
Clonemode string `json:"clonemode"`
ClusterId string `json:"clusterId"`
Contentmode string `json:"contentmode"`
DefaultStorageId string `json:"defaultStorageId"`
Description string `json:"description"`
DiskBus string `json:"diskBus"`
ExtendDisk string `json:"extendDisk"`
Features string `json:"features"`
Hypervisor string `json:"hypervisor"`
ImageId string `json:"imageId"`
ImageLocation string `json:"imageLocation"`
ImageOwnerId string `json:"imageOwnerId"`
ImagePath string `json:"imagePath"`
ImageSize int64 `json:"imageSize"`
ImageState string `json:"imageState"`
ImageType string `json:"imageType"`
IsBareMetal string `json:"isBareMetal"`
IsPublic bool `json:"isPublic"`
KernelId string `json:"kernelId"`
Name string `json:"name"`
OsId string `json:"osId"`
OSName string `json:"osName"`
Platform string `json:"platform"`
RamdiskId string `json:"ramdiskId"`
RootDeviceName string `json:"rootDeviceName"`
RootDeviceType string `json:"rootDeviceType"`
ScheduleTags string `json:"scheduleTags"`
StateReason string `json:"stateReason"`
StorageId string `json:"storageId"`
// contains filtered or unexported fields
}
func (*SImage) GetBios ¶
func (i *SImage) GetBios() cloudprovider.TBiosType
func (*SImage) GetCreatedAt ¶
func (*SImage) GetFullOsName ¶
func (*SImage) GetGlobalId ¶
func (*SImage) GetIStoragecache ¶
func (self *SImage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SImage) GetImageFormat ¶
func (*SImage) GetImageStatus ¶
func (*SImage) GetImageType ¶
func (self *SImage) GetImageType() cloudprovider.TImageType
func (*SImage) GetMinOsDiskSizeGb ¶
func (*SImage) GetMinRamSizeMb ¶
func (*SImage) GetOsType ¶
func (i *SImage) GetOsType() cloudprovider.TOsType
func (*SImage) GetOsVersion ¶
func (*SImage) GetProjectId ¶
func (*SImage) GetPublicScope ¶
func (self *SImage) GetPublicScope() rbacscope.TRbacScope
func (*SImage) GetSizeByte ¶
func (*SImage) GetSubImages ¶
func (self *SImage) GetSubImages() []cloudprovider.SSubImage
type SInstance ¶
type SInstance struct {
BingoTags
multicloud.SInstanceBase
ReservationId string `json:"reservationId"`
OwnerId string
GroupSet []struct {
GroupId string
GroupName string
}
InstancesSet struct {
InstanceId string `json:"instanceId"`
InstanceName string `json:"instanceName"`
HostName string `json:"hostName"`
ImageId string `json:"imageId"`
InstanceState struct {
Code int `json:"code"`
Name string `json:"name"`
PendingProgress string `json:"pendingProgress"`
} `json:"instanceState"`
PrivateDNSName string `json:"privateDnsName"`
DNSName string `json:"dnsName"`
PrivateIPAddress string `json:"privateIpAddress"`
PrivateIPAddresses string `json:"privateIpAddresses"`
IPAddress string `json:"ipAddress"`
NifInfo string `json:"nifInfo"`
KeyName string `json:"keyName"`
AmiLaunchIndex int `json:"amiLaunchIndex"`
ProductCodesSet []struct {
ProductCode string `json:"productCode"`
} `json:"productCodesSet"`
InstanceType string `json:"instanceType"`
VmtypeCPU int `json:"vmtype_cpu"`
VmtypeMem int `json:"vmtype_mem"`
VmtypeDisk int `json:"vmtype_disk"`
VmtypeGpu int `json:"vmtype_gpu"`
VmtypeSsd int `json:"vmtype_ssd"`
VmtypeHdd int `json:"vmtype_hdd"`
VmtypeHba int `json:"vmtype_hba"`
VmtypeSriov int `json:"vmtype_sriov"`
LaunchTime time.Time `json:"launchTime"`
RootDeviceType string `json:"rootDeviceType"`
HostAddress string `json:"hostAddress"`
Platform string `json:"platform"`
UseCompactMode bool `json:"useCompactMode"`
ExtendDisk bool `json:"extendDisk"`
Placement struct {
AvailabilityZone string `json:"availabilityZone"`
} `json:"placement"`
Namespace string `json:"namespace"`
KernelId string `json:"kernelId"`
RamdiskId string `json:"ramdiskId"`
OperName string `json:"operName"`
OperProgress int `json:"operProgress"`
Features string `json:"features"`
Monitoring struct {
State string `json:"state"`
} `json:"monitoring"`
SubnetId string `json:"subnetId"`
VpcId string `json:"vpcId"`
StorageId string `json:"storageId"`
DisableAPITermination bool `json:"disableApiTermination"`
Vncdisabled bool `json:"vncdisabled"`
StartTime time.Time `json:"startTime"`
CustomStatus string `json:"customStatus"`
SystemStatus int `json:"systemStatus"`
NetworkStatus int `json:"networkStatus"`
ScheduleTags string `json:"scheduleTags"`
StorageScheduleTags string `json:"storageScheduleTags"`
IsEncrypt bool `json:"isEncrypt"`
IsImported bool `json:"isImported"`
Ec2Version string `json:"ec2Version"`
Passphrase string `json:"passphrase"`
DrsEnabled bool `json:"drs_enabled"`
LaunchPriority int `json:"launchPriority"`
CPUPriority int `json:"cpuPriority"`
MemPriority int `json:"memPriority"`
CPUQuota int `json:"cpuQuota"`
AutoMigrate bool `json:"autoMigrate"`
DrMirrorId string `json:"drMirrorId"`
BlockDeviceMapping []struct {
DeviceName string `json:"deviceName"`
Ebs struct {
AttachTime time.Time `json:"attachTime"`
DeleteOnTermination bool `json:"deleteOnTermination"`
Status string `json:"status"`
VolumeId string `json:"volumeId"`
Size int `json:"size"`
} `json:"ebs"`
} `json:"blockDeviceMapping"`
EnableLiveScaleup bool `json:"enableLiveScaleup"`
ImageBytes int64 `json:"imageBytes"`
StatusReason string `json:"statusReason"`
Hypervisor string `json:"hypervisor"`
Bootloader string `json:"bootloader"`
BmMachineId string `json:"bmMachineId"`
}
// contains filtered or unexported fields
}
func (*SInstance) AttachDisk ¶
func (*SInstance) ChangeConfig ¶
func (self *SInstance) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedVMChangeConfig) error
func (*SInstance) CreateInstanceSnapshot ¶
func (self *SInstance) CreateInstanceSnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudInstanceSnapshot, error)
func (*SInstance) DeployVM ¶
func (self *SInstance) DeployVM(ctx context.Context, opts *cloudprovider.SInstanceDeployOptions) error
func (*SInstance) DetachDisk ¶
func (*SInstance) GetBios ¶
func (self *SInstance) GetBios() cloudprovider.TBiosType
func (*SInstance) GetBootOrder ¶
func (*SInstance) GetFullOsName ¶
func (*SInstance) GetGlobalId ¶
func (*SInstance) GetHostname ¶
func (*SInstance) GetHypervisor ¶
func (*SInstance) GetIDisks ¶
func (self *SInstance) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SInstance) GetIHost ¶
func (self *SInstance) GetIHost() cloudprovider.ICloudHost
func (*SInstance) GetIHostId ¶
func (*SInstance) GetInstanceSnapshot ¶
func (self *SInstance) GetInstanceSnapshot(id string) (cloudprovider.ICloudInstanceSnapshot, error)
func (*SInstance) GetInstanceSnapshots ¶
func (self *SInstance) GetInstanceSnapshots() ([]cloudprovider.ICloudInstanceSnapshot, error)
func (*SInstance) GetInstanceType ¶
func (*SInstance) GetMachine ¶
func (*SInstance) GetOsType ¶
func (self *SInstance) GetOsType() cloudprovider.TOsType
func (*SInstance) GetOsVersion ¶
func (*SInstance) GetProjectId ¶
func (*SInstance) GetSecurityGroupIds ¶
func (*SInstance) GetVNCInfo ¶
func (self *SInstance) GetVNCInfo(input *cloudprovider.ServerVncInput) (*cloudprovider.ServerVncOutput, error)
func (*SInstance) GetVcpuCount ¶
func (*SInstance) GetVmemSizeMB ¶
func (*SInstance) RebuildRoot ¶
func (self *SInstance) RebuildRoot(ctx context.Context, config *cloudprovider.SManagedVMRebuildRootConfig) (string, error)
func (*SInstance) ResetToInstanceSnapshot ¶
func (*SInstance) SetSecurityGroups ¶
func (*SInstance) StopVM ¶
func (self *SInstance) StopVM(ctx context.Context, opts *cloudprovider.ServerStopOptions) error
func (*SInstance) UpdateInstanceType ¶
func (*SInstance) UpdateUserData ¶
func (*SInstance) UpdateVM ¶
func (self *SInstance) UpdateVM(ctx context.Context, input cloudprovider.SInstanceUpdateOptions) error
type SInstanceNic ¶
type SInstanceNic struct {
Association string `json:"association"`
Attachment struct {
AttachTime string `json:"attachTime"`
AttachmentId string `json:"attachmentId"`
DeleteOnTermination string `json:"deleteOnTermination"`
DeviceIndex string `json:"deviceIndex"`
InstanceId string `json:"instanceId"`
InstanceOwnerId string `json:"instanceOwnerId"`
Status string `json:"status"`
} `json:"attachment"`
AvailabilityZone string `json:"availabilityZone"`
Description string `json:"description"`
FirstPacketLimit string `json:"firstPacketLimit"`
MACAddress string `json:"macAddress"`
Model string `json:"model"`
NetworkInterfaceId string `json:"networkInterfaceId"`
NoMatchPort string `json:"noMatchPort"`
OwnerId string `json:"ownerId"`
PrivateDNSName string `json:"privateDnsName"`
PrivateIPAddress string `json:"privateIpAddress"`
PrivateIPAddressesSet []struct {
Association string `json:"association"`
Primary string `json:"primary"`
PrivateDNSName string `json:"privateDnsName"`
PrivateIPAddress string `json:"privateIpAddress"`
} `json:"privateIpAddressesSet"`
RequesterManaged string `json:"requesterManaged"`
SourceDestCheck string `json:"sourceDestCheck"`
Status string `json:"status"`
SubnetId string `json:"subnetId"`
VpcId string `json:"vpcId"`
}
func (*SInstanceNic) AssignAddress ¶
func (self *SInstanceNic) AssignAddress(ipAddrs []string) error
func (*SInstanceNic) AssignNAddress ¶
func (self *SInstanceNic) AssignNAddress(count int) ([]string, error)
func (*SInstanceNic) GetDriver ¶
func (self *SInstanceNic) GetDriver() string
func (*SInstanceNic) GetINetworkId ¶
func (self *SInstanceNic) GetINetworkId() string
func (*SInstanceNic) GetIP ¶
func (self *SInstanceNic) GetIP() string
func (*SInstanceNic) GetId ¶
func (self *SInstanceNic) GetId() string
func (*SInstanceNic) GetMAC ¶
func (self *SInstanceNic) GetMAC() string
func (*SInstanceNic) GetSubAddress ¶
func (self *SInstanceNic) GetSubAddress() ([]string, error)
func (*SInstanceNic) InClassicNetwork ¶
func (self *SInstanceNic) InClassicNetwork() bool
func (*SInstanceNic) UnassignAddress ¶
func (self *SInstanceNic) UnassignAddress(ipAddrs []string) error
type SInstanceSnapshot ¶
type SInstanceSnapshot struct {
InstanceSnapshotId string
InstanceSnapshotName string
InstanceId string
DiskOnly bool
Size int64
Status string
StatusReason string
CreateTime string
// contains filtered or unexported fields
}
func (SInstanceSnapshot) Delete ¶
func (self SInstanceSnapshot) Delete() error
func (SInstanceSnapshot) GetCreatedAt ¶
func (self SInstanceSnapshot) GetCreatedAt() time.Time
func (SInstanceSnapshot) GetDescription ¶
func (self SInstanceSnapshot) GetDescription() string
func (SInstanceSnapshot) GetGlobalId ¶
func (self SInstanceSnapshot) GetGlobalId() string
func (SInstanceSnapshot) GetId ¶
func (self SInstanceSnapshot) GetId() string
func (SInstanceSnapshot) GetName ¶
func (self SInstanceSnapshot) GetName() string
func (SInstanceSnapshot) GetProjectId ¶
func (self SInstanceSnapshot) GetProjectId() string
func (SInstanceSnapshot) GetStatus ¶
func (self SInstanceSnapshot) GetStatus() string
func (SInstanceSnapshot) GetSysTags ¶
func (self SInstanceSnapshot) GetSysTags() map[string]string
func (SInstanceSnapshot) GetTags ¶
func (self SInstanceSnapshot) GetTags() (map[string]string, error)
func (SInstanceSnapshot) IsEmulated ¶
func (self SInstanceSnapshot) IsEmulated() bool
func (SInstanceSnapshot) Refresh ¶
func (self SInstanceSnapshot) Refresh() error
type SInstanceType ¶
type SInstanceType struct {
cloudprovider.SServerSku
InstanceType string
DisplayName string
Cpu int
Ram int
Max int
Available int
Description string
// contains filtered or unexported fields
}
func (*SInstanceType) Delete ¶
func (insType *SInstanceType) Delete() error
func (*SInstanceType) GetAttachedDiskCount ¶
func (insType *SInstanceType) GetAttachedDiskCount() int
func (*SInstanceType) GetAttachedDiskSizeGB ¶
func (insType *SInstanceType) GetAttachedDiskSizeGB() int
func (*SInstanceType) GetAttachedDiskType ¶
func (insType *SInstanceType) GetAttachedDiskType() string
func (*SInstanceType) GetCpuArch ¶
func (insType *SInstanceType) GetCpuArch() string
https://support.huaweicloud.com/productdesc-ecs/ecs_01_0066.html https://support.huaweicloud.com/ecs_faq/ecs_faq_0105.html
func (*SInstanceType) GetCpuCoreCount ¶
func (insType *SInstanceType) GetCpuCoreCount() int
func (*SInstanceType) GetCreatedAt ¶
func (insType *SInstanceType) GetCreatedAt() time.Time
func (*SInstanceType) GetDataDiskMaxCount ¶
func (insType *SInstanceType) GetDataDiskMaxCount() int
func (*SInstanceType) GetDataDiskTypes ¶
func (insType *SInstanceType) GetDataDiskTypes() string
func (*SInstanceType) GetDescription ¶
func (insType *SInstanceType) GetDescription() string
func (*SInstanceType) GetGlobalId ¶
func (insType *SInstanceType) GetGlobalId() string
func (*SInstanceType) GetGpuAttachable ¶
func (insType *SInstanceType) GetGpuAttachable() bool
func (*SInstanceType) GetGpuCount ¶
func (insType *SInstanceType) GetGpuCount() string
func (*SInstanceType) GetGpuMaxCount ¶
func (insType *SInstanceType) GetGpuMaxCount() int
func (*SInstanceType) GetGpuSpec ¶
func (insType *SInstanceType) GetGpuSpec() string
func (*SInstanceType) GetId ¶
func (insType *SInstanceType) GetId() string
func (*SInstanceType) GetInstanceTypeCategory ¶
func (insType *SInstanceType) GetInstanceTypeCategory() string
func (*SInstanceType) GetInstanceTypeFamily ¶
func (insType *SInstanceType) GetInstanceTypeFamily() string
func (*SInstanceType) GetMemorySizeMB ¶
func (insType *SInstanceType) GetMemorySizeMB() int
func (*SInstanceType) GetName ¶
func (insType *SInstanceType) GetName() string
func (*SInstanceType) GetNicMaxCount ¶
func (insType *SInstanceType) GetNicMaxCount() int
func (*SInstanceType) GetNicType ¶
func (insType *SInstanceType) GetNicType() string
func (*SInstanceType) GetOsName ¶
func (insType *SInstanceType) GetOsName() string
func (*SInstanceType) GetPostpaidStatus ¶
func (insType *SInstanceType) GetPostpaidStatus() string
func (*SInstanceType) GetPrepaidStatus ¶
func (insType *SInstanceType) GetPrepaidStatus() string
func (*SInstanceType) GetStatus ¶
func (insType *SInstanceType) GetStatus() string
func (*SInstanceType) GetSysDiskMaxSizeGB ¶
func (insType *SInstanceType) GetSysDiskMaxSizeGB() int
func (*SInstanceType) GetSysDiskMinSizeGB ¶
func (insType *SInstanceType) GetSysDiskMinSizeGB() int
func (*SInstanceType) GetSysDiskResizable ¶
func (insType *SInstanceType) GetSysDiskResizable() bool
func (*SInstanceType) GetSysDiskType ¶
func (insType *SInstanceType) GetSysDiskType() string
func (*SInstanceType) GetSysTags ¶
func (insType *SInstanceType) GetSysTags() map[string]string
func (*SInstanceType) IsEmulated ¶
func (insType *SInstanceType) IsEmulated() bool
func (*SInstanceType) Refresh ¶
func (insType *SInstanceType) Refresh() error
type SNetwork ¶
type SNetwork struct {
multicloud.SResourceBase
multicloud.STagBase
CidrBlock string `json:"cidrBlock"`
MapPublicIPOnLaunch string `json:"mapPublicIpOnLaunch"`
RouterId string `json:"routerId"`
NetworkFrom string `json:"networkFrom"`
NetworkNode string `json:"networkNode"`
IsManagedNetwork string `json:"isManagedNetwork"`
SubnetName string `json:"subnetName"`
NetworkMask string `json:"networkMask"`
NetName string `json:"netName"`
Index string `json:"index"`
VpcIsPublic string `json:"vpcIsPublic"`
Description string `json:"description"`
MicroSegmentation string `json:"microSegmentation"`
State string `json:"state"`
DefaultForAz string `json:"defaultForAz"`
Router string `json:"router"`
Active string `json:"active"`
DvswitchName string `json:"dvswitchName"`
AvailableIPAddressCount string `json:"availableIpAddressCount"`
VlanNum string `json:"vlanNum"`
RouterCc2 string `json:"router_cc2"`
ResStatus string `json:"res_status"`
IPAddressCount string `json:"ipAddressCount"`
RouterCc string `json:"router_cc"`
VpcId string `json:"vpcId"`
NetworkTo string `json:"networkTo"`
Broadcast string `json:"broadcast"`
UserName string `json:"userName"`
IPVersion string `json:"ipVersion"`
AvailabilityZone string `json:"availabilityZone"`
Network string `json:"network"`
RouterMac string `json:"router_mac"`
CheckIP string `json:"checkIp"`
FloatingPool string `json:"floatingPool"`
StaticPool string `json:"staticPool"`
DvsPortGroup string `json:"dvsPortGroup"`
SubnetId string `json:"subnetId"`
// contains filtered or unexported fields
}
func (*SNetwork) GetAllocTimeoutSeconds ¶
func (*SNetwork) GetGateway ¶
func (*SNetwork) GetGlobalId ¶
func (*SNetwork) GetIWire ¶
func (self *SNetwork) GetIWire() cloudprovider.ICloudWire
func (*SNetwork) GetIpStart ¶
func (*SNetwork) GetProjectId ¶
func (*SNetwork) GetPublicScope ¶
func (self *SNetwork) GetPublicScope() rbacscope.TRbacScope
func (*SNetwork) GetServerType ¶
type SNode ¶
type SNode struct {
multicloud.SHostBase
multicloud.STagBase
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
// contains filtered or unexported fields
}
func (*SNode) CreateVM ¶
func (self *SNode) CreateVM(desc *cloudprovider.SManagedVMCreateConfig) (cloudprovider.ICloudVM, error)
func (*SNode) GetAccessIp ¶
func (*SNode) GetAccessMac ¶
func (*SNode) GetCpuCmtbound ¶
func (*SNode) GetCpuCount ¶
func (*SNode) GetCpuDesc ¶
func (*SNode) GetEnabled ¶
func (*SNode) GetGlobalId ¶
func (*SNode) GetHostStatus ¶
func (*SNode) GetHostType ¶
func (*SNode) GetIHostNics ¶
func (node *SNode) GetIHostNics() ([]cloudprovider.ICloudHostNetInterface, error)
func (*SNode) GetIStorageById ¶
func (self *SNode) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SNode) GetIStorages ¶
func (self *SNode) GetIStorages() ([]cloudprovider.ICloudStorage, error)
func (*SNode) GetIVMById ¶
func (self *SNode) GetIVMById(id string) (cloudprovider.ICloudVM, error)
func (*SNode) GetIsMaintenance ¶
func (*SNode) GetMemCmtbound ¶
func (*SNode) GetMemSizeMB ¶
func (*SNode) GetNodeCount ¶
func (*SNode) GetNodeStatus ¶
func (*SNode) GetNodeType ¶
func (*SNode) GetReservedMemoryMb ¶
func (*SNode) GetSchedtags ¶
func (*SNode) GetStorageSizeMB ¶
func (*SNode) GetStorageType ¶
func (*SNode) GetSysInfo ¶
func (self *SNode) GetSysInfo() jsonutils.JSONObject
func (*SNode) GetVersion ¶
type SRegion ¶
type SRegion struct {
multicloud.SRegion
multicloud.SRegionEipBase
multicloud.SRegionLbBase
multicloud.SRegionOssBase
multicloud.SRegionSecurityGroupBase
multicloud.SRegionVpcBase
multicloud.SRegionZoneBase
RegionId string
RegionName string
Hypervisor string
NetworkMode string
RegionEndpoint string
// contains filtered or unexported fields
}
func (*SRegion) CreateISecurityGroup ¶
func (self *SRegion) CreateISecurityGroup(opts *cloudprovider.SecurityGroupCreateInput) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) CreateSecurityGroupRules ¶
func (self *SRegion) CreateSecurityGroupRules(secGrpId string, opts *cloudprovider.SecurityGroupRuleCreateOptions) error
func (*SRegion) GetCapabilities ¶
func (*SRegion) GetClient ¶
func (self *SRegion) GetClient() *SBingoCloudClient
func (*SRegion) GetCloudEnv ¶
func (*SRegion) GetClusters ¶
func (*SRegion) GetGeographicInfo ¶
func (self *SRegion) GetGeographicInfo() cloudprovider.SGeographicInfo
func (*SRegion) GetGlobalId ¶
func (*SRegion) GetI18n ¶
func (self *SRegion) GetI18n() cloudprovider.SModelI18nTable
func (*SRegion) GetIEipById ¶
func (self *SRegion) GetIEipById(id string) (cloudprovider.ICloudEIP, error)
func (*SRegion) GetIHostById ¶
func (self *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)
func (*SRegion) GetIHosts ¶
func (self *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)
func (*SRegion) GetISecurityGroupById ¶
func (self *SRegion) GetISecurityGroupById(id string) (cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISecurityGroups ¶
func (self *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SRegion) GetISnapshotById ¶
func (self *SRegion) GetISnapshotById(id string) (cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetISnapshots ¶
func (self *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)
func (*SRegion) GetIStorageById ¶
func (self *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)
func (*SRegion) GetIStoragecacheById ¶
func (self *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIStoragecaches ¶
func (self *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)
func (*SRegion) GetIVMById ¶
func (self *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)
func (*SRegion) GetIZoneById ¶
func (self *SRegion) GetIZoneById(id string) (cloudprovider.ICloudZone, error)
func (*SRegion) GetIZones ¶
func (self *SRegion) GetIZones() ([]cloudprovider.ICloudZone, error)
func (*SRegion) GetInstanceNics ¶
func (self *SRegion) GetInstanceNics(insId string) ([]SInstanceNic, error)
func (*SRegion) GetInstanceTypes ¶
func (insType *SRegion) GetInstanceTypes() ([]SInstanceType, error)
func (*SRegion) GetInstances ¶
func (*SRegion) GetNetworks ¶
func (*SRegion) GetProvider ¶
func (*SRegion) GetSecurityGroups ¶
func (self *SRegion) GetSecurityGroups(id, name, nextToken string) ([]SSecurityGroup, string, error)
func (*SRegion) GetStorages ¶
type SSecurityGroup ¶
type SSecurityGroup struct {
multicloud.SSecurityGroup
BingoTags
ComplexIPPermissions string `json:"complexIpPermissions"`
ComplexIPPermissionsEgress string `json:"complexIpPermissionsEgress"`
DisplayName string `json:"displayName"`
GroupDescription string `json:"groupDescription"`
GroupId string `json:"groupId"`
GroupName string `json:"groupName"`
IPPermissionType string `json:"ipPermissionType"`
IPPermissions []IPPermissions `json:"ipPermissions"`
IPPermissionsEgress []IPPermissions `json:"ipPermissionsEgress"`
OwnerId string `json:"ownerId"`
// contains filtered or unexported fields
}
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) GetReferences ¶
func (self *SSecurityGroup) GetReferences() ([]cloudprovider.SecurityGroupReference, error)
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
type SSnapshot ¶
type SSnapshot struct {
SnapshotId string
SnapshotName string
BackupId string
VolumeId string
Status string
StartTime string
Progress string
OwnerId string
VolumeSize string
Description string
// contains filtered or unexported fields
}
func (SSnapshot) GetCreatedAt ¶
func (SSnapshot) GetDescription ¶
func (SSnapshot) GetDiskType ¶
func (SSnapshot) GetGlobalId ¶
func (SSnapshot) GetProjectId ¶
func (SSnapshot) GetSysTags ¶
func (SSnapshot) IsEmulated ¶
type SStorage ¶
type SStorage struct {
multicloud.STagBase
multicloud.SStorageBase
StorageId string `json:"storageId"`
Location string `json:"location"`
UsedBy string `json:"usedBy"`
SpaceUsed int64 `json:"spaceUsed"`
StorageName string `json:"storageName"`
FileFormat string `json:"fileFormat"`
Disabled string `json:"disabled"`
SpaceMax int64 `json:"spaceMax"`
StorageType string `json:"storageType"`
DrCloudId string `json:"drCloudId"`
ParameterSet []struct {
Name string
Value string
} `json:"parameterSet"`
ClusterId string `json:"clusterId"`
IsDRStorage string `json:"isDRStorage"`
ResUsage string `json:"resUsage"`
ScheduleTags string `json:"scheduleTags"`
// contains filtered or unexported fields
}
func (*SStorage) CreateIDisk ¶
func (self *SStorage) CreateIDisk(conf *cloudprovider.DiskCreateConfig) (cloudprovider.ICloudDisk, error)
func (*SStorage) DisableSync ¶
func (*SStorage) GetCapacityMB ¶
func (*SStorage) GetCapacityUsedMB ¶
func (*SStorage) GetEnabled ¶
func (*SStorage) GetGlobalId ¶
func (*SStorage) GetIDiskById ¶
func (self *SStorage) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)
func (*SStorage) GetIDisks ¶
func (self *SStorage) GetIDisks() ([]cloudprovider.ICloudDisk, error)
func (*SStorage) GetIStoragecache ¶
func (self *SStorage) GetIStoragecache() cloudprovider.ICloudStoragecache
func (*SStorage) GetIZone ¶
func (self *SStorage) GetIZone() cloudprovider.ICloudZone
func (*SStorage) GetMediumType ¶
func (*SStorage) GetMountPoint ¶
func (*SStorage) GetStorageConf ¶
func (self *SStorage) GetStorageConf() jsonutils.JSONObject
func (*SStorage) GetStorageType ¶
func (*SStorage) IsSysDiskStore ¶
type SStoragecache ¶
type SStoragecache struct {
multicloud.SResourceBase
multicloud.STagBase
// contains filtered or unexported fields
}
func (*SStoragecache) GetGlobalId ¶
func (self *SStoragecache) GetGlobalId() string
func (*SStoragecache) GetICloudImages ¶
func (self *SStoragecache) GetICloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetICustomizedCloudImages ¶
func (self *SStoragecache) GetICustomizedCloudImages() ([]cloudprovider.ICloudImage, error)
func (*SStoragecache) GetIImageById ¶
func (self *SStoragecache) GetIImageById(id string) (cloudprovider.ICloudImage, error)
func (*SStoragecache) GetId ¶
func (self *SStoragecache) GetId() string
func (*SStoragecache) GetName ¶
func (self *SStoragecache) GetName() string
func (*SStoragecache) GetPath ¶
func (self *SStoragecache) GetPath() string
func (*SStoragecache) GetStatus ¶
func (self *SStoragecache) GetStatus() string
func (*SStoragecache) UploadImage ¶
func (self *SStoragecache) UploadImage(ctx context.Context, image *cloudprovider.SImageCreateOption, callback func(float32)) (string, error)
type SVpc ¶
type SVpc struct {
multicloud.SVpc
multicloud.STagBase
RequestId string `json:"requestId"`
VlanNum string `json:"vlanNum"`
AsGateway string `json:"asGateway"`
DhcpOptionsId string `json:"dhcpOptionsId"`
VpcName string `json:"vpcName"`
OwnerId string `json:"ownerId"`
WanCode string `json:"wanCode"`
SubnetPolicy string `json:"subnetPolicy"`
Description string `json:"description"`
VpcId string `json:"vpcId"`
IsPublicNetwork string `json:"isPublicNetwork"`
GatewayId string `json:"gatewayId"`
IsDefault string `json:"isDefault"`
Provider string `json:"provider"`
State string `json:"state"`
CidrBlock string `json:"cidrBlock"`
InstanceTenancy string `json:"instanceTenancy"`
// contains filtered or unexported fields
}
func (*SVpc) GetCidrBlock ¶
func (*SVpc) GetGlobalId ¶
func (*SVpc) GetIRouteTableById ¶
func (self *SVpc) GetIRouteTableById(id string) (cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetIRouteTables ¶
func (self *SVpc) GetIRouteTables() ([]cloudprovider.ICloudRouteTable, error)
func (*SVpc) GetISecurityGroups ¶
func (self *SVpc) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)
func (*SVpc) GetIWireById ¶
func (self *SVpc) GetIWireById(id string) (cloudprovider.ICloudWire, error)
func (*SVpc) GetIWires ¶
func (self *SVpc) GetIWires() ([]cloudprovider.ICloudWire, error)
func (*SVpc) GetIsDefault ¶
func (*SVpc) GetRegion ¶
func (self *SVpc) GetRegion() cloudprovider.ICloudRegion
type SWire ¶
type SWire struct {
multicloud.STagBase
multicloud.SResourceBase
// contains filtered or unexported fields
}
func (*SWire) CreateINetwork ¶
func (self *SWire) CreateINetwork(opts *cloudprovider.SNetworkCreateOptions) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetBandwidth ¶
func (*SWire) GetGlobalId ¶
func (*SWire) GetINetworkById ¶
func (self *SWire) GetINetworkById(id string) (cloudprovider.ICloudNetwork, error)
func (*SWire) GetINetworks ¶
func (self *SWire) GetINetworks() ([]cloudprovider.ICloudNetwork, error)
func (*SWire) GetIVpc ¶
func (self *SWire) GetIVpc() cloudprovider.ICloudVpc
func (*SWire) GetIZone ¶
func (self *SWire) GetIZone() cloudprovider.ICloudZone
func (*SWire) IsEmulated ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.