mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-05-13 09:38:41 +08:00
109 lines
3.4 KiB
Go
109 lines
3.4 KiB
Go
// Copyright 2019 Yunion
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
package multicloud
|
|
|
|
import (
|
|
"context"
|
|
"fmt"
|
|
|
|
"yunion.io/x/onecloud/pkg/cloudprovider"
|
|
"yunion.io/x/onecloud/pkg/util/billing"
|
|
)
|
|
|
|
type SDBInstanceBase struct {
|
|
SVirtualResourceBase
|
|
SBillingBase
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetConnectionStr() string {
|
|
return ""
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetInternalConnectionStr() string {
|
|
return ""
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetDBNetwork() (*cloudprovider.SDBInstanceNetwork, error) {
|
|
return nil, fmt.Errorf("Not Implemented GetDBNetwork")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetIDBInstanceParameters() ([]cloudprovider.ICloudDBInstanceParameter, error) {
|
|
return nil, fmt.Errorf("Not Implemented GetIDBInstanceParameters")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetIDBInstanceDatabases() ([]cloudprovider.ICloudDBInstanceDatabase, error) {
|
|
return nil, fmt.Errorf("Not Implemented GetIDBInstanceDatabases")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetIDBInstanceAccounts() ([]cloudprovider.ICloudDBInstanceAccount, error) {
|
|
return nil, fmt.Errorf("Not Implemented GetIDBInstanceAccounts")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetIDBInstanceBackups() ([]cloudprovider.ICloudDBInstanceBackup, error) {
|
|
return nil, fmt.Errorf("Not Implemented GetIDBInstanceBackups")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetCategory() string {
|
|
return ""
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) Reboot() error {
|
|
return fmt.Errorf("Not Implemmented Reboot")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) Delete() error {
|
|
return fmt.Errorf("Not Implemmented Delete")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetMasterInstanceId() string {
|
|
return ""
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) GetSecurityGroupId() string {
|
|
return ""
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) Renew(bc billing.SBillingCycle) error {
|
|
return fmt.Errorf("Not Implemented Renew")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) ChangeConfig(ctx context.Context, config *cloudprovider.SManagedDBInstanceChangeConfig) error {
|
|
return fmt.Errorf("Not Implemented ChnageConfig")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) OpenPublicConnection() error {
|
|
return fmt.Errorf("Not Implemented OpenPublicConnection")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) ClosePublicConnection() error {
|
|
return fmt.Errorf("Not Implemented ClosePublicConnection")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) CreateDatabase(conf *cloudprovider.SDBInstanceDatabaseCreateConfig) error {
|
|
return fmt.Errorf("Not Implemented CreateDatabase")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) CreateAccount(conf *cloudprovider.SDBInstanceAccountCreateConfig) error {
|
|
return fmt.Errorf("Not Implemented CreateAccount")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) CreateIBackup(conf *cloudprovider.SDBInstanceBackupCreateConfig) (string, error) {
|
|
return "", fmt.Errorf("Not Implemented CreateIBackup")
|
|
}
|
|
|
|
func (instance *SDBInstanceBase) RecoveryFromBackup(conf *cloudprovider.SDBInstanceRecoveryConfig) error {
|
|
return fmt.Errorf("Not Implemented RecoveryFromBackup")
|
|
}
|