multicloud

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation ¶

Index ¶

Constants ¶

This section is empty.

Variables ¶

This section is empty.

Functions ¶

func NewProgress ¶

func NewProgress(totalSize int64, maxPercent int, reader io.Reader, callback func(progress float32)) io.Reader

Types ¶

type SBaseBucket ¶

type SBaseBucket struct {
	SResourceBase
}

func (*SBaseBucket) DeleteCORS ¶

func (b *SBaseBucket) DeleteCORS() error

func (*SBaseBucket) DeletePolicy ¶

func (b *SBaseBucket) DeletePolicy(id []string) ([]cloudprovider.SBucketPolicyStatement, error)

func (*SBaseBucket) DeleteWebSiteConf ¶

func (b *SBaseBucket) DeleteWebSiteConf() error

func (*SBaseBucket) GetCORSRules ¶

func (b *SBaseBucket) GetCORSRules() ([]cloudprovider.SBucketCORSRule, error)

func (*SBaseBucket) GetCdnDomains ¶

func (b *SBaseBucket) GetCdnDomains() ([]cloudprovider.SCdnDomain, error)

func (*SBaseBucket) GetGlobalId ¶

func (b *SBaseBucket) GetGlobalId() string

func (*SBaseBucket) GetId ¶

func (b *SBaseBucket) GetId() string

func (*SBaseBucket) GetLimit ¶

func (b *SBaseBucket) GetLimit() cloudprovider.SBucketStats

func (*SBaseBucket) GetName ¶

func (b *SBaseBucket) GetName() string

func (*SBaseBucket) GetPolicy ¶

func (*SBaseBucket) GetReferer ¶

func (*SBaseBucket) GetStatus ¶

func (b *SBaseBucket) GetStatus() string

func (*SBaseBucket) GetWebsiteConf ¶

func (b *SBaseBucket) GetWebsiteConf() (cloudprovider.SBucketWebsiteConf, error)

func (*SBaseBucket) IsEmulated ¶

func (b *SBaseBucket) IsEmulated() bool

func (*SBaseBucket) LimitSupport ¶

func (b *SBaseBucket) LimitSupport() cloudprovider.SBucketStats

func (*SBaseBucket) ListMultipartUploads ¶

func (b *SBaseBucket) ListMultipartUploads() ([]cloudprovider.SBucketMultipartUploads, error)

func (*SBaseBucket) MaxPartCount ¶

func (b *SBaseBucket) MaxPartCount() int

func (*SBaseBucket) MaxPartSizeBytes ¶

func (b *SBaseBucket) MaxPartSizeBytes() int64

func (*SBaseBucket) Refresh ¶

func (b *SBaseBucket) Refresh() error

func (*SBaseBucket) SetCORS ¶

func (b *SBaseBucket) SetCORS(rules []cloudprovider.SBucketCORSRule) error

func (*SBaseBucket) SetLimit ¶

func (b *SBaseBucket) SetLimit(limit cloudprovider.SBucketStats) error

func (*SBaseBucket) SetPolicy ¶

func (*SBaseBucket) SetReferer ¶

func (b *SBaseBucket) SetReferer(conf cloudprovider.SBucketRefererConf) error

func (*SBaseBucket) SetWebsite ¶

func (b *SBaseBucket) SetWebsite(conf cloudprovider.SBucketWebsiteConf) error

type SBaseClouduser ¶

type SBaseClouduser struct {
}

func (*SBaseClouduser) CreateAccessKey ¶

func (self *SBaseClouduser) CreateAccessKey(name string) (*cloudprovider.SAccessKey, error)

func (*SBaseClouduser) DeleteAccessKey ¶

func (self *SBaseClouduser) DeleteAccessKey(accesskey string) error

func (*SBaseClouduser) GetAccessKeys ¶

func (self *SBaseClouduser) GetAccessKeys() ([]cloudprovider.SAccessKey, error)

type SBillingBase ¶

type SBillingBase struct{}

func (*SBillingBase) GetBillingType ¶

func (self *SBillingBase) GetBillingType() string

func (*SBillingBase) GetExpiredAt ¶

func (self *SBillingBase) GetExpiredAt() time.Time

func (*SBillingBase) IsAutoRenew ¶

func (self *SBillingBase) IsAutoRenew() bool

func (*SBillingBase) Renew ¶

func (self *SBillingBase) Renew(bc billing.SBillingCycle) error

func (*SBillingBase) SetAutoRenew ¶

func (self *SBillingBase) SetAutoRenew(bc billing.SBillingCycle) error

type SCDNDomainBase ¶

type SCDNDomainBase struct {
	SResourceBase
}

func (*SCDNDomainBase) GetCache ¶

func (self *SCDNDomainBase) GetCache() (*cloudprovider.SCDNCache, error)

func (*SCDNDomainBase) GetCacheKeys ¶

func (self *SCDNDomainBase) GetCacheKeys() (*cloudprovider.SCDNCacheKeys, error)

