Documentation
¶
Overview ¶
Package mock_index is a generated GoMock package.
Index ¶
- type MockIndex
- func (m *MockIndex) AddBlocks(arg0 context.Context, arg1 []blocks.Block) error
- func (m *MockIndex) Bind(arg0 context.Context, arg1, arg2 string, arg3 []blocks.Block) error
- func (m *MockIndex) BindCids(arg0 context.Context, arg1, arg2 string, arg3 []cid.Cid) error
- func (m *MockIndex) EXPECT() *MockIndexMockRecorder
- func (m *MockIndex) Exists(arg0 context.Context, arg1 cid.Cid) (bool, error)
- func (m *MockIndex) ExistsInStorage(arg0 context.Context, arg1 string, arg2 []cid.Cid) ([]cid.Cid, error)
- func (m *MockIndex) FileInfo(arg0 context.Context, arg1, arg2 string) (index.FileInfo, error)
- func (m *MockIndex) GetNonExistentBlocks(arg0 context.Context, arg1 []blocks.Block) ([]blocks.Block, error)
- func (m *MockIndex) Init(arg0 *app.App) error
- func (m *MockIndex) IsAllExists(arg0 context.Context, arg1 []cid.Cid) (bool, error)
- func (m *MockIndex) Lock(arg0 context.Context, arg1 []cid.Cid) (func(), error)
- func (m *MockIndex) MoveStorage(arg0 context.Context, arg1, arg2 string) error
- func (m *MockIndex) Name() string
- func (m *MockIndex) StorageInfo(arg0 context.Context, arg1 string) (index.StorageInfo, error)
- func (m *MockIndex) StorageSize(arg0 context.Context, arg1 string) (uint64, error)
- func (m *MockIndex) UnBind(arg0 context.Context, arg1, arg2 string) error
- type MockIndexMockRecorder
- func (mr *MockIndexMockRecorder) AddBlocks(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) Bind(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) BindCids(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) Exists(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) ExistsInStorage(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) FileInfo(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) GetNonExistentBlocks(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) Init(arg0 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) IsAllExists(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) Lock(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) MoveStorage(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) Name() *gomock.Call
- func (mr *MockIndexMockRecorder) StorageInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) StorageSize(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) UnBind(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockIndex ¶
type MockIndex struct {
// contains filtered or unexported fields
}
MockIndex is a mock of Index interface.
func NewMockIndex ¶
func NewMockIndex(ctrl *gomock.Controller) *MockIndex
NewMockIndex creates a new mock instance.
func (*MockIndex) EXPECT ¶
func (m *MockIndex) EXPECT() *MockIndexMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIndex) ExistsInStorage ¶ added in v0.4.2
func (m *MockIndex) ExistsInStorage(arg0 context.Context, arg1 string, arg2 []cid.Cid) ([]cid.Cid, error)
ExistsInStorage mocks base method.
func (*MockIndex) GetNonExistentBlocks ¶
func (m *MockIndex) GetNonExistentBlocks(arg0 context.Context, arg1 []blocks.Block) ([]blocks.Block, error)
GetNonExistentBlocks mocks base method.
func (*MockIndex) IsAllExists ¶
IsAllExists mocks base method.
func (*MockIndex) MoveStorage ¶ added in v0.4.2
MoveStorage mocks base method.
func (*MockIndex) StorageInfo ¶ added in v0.4.2
StorageInfo mocks base method.
func (*MockIndex) StorageSize ¶ added in v0.4.2
StorageSize mocks base method.
type MockIndexMockRecorder ¶
type MockIndexMockRecorder struct {
// contains filtered or unexported fields
}
MockIndexMockRecorder is the mock recorder for MockIndex.
func (*MockIndexMockRecorder) AddBlocks ¶
func (mr *MockIndexMockRecorder) AddBlocks(arg0, arg1 interface{}) *gomock.Call
AddBlocks indicates an expected call of AddBlocks.
func (*MockIndexMockRecorder) Bind ¶
func (mr *MockIndexMockRecorder) Bind(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Bind indicates an expected call of Bind.
func (*MockIndexMockRecorder) BindCids ¶
func (mr *MockIndexMockRecorder) BindCids(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
BindCids indicates an expected call of BindCids.
func (*MockIndexMockRecorder) Exists ¶
func (mr *MockIndexMockRecorder) Exists(arg0, arg1 interface{}) *gomock.Call
Exists indicates an expected call of Exists.
func (*MockIndexMockRecorder) ExistsInStorage ¶ added in v0.4.2
func (mr *MockIndexMockRecorder) ExistsInStorage(arg0, arg1, arg2 interface{}) *gomock.Call
ExistsInStorage indicates an expected call of ExistsInStorage.
func (*MockIndexMockRecorder) FileInfo ¶
func (mr *MockIndexMockRecorder) FileInfo(arg0, arg1, arg2 interface{}) *gomock.Call
FileInfo indicates an expected call of FileInfo.
func (*MockIndexMockRecorder) GetNonExistentBlocks ¶
func (mr *MockIndexMockRecorder) GetNonExistentBlocks(arg0, arg1 interface{}) *gomock.Call
GetNonExistentBlocks indicates an expected call of GetNonExistentBlocks.
func (*MockIndexMockRecorder) Init ¶
func (mr *MockIndexMockRecorder) Init(arg0 interface{}) *gomock.Call
Init indicates an expected call of Init.
func (*MockIndexMockRecorder) IsAllExists ¶
func (mr *MockIndexMockRecorder) IsAllExists(arg0, arg1 interface{}) *gomock.Call
IsAllExists indicates an expected call of IsAllExists.
func (*MockIndexMockRecorder) Lock ¶
func (mr *MockIndexMockRecorder) Lock(arg0, arg1 interface{}) *gomock.Call
Lock indicates an expected call of Lock.
func (*MockIndexMockRecorder) MoveStorage ¶ added in v0.4.2
func (mr *MockIndexMockRecorder) MoveStorage(arg0, arg1, arg2 interface{}) *gomock.Call
MoveStorage indicates an expected call of MoveStorage.
func (*MockIndexMockRecorder) Name ¶
func (mr *MockIndexMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockIndexMockRecorder) StorageInfo ¶ added in v0.4.2
func (mr *MockIndexMockRecorder) StorageInfo(arg0, arg1 interface{}) *gomock.Call
StorageInfo indicates an expected call of StorageInfo.
func (*MockIndexMockRecorder) StorageSize ¶ added in v0.4.2
func (mr *MockIndexMockRecorder) StorageSize(arg0, arg1 interface{}) *gomock.Call
StorageSize indicates an expected call of StorageSize.
func (*MockIndexMockRecorder) UnBind ¶
func (mr *MockIndexMockRecorder) UnBind(arg0, arg1, arg2 interface{}) *gomock.Call
UnBind indicates an expected call of UnBind.