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) ExistsInSpace(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) Name() string
- func (m *MockIndex) SpaceInfo(arg0 context.Context, arg1 string) (index.SpaceInfo, error)
- func (m *MockIndex) SpaceSize(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) ExistsInSpace(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) Name() *gomock.Call
- func (mr *MockIndexMockRecorder) SpaceInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIndexMockRecorder) SpaceSize(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) ExistsInSpace ¶
func (m *MockIndex) ExistsInSpace(arg0 context.Context, arg1 string, arg2 []cid.Cid) ([]cid.Cid, error)
ExistsInSpace 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.
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) ExistsInSpace ¶
func (mr *MockIndexMockRecorder) ExistsInSpace(arg0, arg1, arg2 interface{}) *gomock.Call
ExistsInSpace indicates an expected call of ExistsInSpace.
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) Name ¶
func (mr *MockIndexMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockIndexMockRecorder) SpaceInfo ¶
func (mr *MockIndexMockRecorder) SpaceInfo(arg0, arg1 interface{}) *gomock.Call
SpaceInfo indicates an expected call of SpaceInfo.
func (*MockIndexMockRecorder) SpaceSize ¶
func (mr *MockIndexMockRecorder) SpaceSize(arg0, arg1 interface{}) *gomock.Call
SpaceSize indicates an expected call of SpaceSize.
func (*MockIndexMockRecorder) UnBind ¶
func (mr *MockIndexMockRecorder) UnBind(arg0, arg1, arg2 interface{}) *gomock.Call
UnBind indicates an expected call of UnBind.