func (*SCDNDomainBase) GetForceRedirect ¶

func (self *SCDNDomainBase) GetForceRedirect() (*cloudprovider.SCDNForceRedirect, error)

func (*SCDNDomainBase) GetHTTPS ¶

func (self *SCDNDomainBase) GetHTTPS() (*cloudprovider.SCDNHttps, error)

func (*SCDNDomainBase) GetMaxAge ¶

func (self *SCDNDomainBase) GetMaxAge() (*cloudprovider.SCDNMaxAge, error)

func (*SCDNDomainBase) GetRangeOriginPull ¶

func (self *SCDNDomainBase) GetRangeOriginPull() (*cloudprovider.SCDNRangeOriginPull, error)

func (*SCDNDomainBase) GetReferer ¶

func (self *SCDNDomainBase) GetReferer() (*cloudprovider.SCDNReferer, error)

type SDBInstanceAccountBase ¶

type SDBInstanceAccountBase struct {
}

func (*SDBInstanceAccountBase) Delete ¶

func (account *SDBInstanceAccountBase) Delete() error

func (*SDBInstanceAccountBase) GetHost ¶

func (account *SDBInstanceAccountBase) GetHost() string

func (*SDBInstanceAccountBase) GetIDBInstanceAccountPrivileges ¶

func (account *SDBInstanceAccountBase) GetIDBInstanceAccountPrivileges() ([]cloudprovider.ICloudDBInstanceAccountPrivilege, error)

func (*SDBInstanceAccountBase) GetStatus ¶

func (account *SDBInstanceAccountBase) GetStatus() string

func (*SDBInstanceAccountBase) GrantPrivilege ¶

func (backup *SDBInstanceAccountBase) GrantPrivilege(database, privilege string) error

func (*SDBInstanceAccountBase) ResetPassword ¶

func (account *SDBInstanceAccountBase) ResetPassword(password string) error

func (*SDBInstanceAccountBase) RevokePrivilege ¶

func (backup *SDBInstanceAccountBase) RevokePrivilege(database string) error

type SDBInstanceBackupBase ¶

type SDBInstanceBackupBase struct {
	SResourceBase
}

func (*SDBInstanceBackupBase) CreateICloudDBInstance ¶

func (*SDBInstanceBackupBase) Delete ¶

func (backup *SDBInstanceBackupBase) Delete() error

func (*SDBInstanceBackupBase) GetBackMode ¶

func (backup *SDBInstanceBackupBase) GetBackMode() string

func (*SDBInstanceBackupBase) GetBackupMethod ¶

func (backup *SDBInstanceBackupBase) GetBackupMethod() cloudprovider.TBackupMethod

func (*SDBInstanceBackupBase) GetProjectId ¶

func (backup *SDBInstanceBackupBase) GetProjectId() string

type SDBInstanceBase ¶

type SDBInstanceBase struct {
	SVirtualResourceBase
	SBillingBase
}

func (*SDBInstanceBase) ChangeConfig ¶

func (*SDBInstanceBase) ClosePublicConnection ¶

func (instance *SDBInstanceBase) ClosePublicConnection() error

func (*SDBInstanceBase) CreateAccount ¶

func (instance *SDBInstanceBase) CreateAccount(conf *cloudprovider.SDBInstanceAccountCreateConfig) error

func (*SDBInstanceBase) CreateDatabase ¶

func (instance *SDBInstanceBase) CreateDatabase(conf *cloudprovider.SDBInstanceDatabaseCreateConfig) error

func (*SDBInstanceBase) CreateIBackup ¶

func (instance *SDBInstanceBase) CreateIBackup(conf *cloudprovider.SDBInstanceBackupCreateConfig) (string, error)

func (*SDBInstanceBase) Delete ¶

func (instance *SDBInstanceBase) Delete() error

func (*SDBInstanceBase) GetCategory ¶

func (instance *SDBInstanceBase) GetCategory() string

func (*SDBInstanceBase) GetConnectionStr ¶

func (instance *SDBInstanceBase) GetConnectionStr() string

func (*SDBInstanceBase) GetDBNetworks ¶

func (instance *SDBInstanceBase) GetDBNetworks() ([]cloudprovider.SDBInstanceNetwork, error)

func (*SDBInstanceBase) GetDiskSizeUsedMB ¶

func (instance *SDBInstanceBase) GetDiskSizeUsedMB() int

func (*SDBInstanceBase) GetIDBInstanceAccounts ¶

func (instance *SDBInstanceBase) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error)

func (*SDBInstanceBase) GetIDBInstanceBackups ¶

func (instance *SDBInstanceBase) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)

func (*SDBInstanceBase) GetIDBInstanceDatabases ¶

func (instance *SDBInstanceBase) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error)

func (*SDBInstanceBase) GetIDBInstanceParameters ¶

func (instance *SDBInstanceBase) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error)

func (*SDBInstanceBase) GetInternalConnectionStr ¶

func (instance *SDBInstanceBase) GetInternalConnectionStr() string

func (*SDBInstanceBase) GetIops ¶

func (instance *SDBInstanceBase) GetIops() int

func (*SDBInstanceBase) GetMasterInstanceId ¶

func (instance *SDBInstanceBase) GetMasterInstanceId() string

func (*SDBInstanceBase) GetSecurityGroupIds ¶

func (instance *SDBInstanceBase) GetSecurityGroupIds() ([]string, error)

func (*SDBInstanceBase) OpenPublicConnection ¶

func (instance *SDBInstanceBase) OpenPublicConnection() error

func (*SDBInstanceBase) Reboot ¶

func (instance *SDBInstanceBase) Reboot() error

func (*SDBInstanceBase) RecoveryFromBackup ¶

func (instance *SDBInstanceBase) RecoveryFromBackup(conf *cloudprovider.SDBInstanceRecoveryConfig) error

func (*SDBInstanceBase) Renew ¶

func (instance *SDBInstanceBase) Renew(bc billing.SBillingCycle) error

func (*SDBInstanceBase) SetSecurityGroups ¶

func (self *SDBInstanceBase) SetSecurityGroups(ids []string) error

func (*SDBInstanceBase) Update ¶

type SDBInstanceDatabaseBase ¶

type SDBInstanceDatabaseBase struct {
	SResourceBase
}

func (*SDBInstanceDatabaseBase) Delete ¶

func (db *SDBInstanceDatabaseBase) Delete() error

type SDisk ¶

type SDisk struct {
	SVirtualResourceBase
	SBillingBase
}

func (*SDisk) GetIStorageId ¶

func (self *SDisk) GetIStorageId() string

func (*SDisk) GetIops ¶

func (self *SDisk) GetIops() int

func (*SDisk) GetPreallocation ¶

func (self *SDisk) GetPreallocation() string

type SEipBase ¶

type SEipBase struct {
	SResourceBase
	SBillingBase
}

func (*SEipBase) GetINetworkId ¶

func (self *SEipBase) GetINetworkId() string

type SElasticcacheAccountBase ¶

type SElasticcacheAccountBase struct {
	SResourceBase
}

type SElasticcacheAclBase ¶

type SElasticcacheAclBase struct {
	SResourceBase
}

type SElasticcacheBackupBase ¶

type SElasticcacheBackupBase struct {
	SResourceBase
}

type SElasticcacheBase ¶

type SElasticcacheBase struct {
	SVirtualResourceBase
	SBillingBase
}

func (*SElasticcacheBase) GetBandwidth ¶

func (self *SElasticcacheBase) GetBandwidth() int

func (*SElasticcacheBase) GetConnections ¶

func (self *SElasticcacheBase) GetConnections() int

type SElasticcacheParameterBase ¶

type SElasticcacheParameterBase struct {
	SResourceBase
}

type SHostBase ¶

type SHostBase struct {
	SResourceBase
	STagBase
}

func (*SHostBase) GetCpuArchitecture ¶

func (host *SHostBase) GetCpuArchitecture() string

func (*SHostBase) GetCpuCmtbound ¶

func (host *SHostBase) GetCpuCmtbound() float32

func (*SHostBase) GetMemCmtbound ¶

func (host *SHostBase) GetMemCmtbound() float32

func (*SHostBase) GetOvnVersion ¶

func (host *SHostBase) GetOvnVersion() string

func (*SHostBase) GetReservedMemoryMb ¶

func (host *SHostBase) GetReservedMemoryMb() int

func (*SHostBase) GetSchedtags ¶

func (host *SHostBase) GetSchedtags() ([]string, error)

type SImageBase ¶

type SImageBase struct {
	SVirtualResourceBase
}

func (*SImageBase) Export ¶

func (*SImageBase) GetPublicScope ¶

func (self *SImageBase) GetPublicScope() rbacscope.TRbacScope

func (*SImageBase) GetSubImages ¶

func (self *SImageBase) GetSubImages() []cloudprovider.SSubImage

type SInstanceBase ¶

type SInstanceBase struct {
	SResourceBase
	SBillingBase
}

func (*SInstanceBase) AllocatePublicIpAddress ¶

func (self *SInstanceBase) AllocatePublicIpAddress() (string, error)

func (*SInstanceBase) ConvertPublicIpToEip ¶

func (instance *SInstanceBase) ConvertPublicIpToEip() error

func (*SInstanceBase) CreateDisk ¶

func (*SInstanceBase) CreateInstanceSnapshot ¶

func (instance *SInstanceBase) CreateInstanceSnapshot(ctx context.Context, name string, desc string) (cloudprovider.ICloudInstanceSnapshot, error)

func (*SInstanceBase) GetCpuSockets ¶

func (instance *SInstanceBase) GetCpuSockets() int

func (*SInstanceBase) GetError ¶

func (instance *SInstanceBase) GetError() error

