Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/anyproto/any-sync-filenode/index (interfaces: Index)
Generated by this command:
mockgen -destination mock_index/mock_index.go github.com/anyproto/any-sync-filenode/index Index
Package mock_index is a generated GoMock package.
Index ¶
- type MockIndex
- func (m *MockIndex) BlocksAdd(arg0 context.Context, arg1 []blocks.Block) error
- func (m *MockIndex) BlocksGetNonExistent(arg0 context.Context, arg1 []blocks.Block) ([]blocks.Block, error)
- func (m *MockIndex) BlocksLock(arg0 context.Context, arg1 []blocks.Block) (func(), error)
- func (m *MockIndex) CidEntries(arg0 context.Context, arg1 []cid.Cid) (*index.CidEntries, error)
- func (m *MockIndex) CidEntriesByBlocks(arg0 context.Context, arg1 []blocks.Block) (*index.CidEntries, error)
- func (m *MockIndex) CidExists(arg0 context.Context, arg1 cid.Cid) (bool, error)
- func (m *MockIndex) CidExistsInSpace(arg0 context.Context, arg1 index.Key, arg2 []cid.Cid) ([]cid.Cid, error)
- func (m *MockIndex) Close(arg0 context.Context) error
- func (m *MockIndex) EXPECT() *MockIndexMockRecorder
- func (m *MockIndex) FileBind(arg0 context.Context, arg1 index.Key, arg2 string, arg3 *index.CidEntries) error
- func (m *MockIndex) FileInfo(arg0 context.Context, arg1 index.Key, arg2 ...string) ([]index.FileInfo, error)
- func (m *MockIndex) FileUnbind(arg0 context.Context, arg1 index.Key, arg2 ...string) error
- func (m *MockIndex) GroupInfo(arg0 context.Context, arg1 string) (index.GroupInfo, error)
- func (m *MockIndex) Init(arg0 *app.App) error
- func (m *MockIndex) Migrate(arg0 context.Context, arg1 index.Key) error
- func (m *MockIndex) Name() string
- func (m *MockIndex) Run(arg0 context.Context) error
- func (m *MockIndex) SpaceDelete(arg0 context.Context, arg1 index.Key) (bool, error)
- func (m *MockIndex) SpaceInfo(arg0 context.Context, arg1 index.Key) (index.SpaceInfo, error)
- type MockIndexMockRecorder
- func (mr *MockIndexMockRecorder) BlocksAdd(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) BlocksGetNonExistent(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) BlocksLock(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) CidEntries(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) CidEntriesByBlocks(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) CidExists(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) CidExistsInSpace(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockIndexMockRecorder) Close(arg0 any) *gomock.Call
- func (mr *MockIndexMockRecorder) FileBind(arg0, arg1, arg2, arg3 any) *gomock.Call
- func (mr *MockIndexMockRecorder) FileInfo(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockIndexMockRecorder) FileUnbind(arg0, arg1 any, arg2 ...any) *gomock.Call
- func (mr *MockIndexMockRecorder) GroupInfo(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) Init(arg0 any) *gomock.Call
- func (mr *MockIndexMockRecorder) Migrate(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) Name() *gomock.Call
- func (mr *MockIndexMockRecorder) Run(arg0 any) *gomock.Call
- func (mr *MockIndexMockRecorder) SpaceDelete(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) SpaceInfo(arg0, arg1 any) *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) BlocksGetNonExistent ¶ added in v0.5.0
func (m *MockIndex) BlocksGetNonExistent(arg0 context.Context, arg1 []blocks.Block) ([]blocks.Block, error)
BlocksGetNonExistent mocks base method.
func (*MockIndex) BlocksLock ¶ added in v0.5.0
BlocksLock mocks base method.
func (*MockIndex) CidEntries ¶ added in v0.5.0
CidEntries mocks base method.
func (*MockIndex) CidEntriesByBlocks ¶ added in v0.5.0
func (m *MockIndex) CidEntriesByBlocks(arg0 context.Context, arg1 []blocks.Block) (*index.CidEntries, error)
CidEntriesByBlocks mocks base method.
func (*MockIndex) CidExistsInSpace ¶ added in v0.5.0
func (m *MockIndex) CidExistsInSpace(arg0 context.Context, arg1 index.Key, arg2 []cid.Cid) ([]cid.Cid, error)
CidExistsInSpace mocks base method.
func (*MockIndex) EXPECT ¶
func (m *MockIndex) EXPECT() *MockIndexMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockIndex) FileBind ¶ added in v0.5.0
func (m *MockIndex) FileBind(arg0 context.Context, arg1 index.Key, arg2 string, arg3 *index.CidEntries) error
FileBind mocks base method.
func (*MockIndex) FileInfo ¶
func (m *MockIndex) FileInfo(arg0 context.Context, arg1 index.Key, arg2 ...string) ([]index.FileInfo, error)
FileInfo mocks base method.
func (*MockIndex) FileUnbind ¶ added in v0.5.0
FileUnbind mocks base method.
func (*MockIndex) SpaceDelete ¶ added in v0.5.1
SpaceDelete mocks base method.
type MockIndexMockRecorder ¶
type MockIndexMockRecorder struct {
// contains filtered or unexported fields
}
MockIndexMockRecorder is the mock recorder for MockIndex.
func (*MockIndexMockRecorder) BlocksAdd ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) BlocksAdd(arg0, arg1 any) *gomock.Call
BlocksAdd indicates an expected call of BlocksAdd.
func (*MockIndexMockRecorder) BlocksGetNonExistent ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) BlocksGetNonExistent(arg0, arg1 any) *gomock.Call
BlocksGetNonExistent indicates an expected call of BlocksGetNonExistent.
func (*MockIndexMockRecorder) BlocksLock ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) BlocksLock(arg0, arg1 any) *gomock.Call
BlocksLock indicates an expected call of BlocksLock.
func (*MockIndexMockRecorder) CidEntries ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) CidEntries(arg0, arg1 any) *gomock.Call
CidEntries indicates an expected call of CidEntries.
func (*MockIndexMockRecorder) CidEntriesByBlocks ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) CidEntriesByBlocks(arg0, arg1 any) *gomock.Call
CidEntriesByBlocks indicates an expected call of CidEntriesByBlocks.
func (*MockIndexMockRecorder) CidExists ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) CidExists(arg0, arg1 any) *gomock.Call
CidExists indicates an expected call of CidExists.
func (*MockIndexMockRecorder) CidExistsInSpace ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) CidExistsInSpace(arg0, arg1, arg2 any) *gomock.Call
CidExistsInSpace indicates an expected call of CidExistsInSpace.
func (*MockIndexMockRecorder) Close ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) Close(arg0 any) *gomock.Call
Close indicates an expected call of Close.
func (*MockIndexMockRecorder) FileBind ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) FileBind(arg0, arg1, arg2, arg3 any) *gomock.Call
FileBind indicates an expected call of FileBind.
func (*MockIndexMockRecorder) FileInfo ¶
func (mr *MockIndexMockRecorder) FileInfo(arg0, arg1 any, arg2 ...any) *gomock.Call
FileInfo indicates an expected call of FileInfo.
func (*MockIndexMockRecorder) FileUnbind ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) FileUnbind(arg0, arg1 any, arg2 ...any) *gomock.Call
FileUnbind indicates an expected call of FileUnbind.
func (*MockIndexMockRecorder) GroupInfo ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) GroupInfo(arg0, arg1 any) *gomock.Call
GroupInfo indicates an expected call of GroupInfo.
func (*MockIndexMockRecorder) Init ¶
func (mr *MockIndexMockRecorder) Init(arg0 any) *gomock.Call
Init indicates an expected call of Init.
func (*MockIndexMockRecorder) Migrate ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) Migrate(arg0, arg1 any) *gomock.Call
Migrate indicates an expected call of Migrate.
func (*MockIndexMockRecorder) Name ¶
func (mr *MockIndexMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockIndexMockRecorder) Run ¶ added in v0.5.0
func (mr *MockIndexMockRecorder) Run(arg0 any) *gomock.Call
Run indicates an expected call of Run.
func (*MockIndexMockRecorder) SpaceDelete ¶ added in v0.5.1
func (mr *MockIndexMockRecorder) SpaceDelete(arg0, arg1 any) *gomock.Call
SpaceDelete indicates an expected call of SpaceDelete.