multicloud

package
v0.3.10-0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 3

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 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

type SDBInstanceDatabaseBase

type SDBInstanceDatabaseBase struct {
	SResourceBase
}

func (*SDBInstanceDatabaseBase) Delete

func (db *SDBInstanceDatabaseBase) Delete() error

type SDisk

type SDisk struct {
	SVirtualResourceBase
	SBillingBase
}

func (*SDisk) GetExtSnapshotPolicyIds

func (self *SDisk) GetExtSnapshotPolicyIds() ([]string, error)

func (*SDisk) GetIStorageId

func (self *SDisk) GetIStorageId() string

func (*SDisk) GetIops

func (self *SDisk) GetIops() int

type SEipBase

type SEipBase struct {
	SResourceBase
	SBillingBase
}

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) GetPublicScope

func (self *SImageBase) GetPublicScope() rbacutils.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) 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) 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.SLoadbalancer) (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) GetILoadBalancerBackendGroups

func (self *SNoLbRegion) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, 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) ApplySnapshotPolicyToDisks

func (self *SRegion) ApplySnapshotPolicyToDisks(snapshotPolicyId string, diskId string) error

func (*SRegion) CancelSnapshotPolicyToDisks

func (self *SRegion) CancelSnapshotPolicyToDisks(snapshotPolicyId string, diskId string) error

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) 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) DeleteSnapshotPolicy

func (self *SRegion) DeleteSnapshotPolicy(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) 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) UpdateSnapshotPolicy

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

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 (self *SRegionLbBase) CreateILoadBalancer(loadbalancer *cloudprovider.SLoadbalancer) (cloudprovider.ICloudLoadbalancer, error)

func (*SRegionLbBase) GetILoadBalancerAclById

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

func (*SRegionLbBase) GetILoadBalancerAcls

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

func (*SRegionLbBase) GetILoadBalancerBackendGroups

func (self *SRegionLbBase) GetILoadBalancerBackendGroups() ([]cloudprovider.ICloudLoadbalancerBackendGroup, 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)

func (*SRegionSecurityGroupBase) GetISecurityGroupByName

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 (self *SResourceBase) GetCreatedAt() time.Time

func (*SResourceBase) IsEmulated

func (self *SResourceBase) IsEmulated() bool

func (*SResourceBase) Refresh

func (self *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
}

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) CreateINatGateway

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