func (*SInstanceBase) GetIHostId ¶

func (instance *SInstanceBase) GetIHostId() string

func (*SInstanceBase) GetInstanceSnapshot ¶

func (instance *SInstanceBase) GetInstanceSnapshot(idStr string) (cloudprovider.ICloudInstanceSnapshot, error)

func (*SInstanceBase) GetInstanceSnapshots ¶

func (instance *SInstanceBase) GetInstanceSnapshots() ([]cloudprovider.ICloudInstanceSnapshot, error)

func (*SInstanceBase) GetInternetMaxBandwidthOut ¶

func (self *SInstanceBase) GetInternetMaxBandwidthOut() int

func (*SInstanceBase) GetPowerStates ¶

func (ins *SInstanceBase) GetPowerStates() string

func (*SInstanceBase) GetSerialOutput ¶

func (instance *SInstanceBase) GetSerialOutput(port int) (string, error)

func (*SInstanceBase) GetThroughput ¶

func (self *SInstanceBase) GetThroughput() int

func (*SInstanceBase) LiveMigrateVM ¶

func (instance *SInstanceBase) LiveMigrateVM(hostId string) error

func (*SInstanceBase) MigrateVM ¶

func (instance *SInstanceBase) MigrateVM(hostId string) error

func (*SInstanceBase) ResetToInstanceSnapshot ¶

func (instance *SInstanceBase) ResetToInstanceSnapshot(ctx context.Context, idStr string) error

func (*SInstanceBase) SaveImage ¶

type SLoadbalancerBase ¶

type SLoadbalancerBase struct {
	SResourceBase
}

func (*SLoadbalancerBase) GetIEIP ¶

type SLoadbalancerRedirectBase ¶

type SLoadbalancerRedirectBase struct {
}

func (*SLoadbalancerRedirectBase) GetRedirect ¶

func (self *SLoadbalancerRedirectBase) GetRedirect() string

func (*SLoadbalancerRedirectBase) GetRedirectCode ¶

func (self *SLoadbalancerRedirectBase) GetRedirectCode() int64

func (*SLoadbalancerRedirectBase) GetRedirectHost ¶

func (self *SLoadbalancerRedirectBase) GetRedirectHost() string

func (*SLoadbalancerRedirectBase) GetRedirectPath ¶

func (self *SLoadbalancerRedirectBase) GetRedirectPath() string

func (*SLoadbalancerRedirectBase) GetRedirectScheme ¶

func (self *SLoadbalancerRedirectBase) GetRedirectScheme() string

type SMongodbBase ¶

type SMongodbBase struct {
	SVirtualResourceBase
	SBillingBase
}

func (*SMongodbBase) GetMaxConnections ¶

func (instance *SMongodbBase) GetMaxConnections() int

type SNasBase ¶

type SNasBase struct {
	SResourceBase
	SBillingBase
}

type SNatGatewayBase ¶

type SNatGatewayBase struct {
	SResourceBase
	SBillingBase
}

func (*SNatGatewayBase) Delete ¶

func (nat *SNatGatewayBase) Delete() error

func (*SNatGatewayBase) GetBandwidthMb ¶

func (nat *SNatGatewayBase) GetBandwidthMb() int

func (*SNatGatewayBase) GetIDNatEntries ¶

func (nat *SNatGatewayBase) GetIDNatEntries() ([]cloudprovider.ICloudNatDEntry, error)

func (*SNatGatewayBase) GetIEips ¶

func (nat *SNatGatewayBase) GetIEips() ([]cloudprovider.ICloudEIP, error)

func (*SNatGatewayBase) GetISNatEntries ¶

func (nat *SNatGatewayBase) GetISNatEntries() ([]cloudprovider.ICloudNatSEntry, error)

func (*SNatGatewayBase) GetIpAddr ¶

func (nat *SNatGatewayBase) GetIpAddr() string

type SNetworkInterfaceBase ¶

type SNetworkInterfaceBase struct {
	SResourceBase
}

type SNoLbRegion ¶

type SNoLbRegion struct{}

func (*SNoLbRegion) CreateILoadBalancer ¶

func (self *SNoLbRegion) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancerCreateOptions) (cloudprovider.ICloudLoadbalancer, error)

func (*SNoLbRegion) GetILoadBalancerAclById ¶

func (self *SNoLbRegion) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)

func (*SNoLbRegion) GetILoadBalancerAcls ¶

func (self *SNoLbRegion) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)

func (*SNoLbRegion) GetILoadBalancerById ¶

func (self *SNoLbRegion) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error)

func (*SNoLbRegion) GetILoadBalancerCertificateById ¶

func (self *SNoLbRegion) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SNoLbRegion) GetILoadBalancerCertificates ¶

func (self *SNoLbRegion) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SNoLbRegion) GetILoadBalancers ¶

func (self *SNoLbRegion) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)

type SNoObjectStorageRegion ¶

type SNoObjectStorageRegion struct{}

func (*SNoObjectStorageRegion) CreateIBucket ¶

func (cli *SNoObjectStorageRegion) CreateIBucket(name string, storageClassStr string, aclStr string) error

func (*SNoObjectStorageRegion) DeleteIBucket ¶

func (cli *SNoObjectStorageRegion) DeleteIBucket(name string) error

func (*SNoObjectStorageRegion) GetIBucketById ¶

func (cli *SNoObjectStorageRegion) GetIBucketById(name string) (cloudprovider.ICloudBucket, error)

func (*SNoObjectStorageRegion) GetIBucketByName ¶

func (cli *SNoObjectStorageRegion) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error)

func (*SNoObjectStorageRegion) GetIBuckets ¶

func (cli *SNoObjectStorageRegion) GetIBuckets() ([]cloudprovider.ICloudBucket, error)

func (*SNoObjectStorageRegion) IBucketExist ¶

func (cli *SNoObjectStorageRegion) IBucketExist(name string) (bool, error)

type SProjectBase ¶

type SProjectBase struct {
	SResourceBase
	STagBase
}

func (*SProjectBase) GetAccountId ¶

func (self *SProjectBase) GetAccountId() string

func (*SProjectBase) GetDomainId ¶

func (self *SProjectBase) GetDomainId() string

func (*SProjectBase) GetDomainName ¶

func (self *SProjectBase) GetDomainName() string

type SRegion ¶

type SRegion struct {
	SResourceBase
	STagBase
}

func (*SRegion) CreateICloudAccessGroup ¶

func (self *SRegion) CreateICloudAccessGroup(opts *cloudprovider.SAccessGroup) (cloudprovider.ICloudAccessGroup, error)

func (*SRegion) CreateICloudFileSystem ¶

func (self *SRegion) CreateICloudFileSystem(opts *cloudprovider.FileSystemCraeteOptions) (cloudprovider.ICloudFileSystem, error)

func (*SRegion) CreateICloudWafInstance ¶

func (self *SRegion) CreateICloudWafInstance(opts *cloudprovider.WafCreateOptions) (cloudprovider.ICloudWafInstance, error)

func (*SRegion) CreateIModelartsPool ¶

func (self *SRegion) CreateIModelartsPool(pool *cloudprovider.ModelartsPoolCreateOption, callback func(id string)) (cloudprovider.ICloudModelartsPool, error)

func (*SRegion) CreateISku ¶

func (*SRegion) CreateInternetGateway ¶

func (self *SRegion) CreateInternetGateway() (cloudprovider.ICloudInternetGateway, error)

func (*SRegion) CreateSnapshotPolicy ¶

func (r *SRegion) CreateSnapshotPolicy(input *cloudprovider.SnapshotPolicyInput) (string, error)

func (*SRegion) GetICloudAccessGroupById ¶

func (self *SRegion) GetICloudAccessGroupById(id string) (cloudprovider.ICloudAccessGroup, error)

func (*SRegion) GetICloudAccessGroups ¶

func (self *SRegion) GetICloudAccessGroups() ([]cloudprovider.ICloudAccessGroup, error)

func (*SRegion) GetICloudAppById ¶

func (self *SRegion) GetICloudAppById(id string) (cloudprovider.ICloudApp, error)

func (*SRegion) GetICloudApps ¶

func (self *SRegion) GetICloudApps() ([]cloudprovider.ICloudApp, error)

func (*SRegion) GetICloudEvents ¶

func (self *SRegion) GetICloudEvents(start time.Time, end time.Time, withReadEvent bool) ([]cloudprovider.ICloudEvent, error)

func (*SRegion) GetICloudFileSystemById ¶

func (self *SRegion) GetICloudFileSystemById(id string) (cloudprovider.ICloudFileSystem, error)

func (*SRegion) GetICloudFileSystems ¶

func (self *SRegion) GetICloudFileSystems() ([]cloudprovider.ICloudFileSystem, error)

func (*SRegion) GetICloudKafkaById ¶

func (self *SRegion) GetICloudKafkaById(id string) (cloudprovider.ICloudKafka, error)

func (*SRegion) GetICloudKafkas ¶

func (self *SRegion) GetICloudKafkas() ([]cloudprovider.ICloudKafka, error)

func (*SRegion) GetICloudKubeClusterById ¶

func (self *SRegion) GetICloudKubeClusterById(id string) (cloudprovider.ICloudKubeCluster, error)

func (*SRegion) GetICloudKubeClusters ¶

func (self *SRegion) GetICloudKubeClusters() ([]cloudprovider.ICloudKubeCluster, error)

func (*SRegion) GetICloudMongoDBById ¶

func (self *SRegion) GetICloudMongoDBById(id string) (cloudprovider.ICloudMongoDB, error)

func (*SRegion) GetICloudMongoDBs ¶

func (self *SRegion) GetICloudMongoDBs() ([]cloudprovider.ICloudMongoDB, error)

func (*SRegion) GetICloudNatSkus ¶

func (self *SRegion) GetICloudNatSkus() ([]cloudprovider.ICloudNatSku, error)

func (*SRegion) GetICloudQuotas ¶

func (self *SRegion) GetICloudQuotas() ([]cloudprovider.ICloudQuota, error)

func (*SRegion) GetICloudTablestores ¶

func (self *SRegion) GetICloudTablestores() ([]cloudprovider.ICloudTablestore, error)

func (*SRegion) GetICloudWafIPSets ¶

func (self *SRegion) GetICloudWafIPSets() ([]cloudprovider.ICloudWafIPSet, error)

func (*SRegion) GetICloudWafInstanceById ¶

func (self *SRegion) GetICloudWafInstanceById(id string) (cloudprovider.ICloudWafInstance, error)

func (*SRegion) GetICloudWafInstances ¶

func (self *SRegion) GetICloudWafInstances() ([]cloudprovider.ICloudWafInstance, error)

func (*SRegion) GetICloudWafRegexSets ¶

func (self *SRegion) GetICloudWafRegexSets() ([]cloudprovider.ICloudWafRegexSet, error)

func (*SRegion) GetICloudWafRuleGroups ¶

func (self *SRegion) GetICloudWafRuleGroups() ([]cloudprovider.ICloudWafRuleGroup, error)

func (*SRegion) GetIDBInstanceBackupById ¶

func (self *SRegion) GetIDBInstanceBackupById(backupId string) (cloudprovider.ICloudDBInstanceBackup, error)

func (*SRegion) GetIDBInstanceBackups ¶

func (self *SRegion) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error)

func (*SRegion) GetIDBInstanceById ¶

func (self *SRegion) GetIDBInstanceById(instanceId string) (cloudprovider.ICloudDBInstance, error)

func (*SRegion) GetIDBInstanceSkus ¶

func (self *SRegion) GetIDBInstanceSkus() ([]cloudprovider.ICloudDBInstanceSku, error)

func (*SRegion) GetIDBInstances ¶

func (self *SRegion) GetIDBInstances() ([]cloudprovider.ICloudDBInstance, error)

func (*SRegion) GetIDiskById ¶

func (r *SRegion) GetIDiskById(id string) (cloudprovider.ICloudDisk, error)

func (*SRegion) GetIElasticSearchById ¶

func (self *SRegion) GetIElasticSearchById(id string) (cloudprovider.ICloudElasticSearch, error)

func (*SRegion) GetIElasticSearchs ¶

func (self *SRegion) GetIElasticSearchs() ([]cloudprovider.ICloudElasticSearch, error)

func (*SRegion) GetIElasticcacheById ¶

func (self *SRegion) GetIElasticcacheById(id string) (cloudprovider.ICloudElasticcache, error)

func (*SRegion) GetIElasticcacheSkus ¶

func (self *SRegion) GetIElasticcacheSkus() ([]cloudprovider.ICloudElasticcacheSku, error)

func (*SRegion) GetIElasticcaches ¶

func (self *SRegion) GetIElasticcaches() ([]cloudprovider.ICloudElasticcache, error)

func (*SRegion) GetIHostById ¶

func (r *SRegion) GetIHostById(id string) (cloudprovider.ICloudHost, error)

func (*SRegion) GetIHosts ¶

func (r *SRegion) GetIHosts() ([]cloudprovider.ICloudHost, error)

func (*SRegion) GetIMiscResources ¶

func (self *SRegion) GetIMiscResources() ([]cloudprovider.ICloudMiscResource, error)

func (*SRegion) GetIModelartsPoolById ¶

func (self *SRegion) GetIModelartsPoolById(id string) (cloudprovider.ICloudModelartsPool, error)

func (*SRegion) GetIModelartsPoolSku ¶

func (self *SRegion) GetIModelartsPoolSku() ([]cloudprovider.ICloudModelartsPoolSku, error)

func (*SRegion) GetIModelartsPools ¶

func (self *SRegion) GetIModelartsPools() ([]cloudprovider.ICloudModelartsPool, error)

func (*SRegion) GetINetworkInterfaces ¶

func (self *SRegion) GetINetworkInterfaces() ([]cloudprovider.ICloudNetworkInterface, error)

func (*SRegion) GetISSLCertificates ¶

func (self *SRegion) GetISSLCertificates() ([]cloudprovider.ICloudSSLCertificate, error)

func (*SRegion) GetISecurityGroups ¶

func (r *SRegion) GetISecurityGroups() ([]cloudprovider.ICloudSecurityGroup, error)

func (*SRegion) GetISkus ¶

func (self *SRegion) GetISkus() ([]cloudprovider.ICloudSku, error)

func (*SRegion) GetISnapshotById ¶

func (r *SRegion) GetISnapshotById(snapshotId string) (cloudprovider.ICloudSnapshot, error)

func (*SRegion) GetISnapshotPolicies ¶

