mock_nodestorage

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_nodestorage is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockIndexStorage added in v0.9.0

type MockIndexStorage struct {
	// contains filtered or unexported fields
}

MockIndexStorage is a mock of IndexStorage interface.

func NewMockIndexStorage added in v0.9.0

func NewMockIndexStorage(ctrl *gomock.Controller) *MockIndexStorage

NewMockIndexStorage creates a new mock instance.

func (*MockIndexStorage) Close added in v0.9.0

func (m *MockIndexStorage) Close() error

Close mocks base method.

func (*MockIndexStorage) EXPECT added in v0.9.0

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIndexStorage) FindOldestInactiveSpace added in v0.9.0

func (m *MockIndexStorage) FindOldestInactiveSpace(ctx context.Context, olderThan time.Duration, skip int) (string, error)

FindOldestInactiveSpace mocks base method.

func (*MockIndexStorage) GetDiffMigrationVersion added in v0.9.0

func (m *MockIndexStorage) GetDiffMigrationVersion(ctx context.Context) (int, error)

GetDiffMigrationVersion mocks base method.

func (*MockIndexStorage) LastRecordId added in v0.9.0

func (m *MockIndexStorage) LastRecordId(ctx context.Context) (string, error)

LastRecordId mocks base method.

func (*MockIndexStorage) MarkArchived added in v0.9.0

func (m *MockIndexStorage) MarkArchived(ctx context.Context, spaceId string, compressedSize, uncompressedSize int64) error

MarkArchived mocks base method.

func (*MockIndexStorage) ReadHashes added in v0.9.0

func (m *MockIndexStorage) ReadHashes(ctx context.Context, iterFunc func(nodestorage.SpaceUpdate) (bool, error)) error

ReadHashes mocks base method.

func (*MockIndexStorage) RunMigrations added in v0.9.0

func (m *MockIndexStorage) RunMigrations(ctx context.Context) error

RunMigrations mocks base method.

func (*MockIndexStorage) SetDiffMigrationVersion added in v0.9.0

func (m *MockIndexStorage) SetDiffMigrationVersion(ctx context.Context, version int) error

SetDiffMigrationVersion mocks base method.

func (*MockIndexStorage) SetSpaceStatus added in v0.9.0

func (m *MockIndexStorage) SetSpaceStatus(ctx context.Context, spaceId string, status nodestorage.SpaceStatus, recId string) error

SetSpaceStatus mocks base method.

func (*MockIndexStorage) SpaceStatus added in v0.9.0

func (m *MockIndexStorage) SpaceStatus(ctx context.Context, spaceId string) (nodestorage.SpaceStatus, error)

SpaceStatus mocks base method.

func (*MockIndexStorage) UpdateHash added in v0.9.0

func (m *MockIndexStorage) UpdateHash(ctx context.Context, updates ...nodestorage.SpaceUpdate) error

UpdateHash mocks base method.

func (*MockIndexStorage) UpdateHashes added in v0.9.0

func (m *MockIndexStorage) UpdateHashes(ctx context.Context, updateFunc func(string, string, string) (string, string, bool)) error

UpdateHashes mocks base method.

func (*MockIndexStorage) UpdateLastAccess added in v0.9.0

func (m *MockIndexStorage) UpdateLastAccess(ctx context.Context, spaceId string) error

UpdateLastAccess mocks base method.

type MockIndexStorageMockRecorder added in v0.9.0

type MockIndexStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockIndexStorageMockRecorder is the mock recorder for MockIndexStorage.

func (*MockIndexStorageMockRecorder) Close added in v0.9.0

Close indicates an expected call of Close.

func (*MockIndexStorageMockRecorder) FindOldestInactiveSpace added in v0.9.0

func (mr *MockIndexStorageMockRecorder) FindOldestInactiveSpace(ctx, olderThan, skip any) *gomock.Call

FindOldestInactiveSpace indicates an expected call of FindOldestInactiveSpace.

func (*MockIndexStorageMockRecorder) GetDiffMigrationVersion added in v0.9.0

func (mr *MockIndexStorageMockRecorder) GetDiffMigrationVersion(ctx any) *gomock.Call

GetDiffMigrationVersion indicates an expected call of GetDiffMigrationVersion.

func (*MockIndexStorageMockRecorder) LastRecordId added in v0.9.0

func (mr *MockIndexStorageMockRecorder) LastRecordId(ctx any) *gomock.Call

LastRecordId indicates an expected call of LastRecordId.

func (*MockIndexStorageMockRecorder) MarkArchived added in v0.9.0

func (mr *MockIndexStorageMockRecorder) MarkArchived(ctx, spaceId, compressedSize, uncompressedSize any) *gomock.Call

MarkArchived indicates an expected call of MarkArchived.

func (*MockIndexStorageMockRecorder) ReadHashes added in v0.9.0

func (mr *MockIndexStorageMockRecorder) ReadHashes(ctx, iterFunc any) *gomock.Call

ReadHashes indicates an expected call of ReadHashes.

