mock_index

package
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_index is a generated GoMock package.

Index

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) BlocksAdd added in v0.5.0

func (m *MockIndex) BlocksAdd(arg0 context.Context, arg1 []blocks.Block) error

BlocksAdd mocks base method.

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

func (m *MockIndex) BlocksLock(arg0 context.Context, arg1 []blocks.Block) (func(), error)

BlocksLock mocks base method.

func (*MockIndex) CheckLimits added in v0.6.0

func (m *MockIndex) CheckLimits(arg0 context.Context, arg1 index.Key) error

CheckLimits mocks base method.

func (*MockIndex) CidEntries added in v0.5.0

func (m *MockIndex) CidEntries(arg0 context.Context, arg1 []cid.Cid) (*index.CidEntries, error)

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) CidExists added in v0.5.0

func (m *MockIndex) CidExists(arg0 context.Context, arg1 cid.Cid) (bool, error)

CidExists 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) Close added in v0.5.0

func (m *MockIndex) Close(arg0 context.Context) error

Close 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

func (m *MockIndex) FileUnbind(arg0 context.Context, arg1 index.Key, arg2 ...string) error

FileUnbind mocks base method.

func (*MockIndex) FilesList added in v0.6.0

func (m *MockIndex) FilesList(arg0 context.Context, arg1 index.Key) ([]string, error)

FilesList mocks base method.

func (*MockIndex) GroupInfo added in v0.5.0

func (m *MockIndex) GroupInfo(arg0 context.Context, arg1 string) (index.GroupInfo, error)

GroupInfo mocks base method.

func (*MockIndex) Init

func (m *MockIndex) Init(arg0 *app.App) error

Init mocks base method.

func (*MockIndex) Migrate added in v0.5.0

func (m *MockIndex) Migrate(arg0 context.Context, arg1 index.Key) error

Migrate mocks base method.

func (*MockIndex) Name

func (m *MockIndex) Name() string

Name mocks base method.

func (*MockIndex) OnBlockUploaded added in v0.6.0

func (m *MockIndex) OnBlockUploaded(arg0 context.Context, arg1 ...blocks.Block)

OnBlockUploaded mocks base method.

func (*MockIndex) Run added in v0.5.0

func (m *MockIndex) Run(arg0 context.Context) error

Run mocks base method.

func (*MockIndex) SetGroupLimit added in v0.6.0

func (m *MockIndex) SetGroupLimit(arg0 context.Context, arg1 string, arg2 uint64) error

SetGroupLimit mocks base method.

func (*MockIndex) SetSpaceLimit added in v0.6.0

func (m *MockIndex) SetSpaceLimit(arg0 context.Context, arg1 index.Key, arg2 uint64) error

SetSpaceLimit mocks base method.

func (*MockIndex) SpaceDelete added in v0.5.1

func (m *MockIndex) SpaceDelete(arg0 context.Context, arg1 index.Key) (bool, error)

SpaceDelete mocks base method.

func (*MockIndex) SpaceInfo

func (m *MockIndex) SpaceInfo(arg0 context.Context, arg1 index.Key) (index.SpaceInfo, error)

SpaceInfo mocks base method.

func (*MockIndex) WaitCidExists added in v0.6.0

func (m *MockIndex) WaitCidExists(arg0 context.Context, arg1 cid.Cid) error

WaitCidExists 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) 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL