Documentation ¶
Overview ¶
Package mock_pkg is a generated GoMock package.
Package mock_pkg is a generated GoMock package.
Package mock_pkg is a generated GoMock package.
Index ¶
- type MockIAgentServer
- func (m *MockIAgentServer) Backup(in *model.BackupIn) (string, error)
- func (m *MockIAgentServer) CheckStatus(in *model.HealthCheckIn) error
- func (m *MockIAgentServer) DeleteBackup(in *model.DeleteBackupIn) error
- func (m *MockIAgentServer) EXPECT() *MockIAgentServerMockRecorder
- func (m *MockIAgentServer) Restore(in *model.RestoreIn) error
- func (m *MockIAgentServer) ShowDetail(in *model.ShowDetailIn) (*model.BackupInfo, error)
- func (m *MockIAgentServer) ShowDiskSpace(in *model.DiskSpaceIn) (*model.DiskSpaceInfo, error)
- func (m *MockIAgentServer) ShowList(in *model.ShowListIn) ([]model.BackupInfo, error)
- type MockIAgentServerMockRecorder
- func (mr *MockIAgentServerMockRecorder) Backup(in interface{}) *gomock.Call
- func (mr *MockIAgentServerMockRecorder) CheckStatus(in interface{}) *gomock.Call
- func (mr *MockIAgentServerMockRecorder) DeleteBackup(in interface{}) *gomock.Call
- func (mr *MockIAgentServerMockRecorder) Restore(in interface{}) *gomock.Call
- func (mr *MockIAgentServerMockRecorder) ShowDetail(in interface{}) *gomock.Call
- func (mr *MockIAgentServerMockRecorder) ShowDiskSpace(in interface{}) *gomock.Call
- func (mr *MockIAgentServerMockRecorder) ShowList(in interface{}) *gomock.Call
- type MockILocalStorage
- func (m *MockILocalStorage) DeleteByHidedName(name string) error
- func (m *MockILocalStorage) DeleteByName(name string) error
- func (m *MockILocalStorage) EXPECT() *MockILocalStorageMockRecorder
- func (m *MockILocalStorage) GenFilename(extn pkg.Extension) string
- func (m *MockILocalStorage) HideByName(name string) error
- func (m *MockILocalStorage) ReadAll() ([]*model.LsBackup, error)
- func (m *MockILocalStorage) ReadAllByCSN(csn string) ([]*model.LsBackup, error)
- func (m *MockILocalStorage) ReadByCSN(csn string) (*model.LsBackup, error)
- func (m *MockILocalStorage) ReadByID(id string) (*model.LsBackup, error)
- func (m *MockILocalStorage) WriteByJSON(name string, contents *model.LsBackup) error
- type MockILocalStorageMockRecorder
- func (mr *MockILocalStorageMockRecorder) DeleteByHidedName(name interface{}) *gomock.Call
- func (mr *MockILocalStorageMockRecorder) DeleteByName(name interface{}) *gomock.Call
- func (mr *MockILocalStorageMockRecorder) GenFilename(extn interface{}) *gomock.Call
- func (mr *MockILocalStorageMockRecorder) HideByName(name interface{}) *gomock.Call
- func (mr *MockILocalStorageMockRecorder) ReadAll() *gomock.Call
- func (mr *MockILocalStorageMockRecorder) ReadAllByCSN(csn interface{}) *gomock.Call
- func (mr *MockILocalStorageMockRecorder) ReadByCSN(csn interface{}) *gomock.Call
- func (mr *MockILocalStorageMockRecorder) ReadByID(id interface{}) *gomock.Call
- func (mr *MockILocalStorageMockRecorder) WriteByJSON(name, contents interface{}) *gomock.Call
- type MockIShardingSphereProxy
- func (m *MockIShardingSphereProxy) DropDatabase(shardingDBName string) error
- func (m *MockIShardingSphereProxy) EXPECT() *MockIShardingSphereProxyMockRecorder
- func (m *MockIShardingSphereProxy) ExportMetaData() (*model.ClusterInfo, error)
- func (m *MockIShardingSphereProxy) ExportStorageNodes() ([]*model.StorageNode, error)
- func (m *MockIShardingSphereProxy) ImportMetaData(in *model.ClusterInfo) error
- func (m *MockIShardingSphereProxy) LockForBackup() error
- func (m *MockIShardingSphereProxy) LockForRestore() error
- func (m *MockIShardingSphereProxy) Unlock() error
- type MockIShardingSphereProxyMockRecorder
- func (mr *MockIShardingSphereProxyMockRecorder) DropDatabase(shardingDBName interface{}) *gomock.Call
- func (mr *MockIShardingSphereProxyMockRecorder) ExportMetaData() *gomock.Call
- func (mr *MockIShardingSphereProxyMockRecorder) ExportStorageNodes() *gomock.Call
- func (mr *MockIShardingSphereProxyMockRecorder) ImportMetaData(in interface{}) *gomock.Call
- func (mr *MockIShardingSphereProxyMockRecorder) LockForBackup() *gomock.Call
- func (mr *MockIShardingSphereProxyMockRecorder) LockForRestore() *gomock.Call
- func (mr *MockIShardingSphereProxyMockRecorder) Unlock() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIAgentServer ¶
type MockIAgentServer struct {
// contains filtered or unexported fields
}
MockIAgentServer is a mock of IAgentServer interface.
func NewMockIAgentServer ¶
func NewMockIAgentServer(ctrl *gomock.Controller) *MockIAgentServer
NewMockIAgentServer creates a new mock instance.
func (*MockIAgentServer) Backup ¶
func (m *MockIAgentServer) Backup(in *model.BackupIn) (string, error)
Backup mocks base method.
func (*MockIAgentServer) CheckStatus ¶
func (m *MockIAgentServer) CheckStatus(in *model.HealthCheckIn) error
CheckStatus mocks base method.
func (*MockIAgentServer) DeleteBackup ¶
func (m *MockIAgentServer) DeleteBackup(in *model.DeleteBackupIn) error
DeleteBackup mocks base method.
func (*MockIAgentServer) EXPECT ¶
func (m *MockIAgentServer) EXPECT() *MockIAgentServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIAgentServer) Restore ¶
func (m *MockIAgentServer) Restore(in *model.RestoreIn) error
Restore mocks base method.
func (*MockIAgentServer) ShowDetail ¶
func (m *MockIAgentServer) ShowDetail(in *model.ShowDetailIn) (*model.BackupInfo, error)
ShowDetail mocks base method.
func (*MockIAgentServer) ShowDiskSpace ¶
func (m *MockIAgentServer) ShowDiskSpace(in *model.DiskSpaceIn) (*model.DiskSpaceInfo, error)
ShowDiskSpace mocks base method.
func (*MockIAgentServer) ShowList ¶
func (m *MockIAgentServer) ShowList(in *model.ShowListIn) ([]model.BackupInfo, error)
ShowList mocks base method.
type MockIAgentServerMockRecorder ¶
type MockIAgentServerMockRecorder struct {
// contains filtered or unexported fields
}
MockIAgentServerMockRecorder is the mock recorder for MockIAgentServer.
func (*MockIAgentServerMockRecorder) Backup ¶
func (mr *MockIAgentServerMockRecorder) Backup(in interface{}) *gomock.Call
Backup indicates an expected call of Backup.
func (*MockIAgentServerMockRecorder) CheckStatus ¶
func (mr *MockIAgentServerMockRecorder) CheckStatus(in interface{}) *gomock.Call
CheckStatus indicates an expected call of CheckStatus.
func (*MockIAgentServerMockRecorder) DeleteBackup ¶
func (mr *MockIAgentServerMockRecorder) DeleteBackup(in interface{}) *gomock.Call
DeleteBackup indicates an expected call of DeleteBackup.
func (*MockIAgentServerMockRecorder) Restore ¶
func (mr *MockIAgentServerMockRecorder) Restore(in interface{}) *gomock.Call
Restore indicates an expected call of Restore.
func (*MockIAgentServerMockRecorder) ShowDetail ¶
func (mr *MockIAgentServerMockRecorder) ShowDetail(in interface{}) *gomock.Call
ShowDetail indicates an expected call of ShowDetail.
func (*MockIAgentServerMockRecorder) ShowDiskSpace ¶
func (mr *MockIAgentServerMockRecorder) ShowDiskSpace(in interface{}) *gomock.Call
ShowDiskSpace indicates an expected call of ShowDiskSpace.
func (*MockIAgentServerMockRecorder) ShowList ¶
func (mr *MockIAgentServerMockRecorder) ShowList(in interface{}) *gomock.Call
ShowList indicates an expected call of ShowList.
type MockILocalStorage ¶
type MockILocalStorage struct {
// contains filtered or unexported fields
}
MockILocalStorage is a mock of ILocalStorage interface
func NewMockILocalStorage ¶
func NewMockILocalStorage(ctrl *gomock.Controller) *MockILocalStorage
NewMockILocalStorage creates a new mock instance
func (*MockILocalStorage) DeleteByHidedName ¶
func (m *MockILocalStorage) DeleteByHidedName(name string) error
DeleteByHidedName mocks base method
func (*MockILocalStorage) DeleteByName ¶
func (m *MockILocalStorage) DeleteByName(name string) error
DeleteByName mocks base method
func (*MockILocalStorage) EXPECT ¶
func (m *MockILocalStorage) EXPECT() *MockILocalStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockILocalStorage) GenFilename ¶
func (m *MockILocalStorage) GenFilename(extn pkg.Extension) string
GenFilename mocks base method
func (*MockILocalStorage) HideByName ¶
func (m *MockILocalStorage) HideByName(name string) error
HideByName mocks base method
func (*MockILocalStorage) ReadAll ¶
func (m *MockILocalStorage) ReadAll() ([]*model.LsBackup, error)
ReadAll mocks base method
func (*MockILocalStorage) ReadAllByCSN ¶
func (m *MockILocalStorage) ReadAllByCSN(csn string) ([]*model.LsBackup, error)
ReadAllByCSN mocks base method
func (*MockILocalStorage) ReadByCSN ¶
func (m *MockILocalStorage) ReadByCSN(csn string) (*model.LsBackup, error)
ReadByCSN mocks base method
func (*MockILocalStorage) ReadByID ¶
func (m *MockILocalStorage) ReadByID(id string) (*model.LsBackup, error)
ReadByID mocks base method
func (*MockILocalStorage) WriteByJSON ¶
func (m *MockILocalStorage) WriteByJSON(name string, contents *model.LsBackup) error
WriteByJSON mocks base method
type MockILocalStorageMockRecorder ¶
type MockILocalStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockILocalStorageMockRecorder is the mock recorder for MockILocalStorage
func (*MockILocalStorageMockRecorder) DeleteByHidedName ¶
func (mr *MockILocalStorageMockRecorder) DeleteByHidedName(name interface{}) *gomock.Call
DeleteByHidedName indicates an expected call of DeleteByHidedName
func (*MockILocalStorageMockRecorder) DeleteByName ¶
func (mr *MockILocalStorageMockRecorder) DeleteByName(name interface{}) *gomock.Call
DeleteByName indicates an expected call of DeleteByName
func (*MockILocalStorageMockRecorder) GenFilename ¶
func (mr *MockILocalStorageMockRecorder) GenFilename(extn interface{}) *gomock.Call
GenFilename indicates an expected call of GenFilename
func (*MockILocalStorageMockRecorder) HideByName ¶
func (mr *MockILocalStorageMockRecorder) HideByName(name interface{}) *gomock.Call
HideByName indicates an expected call of HideByName
func (*MockILocalStorageMockRecorder) ReadAll ¶
func (mr *MockILocalStorageMockRecorder) ReadAll() *gomock.Call
ReadAll indicates an expected call of ReadAll
func (*MockILocalStorageMockRecorder) ReadAllByCSN ¶
func (mr *MockILocalStorageMockRecorder) ReadAllByCSN(csn interface{}) *gomock.Call
ReadAllByCSN indicates an expected call of ReadAllByCSN
func (*MockILocalStorageMockRecorder) ReadByCSN ¶
func (mr *MockILocalStorageMockRecorder) ReadByCSN(csn interface{}) *gomock.Call
ReadByCSN indicates an expected call of ReadByCSN
func (*MockILocalStorageMockRecorder) ReadByID ¶
func (mr *MockILocalStorageMockRecorder) ReadByID(id interface{}) *gomock.Call
ReadByID indicates an expected call of ReadByID
func (*MockILocalStorageMockRecorder) WriteByJSON ¶
func (mr *MockILocalStorageMockRecorder) WriteByJSON(name, contents interface{}) *gomock.Call
WriteByJSON indicates an expected call of WriteByJSON
type MockIShardingSphereProxy ¶
type MockIShardingSphereProxy struct {
// contains filtered or unexported fields
}
MockIShardingSphereProxy is a mock of IShardingSphereProxy interface.
func NewMockIShardingSphereProxy ¶
func NewMockIShardingSphereProxy(ctrl *gomock.Controller) *MockIShardingSphereProxy
NewMockIShardingSphereProxy creates a new mock instance.
func (*MockIShardingSphereProxy) DropDatabase ¶
func (m *MockIShardingSphereProxy) DropDatabase(shardingDBName string) error
DropDatabase mocks base method.
func (*MockIShardingSphereProxy) EXPECT ¶
func (m *MockIShardingSphereProxy) EXPECT() *MockIShardingSphereProxyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIShardingSphereProxy) ExportMetaData ¶
func (m *MockIShardingSphereProxy) ExportMetaData() (*model.ClusterInfo, error)
ExportMetaData mocks base method.
func (*MockIShardingSphereProxy) ExportStorageNodes ¶
func (m *MockIShardingSphereProxy) ExportStorageNodes() ([]*model.StorageNode, error)
ExportStorageNodes mocks base method.
func (*MockIShardingSphereProxy) ImportMetaData ¶
func (m *MockIShardingSphereProxy) ImportMetaData(in *model.ClusterInfo) error
ImportMetaData mocks base method.
func (*MockIShardingSphereProxy) LockForBackup ¶
func (m *MockIShardingSphereProxy) LockForBackup() error
LockForBackup mocks base method.
func (*MockIShardingSphereProxy) LockForRestore ¶
func (m *MockIShardingSphereProxy) LockForRestore() error
LockForRestore mocks base method.
func (*MockIShardingSphereProxy) Unlock ¶
func (m *MockIShardingSphereProxy) Unlock() error
Unlock mocks base method.
type MockIShardingSphereProxyMockRecorder ¶
type MockIShardingSphereProxyMockRecorder struct {
// contains filtered or unexported fields
}
MockIShardingSphereProxyMockRecorder is the mock recorder for MockIShardingSphereProxy.
func (*MockIShardingSphereProxyMockRecorder) DropDatabase ¶
func (mr *MockIShardingSphereProxyMockRecorder) DropDatabase(shardingDBName interface{}) *gomock.Call
DropDatabase indicates an expected call of DropDatabase.
func (*MockIShardingSphereProxyMockRecorder) ExportMetaData ¶
func (mr *MockIShardingSphereProxyMockRecorder) ExportMetaData() *gomock.Call
ExportMetaData indicates an expected call of ExportMetaData.
func (*MockIShardingSphereProxyMockRecorder) ExportStorageNodes ¶
func (mr *MockIShardingSphereProxyMockRecorder) ExportStorageNodes() *gomock.Call
ExportStorageNodes indicates an expected call of ExportStorageNodes.
func (*MockIShardingSphereProxyMockRecorder) ImportMetaData ¶
func (mr *MockIShardingSphereProxyMockRecorder) ImportMetaData(in interface{}) *gomock.Call
ImportMetaData indicates an expected call of ImportMetaData.
func (*MockIShardingSphereProxyMockRecorder) LockForBackup ¶
func (mr *MockIShardingSphereProxyMockRecorder) LockForBackup() *gomock.Call
LockForBackup indicates an expected call of LockForBackup.
func (*MockIShardingSphereProxyMockRecorder) LockForRestore ¶
func (mr *MockIShardingSphereProxyMockRecorder) LockForRestore() *gomock.Call
LockForRestore indicates an expected call of LockForRestore.
func (*MockIShardingSphereProxyMockRecorder) Unlock ¶
func (mr *MockIShardingSphereProxyMockRecorder) Unlock() *gomock.Call
Unlock indicates an expected call of Unlock.