func (*MockIndexStorageMockRecorder) RunMigrations added in v0.9.0

func (mr *MockIndexStorageMockRecorder) RunMigrations(ctx any) *gomock.Call

RunMigrations indicates an expected call of RunMigrations.

func (*MockIndexStorageMockRecorder) SetDiffMigrationVersion added in v0.9.0

func (mr *MockIndexStorageMockRecorder) SetDiffMigrationVersion(ctx, version any) *gomock.Call

SetDiffMigrationVersion indicates an expected call of SetDiffMigrationVersion.

func (*MockIndexStorageMockRecorder) SetSpaceStatus added in v0.9.0

func (mr *MockIndexStorageMockRecorder) SetSpaceStatus(ctx, spaceId, status, recId any) *gomock.Call

SetSpaceStatus indicates an expected call of SetSpaceStatus.

func (*MockIndexStorageMockRecorder) SpaceStatus added in v0.9.0

func (mr *MockIndexStorageMockRecorder) SpaceStatus(ctx, spaceId any) *gomock.Call

SpaceStatus indicates an expected call of SpaceStatus.

func (*MockIndexStorageMockRecorder) UpdateHash added in v0.9.0

func (mr *MockIndexStorageMockRecorder) UpdateHash(ctx any, updates ...any) *gomock.Call

UpdateHash indicates an expected call of UpdateHash.

func (*MockIndexStorageMockRecorder) UpdateHashes added in v0.9.0

func (mr *MockIndexStorageMockRecorder) UpdateHashes(ctx, updateFunc any) *gomock.Call

UpdateHashes indicates an expected call of UpdateHashes.

func (*MockIndexStorageMockRecorder) UpdateLastAccess added in v0.9.0

func (mr *MockIndexStorageMockRecorder) UpdateLastAccess(ctx, spaceId any) *gomock.Call

UpdateLastAccess indicates an expected call of UpdateLastAccess.

type MockNodeStorage

type MockNodeStorage struct {
	// contains filtered or unexported fields
}

MockNodeStorage is a mock of NodeStorage interface.

func NewMockNodeStorage

func NewMockNodeStorage(ctrl *gomock.Controller) *MockNodeStorage

NewMockNodeStorage creates a new mock instance.

func (*MockNodeStorage) AllSpaceIds

func (m *MockNodeStorage) AllSpaceIds() ([]string, error)

AllSpaceIds mocks base method.

func (*MockNodeStorage) CreateSpaceStorage

CreateSpaceStorage mocks base method.

func (*MockNodeStorage) DeleteSpaceStorage added in v0.3.1

func (m *MockNodeStorage) DeleteSpaceStorage(ctx context.Context, spaceId string) error

DeleteSpaceStorage mocks base method.

func (*MockNodeStorage) DumpStorage added in v0.5.0

func (m *MockNodeStorage) DumpStorage(ctx context.Context, id string, do func(string) error) error

DumpStorage mocks base method.

func (*MockNodeStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNodeStorage) ForceRemove added in v0.9.0

func (m *MockNodeStorage) ForceRemove(id string) error

ForceRemove mocks base method.

func (*MockNodeStorage) GetStats added in v0.5.0

func (m *MockNodeStorage) GetStats(ctx context.Context, id string, treeTop int) (nodestorage.SpaceStats, error)

GetStats mocks base method.

func (*MockNodeStorage) IndexSpace added in v0.9.0

func (m *MockNodeStorage) IndexSpace(ctx context.Context, spaceId string, setHead bool) (spacestorage.SpaceStorage, error)

IndexSpace mocks base method.

func (*MockNodeStorage) IndexStorage added in v0.5.0

func (m *MockNodeStorage) IndexStorage() nodestorage.IndexStorage

IndexStorage mocks base method.

func (*MockNodeStorage) Init

func (m *MockNodeStorage) Init(a *app.App) error

Init mocks base method.

func (*MockNodeStorage) Name

func (m *MockNodeStorage) Name() string

Name mocks base method.

func (*MockNodeStorage) OnDeleteStorage added in v0.3.9

func (m *MockNodeStorage) OnDeleteStorage(onDelete func(context.Context, string))

OnDeleteStorage mocks base method.

func (*MockNodeStorage) OnWriteHash

func (m *MockNodeStorage) OnWriteHash(onWrite func(context.Context, string, string, string))

OnWriteHash mocks base method.

func (*MockNodeStorage) SpaceExists

func (m *MockNodeStorage) SpaceExists(id string) bool

SpaceExists mocks base method.

func (*MockNodeStorage) SpaceStorage

func (m *MockNodeStorage) SpaceStorage(ctx context.Context, spaceId string) (spacestorage.SpaceStorage, error)

SpaceStorage mocks base method.

func (*MockNodeStorage) StoreDir

func (m *MockNodeStorage) StoreDir(spaceId string) string

StoreDir mocks base method.

func (*MockNodeStorage) TryLockAndDo

func (m *MockNodeStorage) TryLockAndDo(ctx context.Context, spaceId string, do nodestorage.DoFunc) error

