Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- func ProxyMockClusterMgrCli(tb testing.TB) cm.APIProxy
- type MockBlobDeleteHandler
- type MockBlobDeleteHandlerMockRecorder
- type MockCacher
- func (m *MockCacher) EXPECT() *MockCacherMockRecorder
- func (m *MockCacher) Erase(arg0 context.Context, arg1 string) error
- func (m *MockCacher) GetDisk(arg0 context.Context, arg1 *proxy.CacheDiskArgs) (*blobnode.DiskInfo, error)
- func (m *MockCacher) GetVolume(arg0 context.Context, arg1 *proxy.CacheVolumeArgs) (*proxy.VersionVolume, error)
- type MockCacherMockRecorder
- type MockProducer
- type MockProducerMockRecorder
- type MockShardRepairHandler
- type MockShardRepairHandlerMockRecorder
- type MockVolumeMgr
- func (m *MockVolumeMgr) Alloc(arg0 context.Context, arg1 *proxy.AllocVolsArgs) ([]proxy.AllocRet, error)
- func (m *MockVolumeMgr) Close()
- func (m *MockVolumeMgr) EXPECT() *MockVolumeMgrMockRecorder
- func (m *MockVolumeMgr) List(arg0 context.Context, arg1 codemode.CodeMode) ([]proto.Vid, []clustermgr.AllocVolumeInfo, error)
- type MockVolumeMgrMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MockBlobDeleteHandler ¶
type MockBlobDeleteHandler struct {
// contains filtered or unexported fields
}
MockBlobDeleteHandler is a mock of BlobDeleteHandler interface.
func NewMockBlobDeleteHandler ¶
func NewMockBlobDeleteHandler(ctrl *gomock.Controller) *MockBlobDeleteHandler
NewMockBlobDeleteHandler creates a new mock instance.
func (*MockBlobDeleteHandler) EXPECT ¶
func (m *MockBlobDeleteHandler) EXPECT() *MockBlobDeleteHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlobDeleteHandler) SendDeleteMsg ¶
func (m *MockBlobDeleteHandler) SendDeleteMsg(arg0 context.Context, arg1 *proxy.DeleteArgs) error
SendDeleteMsg mocks base method.
type MockBlobDeleteHandlerMockRecorder ¶
type MockBlobDeleteHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockBlobDeleteHandlerMockRecorder is the mock recorder for MockBlobDeleteHandler.
func (*MockBlobDeleteHandlerMockRecorder) SendDeleteMsg ¶
func (mr *MockBlobDeleteHandlerMockRecorder) SendDeleteMsg(arg0, arg1 interface{}) *gomock.Call
SendDeleteMsg indicates an expected call of SendDeleteMsg.
type MockCacher ¶
type MockCacher struct {
// contains filtered or unexported fields
}
MockCacher is a mock of Cacher interface.
func NewMockCacher ¶
func NewMockCacher(ctrl *gomock.Controller) *MockCacher
NewMockCacher creates a new mock instance.
func (*MockCacher) EXPECT ¶
func (m *MockCacher) EXPECT() *MockCacherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCacher) Erase ¶
func (m *MockCacher) Erase(arg0 context.Context, arg1 string) error
Erase mocks base method.
func (*MockCacher) GetDisk ¶
func (m *MockCacher) GetDisk(arg0 context.Context, arg1 *proxy.CacheDiskArgs) (*blobnode.DiskInfo, error)
GetDisk mocks base method.
func (*MockCacher) GetVolume ¶
func (m *MockCacher) GetVolume(arg0 context.Context, arg1 *proxy.CacheVolumeArgs) (*proxy.VersionVolume, error)
GetVolume mocks base method.
type MockCacherMockRecorder ¶
type MockCacherMockRecorder struct {
// contains filtered or unexported fields
}
MockCacherMockRecorder is the mock recorder for MockCacher.
func (*MockCacherMockRecorder) Erase ¶
func (mr *MockCacherMockRecorder) Erase(arg0, arg1 interface{}) *gomock.Call
Erase indicates an expected call of Erase.
func (*MockCacherMockRecorder) GetDisk ¶
func (mr *MockCacherMockRecorder) GetDisk(arg0, arg1 interface{}) *gomock.Call
GetDisk indicates an expected call of GetDisk.
func (*MockCacherMockRecorder) GetVolume ¶
func (mr *MockCacherMockRecorder) GetVolume(arg0, arg1 interface{}) *gomock.Call
GetVolume indicates an expected call of GetVolume.
type MockProducer ¶
type MockProducer struct {
// contains filtered or unexported fields
}
MockProducer is a mock of Producer interface.
func NewMockProducer ¶
func NewMockProducer(ctrl *gomock.Controller) *MockProducer
NewMockProducer creates a new mock instance.
func (*MockProducer) EXPECT ¶
func (m *MockProducer) EXPECT() *MockProducerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProducer) SendMessage ¶
func (m *MockProducer) SendMessage(arg0 string, arg1 []byte) error
SendMessage mocks base method.
func (*MockProducer) SendMessages ¶
func (m *MockProducer) SendMessages(arg0 string, arg1 [][]byte) error
SendMessages mocks base method.
type MockProducerMockRecorder ¶
type MockProducerMockRecorder struct {
// contains filtered or unexported fields
}
MockProducerMockRecorder is the mock recorder for MockProducer.
func (*MockProducerMockRecorder) SendMessage ¶
func (mr *MockProducerMockRecorder) SendMessage(arg0, arg1 interface{}) *gomock.Call
SendMessage indicates an expected call of SendMessage.
func (*MockProducerMockRecorder) SendMessages ¶
func (mr *MockProducerMockRecorder) SendMessages(arg0, arg1 interface{}) *gomock.Call
SendMessages indicates an expected call of SendMessages.
type MockShardRepairHandler ¶
type MockShardRepairHandler struct {
// contains filtered or unexported fields
}
MockShardRepairHandler is a mock of ShardRepairHandler interface.
func NewMockShardRepairHandler ¶
func NewMockShardRepairHandler(ctrl *gomock.Controller) *MockShardRepairHandler
NewMockShardRepairHandler creates a new mock instance.
func (*MockShardRepairHandler) EXPECT ¶
func (m *MockShardRepairHandler) EXPECT() *MockShardRepairHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockShardRepairHandler) SendShardRepairMsg ¶
func (m *MockShardRepairHandler) SendShardRepairMsg(arg0 context.Context, arg1 *proxy.ShardRepairArgs) error
SendShardRepairMsg mocks base method.
type MockShardRepairHandlerMockRecorder ¶
type MockShardRepairHandlerMockRecorder struct {
// contains filtered or unexported fields
}
MockShardRepairHandlerMockRecorder is the mock recorder for MockShardRepairHandler.
func (*MockShardRepairHandlerMockRecorder) SendShardRepairMsg ¶
func (mr *MockShardRepairHandlerMockRecorder) SendShardRepairMsg(arg0, arg1 interface{}) *gomock.Call
SendShardRepairMsg indicates an expected call of SendShardRepairMsg.
type MockVolumeMgr ¶
type MockVolumeMgr struct {
// contains filtered or unexported fields
}
MockVolumeMgr is a mock of VolumeMgr interface.
func NewMockVolumeMgr ¶
func NewMockVolumeMgr(ctrl *gomock.Controller) *MockVolumeMgr
NewMockVolumeMgr creates a new mock instance.
func (*MockVolumeMgr) Alloc ¶
func (m *MockVolumeMgr) Alloc(arg0 context.Context, arg1 *proxy.AllocVolsArgs) ([]proxy.AllocRet, error)
Alloc mocks base method.
func (*MockVolumeMgr) EXPECT ¶
func (m *MockVolumeMgr) EXPECT() *MockVolumeMgrMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockVolumeMgr) List ¶
func (m *MockVolumeMgr) List(arg0 context.Context, arg1 codemode.CodeMode) ([]proto.Vid, []clustermgr.AllocVolumeInfo, error)
List mocks base method.
type MockVolumeMgrMockRecorder ¶
type MockVolumeMgrMockRecorder struct {
// contains filtered or unexported fields
}
MockVolumeMgrMockRecorder is the mock recorder for MockVolumeMgr.
func (*MockVolumeMgrMockRecorder) Alloc ¶
func (mr *MockVolumeMgrMockRecorder) Alloc(arg0, arg1 interface{}) *gomock.Call
Alloc indicates an expected call of Alloc.
func (*MockVolumeMgrMockRecorder) Close ¶
func (mr *MockVolumeMgrMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockVolumeMgrMockRecorder) List ¶
func (mr *MockVolumeMgrMockRecorder) List(arg0, arg1 interface{}) *gomock.Call
List indicates an expected call of List.