func (self *SRegion) GetISnapshotPolicies() ([]cloudprovider.ICloudSnapshotPolicy, error)

func (*SRegion) GetISnapshotPolicyById ¶

func (r *SRegion) GetISnapshotPolicyById(snapshotPolicyId string) (cloudprovider.ICloudSnapshotPolicy, error)

func (*SRegion) GetISnapshots ¶

func (r *SRegion) GetISnapshots() ([]cloudprovider.ICloudSnapshot, error)

func (*SRegion) GetIStorageById ¶

func (r *SRegion) GetIStorageById(id string) (cloudprovider.ICloudStorage, error)

func (*SRegion) GetIStoragecacheById ¶

func (r *SRegion) GetIStoragecacheById(id string) (cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIStoragecaches ¶

func (r *SRegion) GetIStoragecaches() ([]cloudprovider.ICloudStoragecache, error)

func (*SRegion) GetIStorages ¶

func (r *SRegion) GetIStorages() ([]cloudprovider.ICloudStorage, error)

func (*SRegion) GetIVMById ¶

func (r *SRegion) GetIVMById(id string) (cloudprovider.ICloudVM, error)

func (*SRegion) GetIVMs ¶

func (r *SRegion) GetIVMs() ([]cloudprovider.ICloudVM, error)

func (*SRegion) GetStatusMessage ¶

func (self *SRegion) GetStatusMessage() string

type SRegionEipBase ¶

type SRegionEipBase struct {
}

func (*SRegionEipBase) CreateEIP ¶

func (self *SRegionEipBase) CreateEIP(eip *cloudprovider.SEip) (cloudprovider.ICloudEIP, error)

func (*SRegionEipBase) GetIEipById ¶

func (self *SRegionEipBase) GetIEipById(id string) (cloudprovider.ICloudEIP, error)

func (*SRegionEipBase) GetIEips ¶

func (self *SRegionEipBase) GetIEips() ([]cloudprovider.ICloudEIP, error)

type SRegionLbBase ¶

type SRegionLbBase struct {
}

func (*SRegionLbBase) CreateILoadBalancer ¶

func (*SRegionLbBase) GetILoadBalancerAclById ¶

func (self *SRegionLbBase) GetILoadBalancerAclById(aclId string) (cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegionLbBase) GetILoadBalancerAcls ¶

func (self *SRegionLbBase) GetILoadBalancerAcls() ([]cloudprovider.ICloudLoadbalancerAcl, error)

func (*SRegionLbBase) GetILoadBalancerById ¶

func (self *SRegionLbBase) GetILoadBalancerById(loadbalancerId string) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegionLbBase) GetILoadBalancerCertificateById ¶

func (self *SRegionLbBase) GetILoadBalancerCertificateById(certId string) (cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SRegionLbBase) GetILoadBalancerCertificates ¶

func (self *SRegionLbBase) GetILoadBalancerCertificates() ([]cloudprovider.ICloudLoadbalancerCertificate, error)

func (*SRegionLbBase) GetILoadBalancers ¶

func (self *SRegionLbBase) GetILoadBalancers() ([]cloudprovider.ICloudLoadbalancer, error)

type SRegionOssBase ¶

type SRegionOssBase struct {
}

func (*SRegionOssBase) CreateIBucket ¶

func (self *SRegionOssBase) CreateIBucket(name string, storageClassStr string, acl string) error

func (*SRegionOssBase) DeleteIBucket ¶

func (self *SRegionOssBase) DeleteIBucket(name string) error

func (*SRegionOssBase) GetIBucketById ¶

func (self *SRegionOssBase) GetIBucketById(id string) (cloudprovider.ICloudBucket, error)

func (*SRegionOssBase) GetIBucketByName ¶

func (self *SRegionOssBase) GetIBucketByName(name string) (cloudprovider.ICloudBucket, error)

func (*SRegionOssBase) GetIBuckets ¶

func (self *SRegionOssBase) GetIBuckets() ([]cloudprovider.ICloudBucket, error)

func (*SRegionOssBase) IBucketExist ¶

func (self *SRegionOssBase) IBucketExist(name string) (bool, error)

type SRegionSecurityGroupBase ¶

type SRegionSecurityGroupBase struct {
}

func (*SRegionSecurityGroupBase) CreateISecurityGroup ¶

func (*SRegionSecurityGroupBase) GetISecurityGroupById ¶

func (self *SRegionSecurityGroupBase) GetISecurityGroupById(secgroupId string) (cloudprovider.ICloudSecurityGroup, error)

type SRegionVpcBase ¶

type SRegionVpcBase struct {
}

func (*SRegionVpcBase) CreateIVpc ¶

func (*SRegionVpcBase) GetIVpcById ¶

func (self *SRegionVpcBase) GetIVpcById(id string) (cloudprovider.ICloudVpc, error)

func (*SRegionVpcBase) GetIVpcs ¶

