Documentation ¶
Overview ¶
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) Check(arg0 context.Context, arg1 index.Key, arg2 bool) ([]index.CheckResult, error)
- func (m *MockIndex) CheckKey(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockIndex) CheckLimits(arg0 context.Context, arg1 index.Key) 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) FilesList(arg0 context.Context, arg1 index.Key) ([]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) OnBlockUploaded(arg0 context.Context, arg1 ...blocks.Block)
- func (m *MockIndex) Run(arg0 context.Context) error
- func (m *MockIndex) SetGroupLimit(arg0 context.Context, arg1 string, arg2 uint64) error
- func (m *MockIndex) SetSpaceLimit(arg0 context.Context, arg1 index.Key, arg2 uint64) 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)
- func (m *MockIndex) WaitCidExists(arg0 context.Context, arg1 cid.Cid) 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) Check(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockIndexMockRecorder) CheckKey(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) CheckLimits(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) FilesList(arg0, arg1 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) OnBlockUploaded(arg0 any, arg1 ...any) *gomock.Call
- func (mr *MockIndexMockRecorder) Run(arg0 any) *gomock.Call
- func (mr *MockIndexMockRecorder) SetGroupLimit(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockIndexMockRecorder) SetSpaceLimit(arg0, arg1, arg2 any) *gomock.Call
- func (mr *MockIndexMockRecorder) SpaceDelete(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) SpaceInfo(arg0, arg1 any) *gomock.Call
- func (mr *MockIndexMockRecorder) WaitCidExists(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) Check ¶ added in v0.6.7
func (m *MockIndex) Check(arg0 context.Context, arg1 index.Key, arg2 bool) ([]index.CheckResult, error)
Check mocks base method.
func (*MockIndex) CheckLimits ¶ added in v0.6.0
CheckLimits 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) OnBlockUploaded ¶ added in v0.6.0
OnBlockUploaded mocks base method.
func (*MockIndex) SetGroupLimit ¶ added in v0.6.0
SetGroupLimit mocks base method.
func (*MockIndex) SetSpaceLimit ¶ added in v0.6.0
SetSpaceLimit 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) Check ¶ added in v0.6.7
func (mr *MockIndexMockRecorder) Check(arg0, arg1, arg2 any) *gomock.Call
Check indicates an expected call of Check.
func (*MockIndexMockRecorder) CheckKey ¶ added in v0.6.7
func (mr *MockIndexMockRecorder) CheckKey(arg0, arg1 any) *gomock.Call
CheckKey indicates an expected call of CheckKey.
func (*MockIndexMockRecorder) CheckLimits ¶ added in v0.6.0
func (mr *MockIndexMockRecorder) CheckLimits(arg0, arg1 any) *gomock.Call
CheckLimits indicates an expected call of CheckLimits.
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) FilesList ¶ added in v0.6.0
func (mr *MockIndexMockRecorder) FilesList(arg0, arg1 any) *gomock.Call
FilesList indicates an expected call of FilesList.
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) OnBlockUploaded ¶ added in v0.6.0
func (mr *MockIndexMockRecorder) OnBlockUploaded(arg0 any, arg1 ...any) *gomock.Call
OnBlockUploaded indicates an expected call of OnBlockUploaded.
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) SetGroupLimit ¶ added in v0.6.0
func (mr *MockIndexMockRecorder) SetGroupLimit(arg0, arg1, arg2 any) *gomock.Call
SetGroupLimit indicates an expected call of SetGroupLimit.
func (*MockIndexMockRecorder) SetSpaceLimit ¶ added in v0.6.0
func (mr *MockIndexMockRecorder) SetSpaceLimit(arg0, arg1, arg2 any) *gomock.Call
SetSpaceLimit indicates an expected call of SetSpaceLimit.
func (*MockIndexMockRecorder) SpaceDelete ¶ added in v0.5.1
func (mr *MockIndexMockRecorder) SpaceDelete(arg0, arg1 any) *gomock.Call
SpaceDelete indicates an expected call of SpaceDelete.
func (*MockIndexMockRecorder) SpaceInfo ¶
func (mr *MockIndexMockRecorder) SpaceInfo(arg0, arg1 any) *gomock.Call
SpaceInfo indicates an expected call of SpaceInfo.
func (*MockIndexMockRecorder) WaitCidExists ¶ added in v0.6.0
func (mr *MockIndexMockRecorder) WaitCidExists(arg0, arg1 any) *gomock.Call
WaitCidExists indicates an expected call of WaitCidExists.