TryLockAndDo mocks base method.

func (*MockNodeStorage) TryLockAndOpenDb added in v0.9.0

func (m *MockNodeStorage) TryLockAndOpenDb(ctx context.Context, spaceId string, do nodestorage.DoAfterOpenFunc) error

TryLockAndOpenDb mocks base method.

func (*MockNodeStorage) WaitSpaceStorage

func (m *MockNodeStorage) WaitSpaceStorage(ctx context.Context, id string) (spacestorage.SpaceStorage, error)

WaitSpaceStorage mocks base method.

type MockNodeStorageMockRecorder

type MockNodeStorageMockRecorder struct {
	// contains filtered or unexported fields
}

MockNodeStorageMockRecorder is the mock recorder for MockNodeStorage.

func (*MockNodeStorageMockRecorder) AllSpaceIds

func (mr *MockNodeStorageMockRecorder) AllSpaceIds() *gomock.Call

AllSpaceIds indicates an expected call of AllSpaceIds.

func (*MockNodeStorageMockRecorder) CreateSpaceStorage

func (mr *MockNodeStorageMockRecorder) CreateSpaceStorage(ctx, payload any) *gomock.Call

CreateSpaceStorage indicates an expected call of CreateSpaceStorage.

func (*MockNodeStorageMockRecorder) DeleteSpaceStorage added in v0.3.1

func (mr *MockNodeStorageMockRecorder) DeleteSpaceStorage(ctx, spaceId any) *gomock.Call

DeleteSpaceStorage indicates an expected call of DeleteSpaceStorage.

func (*MockNodeStorageMockRecorder) DumpStorage added in v0.5.0

func (mr *MockNodeStorageMockRecorder) DumpStorage(ctx, id, do any) *gomock.Call

DumpStorage indicates an expected call of DumpStorage.

func (*MockNodeStorageMockRecorder) ForceRemove added in v0.9.0

func (mr *MockNodeStorageMockRecorder) ForceRemove(id any) *gomock.Call

ForceRemove indicates an expected call of ForceRemove.

func (*MockNodeStorageMockRecorder) GetStats added in v0.5.0

func (mr *MockNodeStorageMockRecorder) GetStats(ctx, id, treeTop any) *gomock.Call

GetStats indicates an expected call of GetStats.

func (*MockNodeStorageMockRecorder) IndexSpace added in v0.9.0

func (mr *MockNodeStorageMockRecorder) IndexSpace(ctx, spaceId, setHead any) *gomock.Call

IndexSpace indicates an expected call of IndexSpace.

func (*MockNodeStorageMockRecorder) IndexStorage added in v0.5.0

func (mr *MockNodeStorageMockRecorder) IndexStorage() *gomock.Call

IndexStorage indicates an expected call of IndexStorage.

func (*MockNodeStorageMockRecorder) Init

Init indicates an expected call of Init.

func (*MockNodeStorageMockRecorder) Name

Name indicates an expected call of Name.

func (*MockNodeStorageMockRecorder) OnDeleteStorage added in v0.3.9

func (mr *MockNodeStorageMockRecorder) OnDeleteStorage(onDelete any) *gomock.Call

OnDeleteStorage indicates an expected call of OnDeleteStorage.

func (*MockNodeStorageMockRecorder) OnWriteHash

func (mr *MockNodeStorageMockRecorder) OnWriteHash(onWrite any) *gomock.Call

OnWriteHash indicates an expected call of OnWriteHash.

func (*MockNodeStorageMockRecorder) SpaceExists

func (mr *MockNodeStorageMockRecorder) SpaceExists(id any) *gomock.Call

SpaceExists indicates an expected call of SpaceExists.

func (*MockNodeStorageMockRecorder) SpaceStorage

func (mr *MockNodeStorageMockRecorder) SpaceStorage(ctx, spaceId any) *gomock.Call

SpaceStorage indicates an expected call of SpaceStorage.

func (*MockNodeStorageMockRecorder) StoreDir

func (mr *MockNodeStorageMockRecorder) StoreDir(spaceId any) *gomock.Call

StoreDir indicates an expected call of StoreDir.

func (*MockNodeStorageMockRecorder) TryLockAndDo

func (mr *MockNodeStorageMockRecorder) TryLockAndDo(ctx, spaceId, do any) *gomock.Call

TryLockAndDo indicates an expected call of TryLockAndDo.

func (*MockNodeStorageMockRecorder) TryLockAndOpenDb added in v0.9.0

func (mr *MockNodeStorageMockRecorder) TryLockAndOpenDb(ctx, spaceId, do any) *gomock.Call

TryLockAndOpenDb indicates an expected call of TryLockAndOpenDb.

func (*MockNodeStorageMockRecorder) WaitSpaceStorage

func (mr *MockNodeStorageMockRecorder) WaitSpaceStorage(ctx, id any) *gomock.Call

WaitSpaceStorage indicates an expected call of WaitSpaceStorage.

Jump to

Keyboard shortcuts

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