Merge pull request #8876 from ioito/feat/qx-rds-create-by-backup

feat: rds recovery new instance from backup supported
This commit is contained in:
Zexi Li
2020-11-19 20:52:52 +08:00
committed by GitHub
15 changed files with 343 additions and 69 deletions
+11
View File
@@ -16,6 +16,14 @@ package cloudprovider
import "yunion.io/x/onecloud/pkg/util/billing"
type TBackupMethod string
const (
BackupMethodLogical = TBackupMethod("Logical")
BackupMethodPhysical = TBackupMethod("Physical")
BackupMethodUnknown = TBackupMethod("")
)
type SDBInstanceNetwork struct {
IP string
NetworkId string
@@ -61,6 +69,9 @@ type SManagedDBInstanceCreateConfig struct {
BillingCycle *billing.SBillingCycle
Tags map[string]string
// 仅从备份恢复到新实例用到
RdsId string
}
type SManagedDBInstanceChangeConfig struct {
+3
View File
@@ -848,6 +848,9 @@ type ICloudDBInstanceBackup interface {
GetBackupSizeMb() int
GetDBNames() string
GetBackupMode() string
GetBackupMethod() TBackupMethod
CreateICloudDBInstance(opts *SManagedDBInstanceCreateConfig) (ICloudDBInstance, error)
Delete() error
}