func (self *SRegionVpcBase) GetIVpcs() ([]cloudprovider.ICloudVpc, error)

type SRegionZoneBase ¶

type SRegionZoneBase struct {
}

func (*SRegionZoneBase) GetIZoneById ¶

func (self *SRegionZoneBase) GetIZoneById(id string) (cloudprovider.ICloudZone, error)

func (*SRegionZoneBase) GetIZones ¶

func (self *SRegionZoneBase) GetIZones() ([]cloudprovider.ICloudZone, error)

type SResourceBase ¶

type SResourceBase struct {
}

func (*SResourceBase) GetCreatedAt ¶

func (resource *SResourceBase) GetCreatedAt() time.Time

func (*SResourceBase) GetDescription ¶

func (resource *SResourceBase) GetDescription() string

func (*SResourceBase) IsEmulated ¶

func (resource *SResourceBase) IsEmulated() bool

func (*SResourceBase) Refresh ¶

func (resource *SResourceBase) Refresh() error

type SSecurityGroup ¶

type SSecurityGroup struct {
	SVirtualResourceBase
}

func (*SSecurityGroup) GetReferences ¶

func (self *SSecurityGroup) GetReferences() ([]cloudprovider.SecurityGroupReference, error)

type SServerSku ¶

type SServerSku struct {
	SResourceBase
}

func (*SServerSku) GetStatus ¶

func (self *SServerSku) GetStatus() string

type SStorageBase ¶

type SStorageBase struct {
	SResourceBase
	STagBase
}

func (*SStorageBase) DisableSync ¶

func (s *SStorageBase) DisableSync() bool

type STag ¶

type STag struct {
	TagKey   string
	TagValue string

	Key   string
	Value string
}

func (STag) IsSysTagPrefix ¶

func (self STag) IsSysTagPrefix(keys []string) bool

type STagBase ¶

type STagBase struct {
}

func (STagBase) GetSysTags ¶

func (self STagBase) GetSysTags() map[string]string

func (STagBase) GetTags ¶

func (self STagBase) GetTags() (map[string]string, error)

func (STagBase) SetTags ¶

func (self STagBase) SetTags(tags map[string]string, replace bool) error

type SVirtualResourceBase ¶

type SVirtualResourceBase struct {
	SResourceBase
}

func (*SVirtualResourceBase) GetProjectId ¶

func (self *SVirtualResourceBase) GetProjectId() string

type SVpc ¶

type SVpc struct {
	SResourceBase
}

func (*SVpc) AcceptICloudVpcPeeringConnection ¶

func (self *SVpc) AcceptICloudVpcPeeringConnection(id string) error

func (*SVpc) AttachInternetGateway ¶

func (self *SVpc) AttachInternetGateway(igwId string) error

func (*SVpc) CreateIWire ¶

func (self *SVpc) CreateIWire(opts *cloudprovider.SWireCreateOptions) (cloudprovider.ICloudWire, error)

func (*SVpc) CreateRouteToVpcPeeringConnection ¶

func (self *SVpc) CreateRouteToVpcPeeringConnection(cidrBlock, peerId string) error

func (*SVpc) DeleteVpcPeeringConnectionRoute ¶

func (self *SVpc) DeleteVpcPeeringConnectionRoute(vpcPeeringConnectionId string) error

func (*SVpc) GetAuthorityOwnerId ¶

func (self *SVpc) GetAuthorityOwnerId() string

func (*SVpc) GetExternalAccessMode ¶

func (self *SVpc) GetExternalAccessMode() string

func (*SVpc) GetGlobalVpcId ¶

func (self *SVpc) GetGlobalVpcId() string

func (*SVpc) GetICloudAccepterVpcPeeringConnections ¶

func (self *SVpc) GetICloudAccepterVpcPeeringConnections() ([]cloudprovider.ICloudVpcPeeringConnection, error)

func (*SVpc) GetICloudIPv6Gateways ¶

func (self *SVpc) GetICloudIPv6Gateways() ([]cloudprovider.ICloudIPv6Gateway, error)

func (*SVpc) GetICloudVpcPeeringConnectionById ¶

func (self *SVpc) GetICloudVpcPeeringConnectionById(id string) (cloudprovider.ICloudVpcPeeringConnection, error)

func (*SVpc) GetICloudVpcPeeringConnections ¶

func (self *SVpc) GetICloudVpcPeeringConnections() ([]cloudprovider.ICloudVpcPeeringConnection, error)

func (*SVpc) GetINatGateways ¶

func (self *SVpc) GetINatGateways() ([]cloudprovider.ICloudNatGateway, error)

func (*SVpc) IsSupportSetExternalAccess ¶

func (self *SVpc) IsSupportSetExternalAccess() bool

func (*SVpc) ProposeJoinICloudInterVpcNetwork ¶

func (self *SVpc) ProposeJoinICloudInterVpcNetwork(opts *cloudprovider.SVpcJointInterVpcNetworkOption) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL