Documentation ¶
Overview ¶
Package mock_pkg is a generated GoMock package.
Index ¶
- type MockIOpenGauss
- func (m *MockIOpenGauss) AddInstance(backupPath, instance string) error
- func (m *MockIOpenGauss) AsyncBackup(backupPath, instanceName, backupMode string, threadsNum uint8, dbPort uint16) (string, error)
- func (m *MockIOpenGauss) Auth(user, password, dbName string, dbPort uint16) error
- func (m *MockIOpenGauss) CheckSchema(user, password, dbName string, dbPort uint16, schema string) error
- func (m *MockIOpenGauss) CleanPgDataTemp() error
- func (m *MockIOpenGauss) DelBackup(backupPath, instance, backupID string) error
- func (m *MockIOpenGauss) DelInstance(backupPath, instance string) error
- func (m *MockIOpenGauss) EXPECT() *MockIOpenGaussMockRecorder
- func (m *MockIOpenGauss) Init(backupPath string) error
- func (m *MockIOpenGauss) MvPgDataToTemp() error
- func (m *MockIOpenGauss) MvTempToPgData() error
- func (m *MockIOpenGauss) Restore(backupPath, instance, backupID string, threadsNum uint8) error
- func (m *MockIOpenGauss) ShowBackup(backupPath, instanceName, backupID string) (*model.Backup, error)
- func (m *MockIOpenGauss) ShowBackupList(backupPath, instanceName string) ([]*model.Backup, error)
- func (m *MockIOpenGauss) Start() error
- func (m *MockIOpenGauss) Status() (string, error)
- func (m *MockIOpenGauss) Stop() error
- type MockIOpenGaussMockRecorder
- func (mr *MockIOpenGaussMockRecorder) AddInstance(backupPath, instance interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) AsyncBackup(backupPath, instanceName, backupMode, threadsNum, dbPort interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) Auth(user, password, dbName, dbPort interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) CheckSchema(user, password, dbName, dbPort, schema interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) CleanPgDataTemp() *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) DelBackup(backupPath, instance, backupID interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) DelInstance(backupPath, instance interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) Init(backupPath interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) MvPgDataToTemp() *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) MvTempToPgData() *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) Restore(backupPath, instance, backupID, threadsNum interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) ShowBackup(backupPath, instanceName, backupID interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) ShowBackupList(backupPath, instanceName interface{}) *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) Start() *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) Status() *gomock.Call
- func (mr *MockIOpenGaussMockRecorder) Stop() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIOpenGauss ¶
type MockIOpenGauss struct {
// contains filtered or unexported fields
}
MockIOpenGauss is a mock of IOpenGauss interface
func NewMockIOpenGauss ¶
func NewMockIOpenGauss(ctrl *gomock.Controller) *MockIOpenGauss
NewMockIOpenGauss creates a new mock instance
func (*MockIOpenGauss) AddInstance ¶
func (m *MockIOpenGauss) AddInstance(backupPath, instance string) error
AddInstance mocks base method
func (*MockIOpenGauss) AsyncBackup ¶
func (m *MockIOpenGauss) AsyncBackup(backupPath, instanceName, backupMode string, threadsNum uint8, dbPort uint16) (string, error)
AsyncBackup mocks base method
func (*MockIOpenGauss) Auth ¶
func (m *MockIOpenGauss) Auth(user, password, dbName string, dbPort uint16) error
Auth mocks base method
func (*MockIOpenGauss) CheckSchema ¶
func (m *MockIOpenGauss) CheckSchema(user, password, dbName string, dbPort uint16, schema string) error
CheckSchema mocks base method
func (*MockIOpenGauss) CleanPgDataTemp ¶
func (m *MockIOpenGauss) CleanPgDataTemp() error
CleanPgDataTemp mocks base method
func (*MockIOpenGauss) DelBackup ¶
func (m *MockIOpenGauss) DelBackup(backupPath, instance, backupID string) error
DelBackup mocks base method
func (*MockIOpenGauss) DelInstance ¶
func (m *MockIOpenGauss) DelInstance(backupPath, instance string) error
DelInstance mocks base method
func (*MockIOpenGauss) EXPECT ¶
func (m *MockIOpenGauss) EXPECT() *MockIOpenGaussMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockIOpenGauss) Init ¶
func (m *MockIOpenGauss) Init(backupPath string) error
Init mocks base method
func (*MockIOpenGauss) MvPgDataToTemp ¶
func (m *MockIOpenGauss) MvPgDataToTemp() error
MvPgDataToTemp mocks base method
func (*MockIOpenGauss) MvTempToPgData ¶
func (m *MockIOpenGauss) MvTempToPgData() error
MvTempToPgData mocks base method
func (*MockIOpenGauss) Restore ¶
func (m *MockIOpenGauss) Restore(backupPath, instance, backupID string, threadsNum uint8) error
Restore mocks base method
func (*MockIOpenGauss) ShowBackup ¶
func (m *MockIOpenGauss) ShowBackup(backupPath, instanceName, backupID string) (*model.Backup, error)
ShowBackup mocks base method
func (*MockIOpenGauss) ShowBackupList ¶
func (m *MockIOpenGauss) ShowBackupList(backupPath, instanceName string) ([]*model.Backup, error)
ShowBackupList mocks base method
func (*MockIOpenGauss) Status ¶
func (m *MockIOpenGauss) Status() (string, error)
Status mocks base method
type MockIOpenGaussMockRecorder ¶
type MockIOpenGaussMockRecorder struct {
// contains filtered or unexported fields
}
MockIOpenGaussMockRecorder is the mock recorder for MockIOpenGauss
func (*MockIOpenGaussMockRecorder) AddInstance ¶
func (mr *MockIOpenGaussMockRecorder) AddInstance(backupPath, instance interface{}) *gomock.Call
AddInstance indicates an expected call of AddInstance
func (*MockIOpenGaussMockRecorder) AsyncBackup ¶
func (mr *MockIOpenGaussMockRecorder) AsyncBackup(backupPath, instanceName, backupMode, threadsNum, dbPort interface{}) *gomock.Call
AsyncBackup indicates an expected call of AsyncBackup
func (*MockIOpenGaussMockRecorder) Auth ¶
func (mr *MockIOpenGaussMockRecorder) Auth(user, password, dbName, dbPort interface{}) *gomock.Call
Auth indicates an expected call of Auth
func (*MockIOpenGaussMockRecorder) CheckSchema ¶
func (mr *MockIOpenGaussMockRecorder) CheckSchema(user, password, dbName, dbPort, schema interface{}) *gomock.Call
CheckSchema indicates an expected call of CheckSchema
func (*MockIOpenGaussMockRecorder) CleanPgDataTemp ¶
func (mr *MockIOpenGaussMockRecorder) CleanPgDataTemp() *gomock.Call
CleanPgDataTemp indicates an expected call of CleanPgDataTemp
func (*MockIOpenGaussMockRecorder) DelBackup ¶
func (mr *MockIOpenGaussMockRecorder) DelBackup(backupPath, instance, backupID interface{}) *gomock.Call
DelBackup indicates an expected call of DelBackup
func (*MockIOpenGaussMockRecorder) DelInstance ¶
func (mr *MockIOpenGaussMockRecorder) DelInstance(backupPath, instance interface{}) *gomock.Call
DelInstance indicates an expected call of DelInstance
func (*MockIOpenGaussMockRecorder) Init ¶
func (mr *MockIOpenGaussMockRecorder) Init(backupPath interface{}) *gomock.Call
Init indicates an expected call of Init
func (*MockIOpenGaussMockRecorder) MvPgDataToTemp ¶
func (mr *MockIOpenGaussMockRecorder) MvPgDataToTemp() *gomock.Call
MvPgDataToTemp indicates an expected call of MvPgDataToTemp
func (*MockIOpenGaussMockRecorder) MvTempToPgData ¶
func (mr *MockIOpenGaussMockRecorder) MvTempToPgData() *gomock.Call
MvTempToPgData indicates an expected call of MvTempToPgData
func (*MockIOpenGaussMockRecorder) Restore ¶
func (mr *MockIOpenGaussMockRecorder) Restore(backupPath, instance, backupID, threadsNum interface{}) *gomock.Call
Restore indicates an expected call of Restore
func (*MockIOpenGaussMockRecorder) ShowBackup ¶
func (mr *MockIOpenGaussMockRecorder) ShowBackup(backupPath, instanceName, backupID interface{}) *gomock.Call
ShowBackup indicates an expected call of ShowBackup
func (*MockIOpenGaussMockRecorder) ShowBackupList ¶
func (mr *MockIOpenGaussMockRecorder) ShowBackupList(backupPath, instanceName interface{}) *gomock.Call
ShowBackupList indicates an expected call of ShowBackupList
func (*MockIOpenGaussMockRecorder) Start ¶
func (mr *MockIOpenGaussMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start
func (*MockIOpenGaussMockRecorder) Status ¶
func (mr *MockIOpenGaussMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status
func (*MockIOpenGaussMockRecorder) Stop ¶
func (mr *MockIOpenGaussMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop