mocks

package
v1.27.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0, MIT Imports: 13 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPartialFileHandler

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

MockPartialFileHandler is a mock of PartialFileHandler interface.

func NewMockPartialFileHandler

func NewMockPartialFileHandler(ctrl *gomock.Controller) *MockPartialFileHandler

NewMockPartialFileHandler creates a new mock instance.

func (*MockPartialFileHandler) Close

Close mocks base method.

func (*MockPartialFileHandler) EXPECT

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

func (*MockPartialFileHandler) HasAllocated

HasAllocated mocks base method.

func (*MockPartialFileHandler) OpenPartialFile

func (m *MockPartialFileHandler) OpenPartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*partialfile.PartialFile, error)

OpenPartialFile mocks base method.

func (*MockPartialFileHandler) Reader

Reader mocks base method.

type MockPartialFileHandlerMockRecorder

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

MockPartialFileHandlerMockRecorder is the mock recorder for MockPartialFileHandler.

func (*MockPartialFileHandlerMockRecorder) Close

func (mr *MockPartialFileHandlerMockRecorder) Close(pf interface{}) *gomock.Call

Close indicates an expected call of Close.

func (*MockPartialFileHandlerMockRecorder) HasAllocated

func (mr *MockPartialFileHandlerMockRecorder) HasAllocated(pf, offset, size interface{}) *gomock.Call

HasAllocated indicates an expected call of HasAllocated.

func (*MockPartialFileHandlerMockRecorder) OpenPartialFile

func (mr *MockPartialFileHandlerMockRecorder) OpenPartialFile(maxPieceSize, path interface{}) *gomock.Call

OpenPartialFile indicates an expected call of OpenPartialFile.

func (*MockPartialFileHandlerMockRecorder) Reader

func (mr *MockPartialFileHandlerMockRecorder) Reader(pf, offset, size interface{}) *gomock.Call

Reader indicates an expected call of Reader.

type MockSectorIndex

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

MockSectorIndex is a mock of SectorIndex interface.

func NewMockSectorIndex

func NewMockSectorIndex(ctrl *gomock.Controller) *MockSectorIndex

NewMockSectorIndex creates a new mock instance.

func (*MockSectorIndex) BatchStorageDeclareSectors added in v1.23.1

func (m *MockSectorIndex) BatchStorageDeclareSectors(ctx context.Context, declarations []paths.SectorDeclaration) error

BatchStorageDeclareSectors mocks base method.

func (*MockSectorIndex) EXPECT

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

func (*MockSectorIndex) StorageAttach

func (m *MockSectorIndex) StorageAttach(arg0 context.Context, arg1 storiface.StorageInfo, arg2 fsutil.FsStat) error

StorageAttach mocks base method.

func (*MockSectorIndex) StorageBestAlloc

func (m *MockSectorIndex) StorageBestAlloc(ctx context.Context, allocate storiface.SectorFileType, ssize abi.SectorSize, pathType storiface.PathType, miner abi.ActorID) ([]storiface.StorageInfo, error)

StorageBestAlloc mocks base method.

func (*MockSectorIndex) StorageDeclareSector

func (m *MockSectorIndex) StorageDeclareSector(ctx context.Context, storageID storiface.ID, s abi.SectorID, ft storiface.SectorFileType, primary bool) error

StorageDeclareSector mocks base method.

func (*MockSectorIndex) StorageDetach

func (m *MockSectorIndex) StorageDetach(ctx context.Context, id storiface.ID, url string) error

StorageDetach mocks base method.

func (*MockSectorIndex) StorageDropSector

func (m *MockSectorIndex) StorageDropSector(ctx context.Context, storageID storiface.ID, s abi.SectorID, ft storiface.SectorFileType) error

StorageDropSector mocks base method.

func (*MockSectorIndex) StorageFindSector

func (m *MockSectorIndex) StorageFindSector(ctx context.Context, sector abi.SectorID, ft storiface.SectorFileType, ssize abi.SectorSize, allowFetch bool) ([]storiface.SectorStorageInfo, error)

StorageFindSector mocks base method.

func (*MockSectorIndex) StorageGetLocks

func (m *MockSectorIndex) StorageGetLocks(ctx context.Context) (storiface.SectorLocks, error)

StorageGetLocks mocks base method.

func (*MockSectorIndex) StorageInfo

func (m *MockSectorIndex) StorageInfo(arg0 context.Context, arg1 storiface.ID) (storiface.StorageInfo, error)

StorageInfo mocks base method.

func (*MockSectorIndex) StorageList

func (m *MockSectorIndex) StorageList(ctx context.Context, id storiface.ID) ([]storiface.Decl, error)

StorageList mocks base method.

func (*MockSectorIndex) StorageLock

func (m *MockSectorIndex) StorageLock(ctx context.Context, sector abi.SectorID, read, write storiface.SectorFileType) error

StorageLock mocks base method.

func (*MockSectorIndex) StorageReportHealth

func (m *MockSectorIndex) StorageReportHealth(arg0 context.Context, arg1 storiface.ID, arg2 storiface.HealthReport) error

StorageReportHealth mocks base method.

func (*MockSectorIndex) StorageTryLock

func (m *MockSectorIndex) StorageTryLock(ctx context.Context, sector abi.SectorID, read, write storiface.SectorFileType) (bool, error)

StorageTryLock mocks base method.

type MockSectorIndexMockRecorder

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

MockSectorIndexMockRecorder is the mock recorder for MockSectorIndex.

func (*MockSectorIndexMockRecorder) BatchStorageDeclareSectors added in v1.23.1

func (mr *MockSectorIndexMockRecorder) BatchStorageDeclareSectors(ctx, declarations interface{}) *gomock.Call

BatchStorageDeclareSectors indicates an expected call of BatchStorageDeclareSectors.

func (*MockSectorIndexMockRecorder) StorageAttach

func (mr *MockSectorIndexMockRecorder) StorageAttach(arg0, arg1, arg2 interface{}) *gomock.Call

StorageAttach indicates an expected call of StorageAttach.

func (*MockSectorIndexMockRecorder) StorageBestAlloc

func (mr *MockSectorIndexMockRecorder) StorageBestAlloc(ctx, allocate, ssize, pathType, miner interface{}) *gomock.Call

StorageBestAlloc indicates an expected call of StorageBestAlloc.

func (*MockSectorIndexMockRecorder) StorageDeclareSector

func (mr *MockSectorIndexMockRecorder) StorageDeclareSector(ctx, storageID, s, ft, primary interface{}) *gomock.Call

StorageDeclareSector indicates an expected call of StorageDeclareSector.

func (*MockSectorIndexMockRecorder) StorageDetach

func (mr *MockSectorIndexMockRecorder) StorageDetach(ctx, id, url interface{}) *gomock.Call

StorageDetach indicates an expected call of StorageDetach.

func (*MockSectorIndexMockRecorder) StorageDropSector

func (mr *MockSectorIndexMockRecorder) StorageDropSector(ctx, storageID, s, ft interface{}) *gomock.Call

StorageDropSector indicates an expected call of StorageDropSector.

func (*MockSectorIndexMockRecorder) StorageFindSector

func (mr *MockSectorIndexMockRecorder) StorageFindSector(ctx, sector, ft, ssize, allowFetch interface{}) *gomock.Call

StorageFindSector indicates an expected call of StorageFindSector.

func (*MockSectorIndexMockRecorder) StorageGetLocks

func (mr *MockSectorIndexMockRecorder) StorageGetLocks(ctx interface{}) *gomock.Call

StorageGetLocks indicates an expected call of StorageGetLocks.

func (*MockSectorIndexMockRecorder) StorageInfo

func (mr *MockSectorIndexMockRecorder) StorageInfo(arg0, arg1 interface{}) *gomock.Call

StorageInfo indicates an expected call of StorageInfo.

func (*MockSectorIndexMockRecorder) StorageList

func (mr *MockSectorIndexMockRecorder) StorageList(ctx, id interface{}) *gomock.Call

StorageList indicates an expected call of StorageList.

func (*MockSectorIndexMockRecorder) StorageLock

func (mr *MockSectorIndexMockRecorder) StorageLock(ctx, sector, read, write interface{}) *gomock.Call

StorageLock indicates an expected call of StorageLock.

func (*MockSectorIndexMockRecorder) StorageReportHealth

func (mr *MockSectorIndexMockRecorder) StorageReportHealth(arg0, arg1, arg2 interface{}) *gomock.Call

StorageReportHealth indicates an expected call of StorageReportHealth.

func (*MockSectorIndexMockRecorder) StorageTryLock

func (mr *MockSectorIndexMockRecorder) StorageTryLock(ctx, sector, read, write interface{}) *gomock.Call

StorageTryLock indicates an expected call of StorageTryLock.

type MockStashStore added in v1.27.3

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

MockStashStore is a mock of StashStore interface.

func NewMockStashStore added in v1.27.3

func NewMockStashStore(ctrl *gomock.Controller) *MockStashStore

NewMockStashStore creates a new mock instance.

func (*MockStashStore) EXPECT added in v1.27.3

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

func (*MockStashStore) ServeAndRemove added in v1.27.3

func (m *MockStashStore) ServeAndRemove(ctx context.Context, id uuid.UUID) (io.ReadCloser, error)

ServeAndRemove mocks base method.

func (*MockStashStore) StashCreate added in v1.27.3

func (m *MockStashStore) StashCreate(ctx context.Context, maxSize int64, writeFunc func(*os.File) error) (uuid.UUID, error)

StashCreate mocks base method.

func (*MockStashStore) StashRemove added in v1.27.3

func (m *MockStashStore) StashRemove(ctx context.Context, id uuid.UUID) error

StashRemove mocks base method.

func (*MockStashStore) StashURL added in v1.27.3

func (m *MockStashStore) StashURL(id uuid.UUID) (url.URL, error)

StashURL mocks base method.

type MockStashStoreMockRecorder added in v1.27.3

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

MockStashStoreMockRecorder is the mock recorder for MockStashStore.

func (*MockStashStoreMockRecorder) ServeAndRemove added in v1.27.3

func (mr *MockStashStoreMockRecorder) ServeAndRemove(ctx, id interface{}) *gomock.Call

ServeAndRemove indicates an expected call of ServeAndRemove.

func (*MockStashStoreMockRecorder) StashCreate added in v1.27.3

func (mr *MockStashStoreMockRecorder) StashCreate(ctx, maxSize, writeFunc interface{}) *gomock.Call

StashCreate indicates an expected call of StashCreate.

func (*MockStashStoreMockRecorder) StashRemove added in v1.27.3

func (mr *MockStashStoreMockRecorder) StashRemove(ctx, id interface{}) *gomock.Call

StashRemove indicates an expected call of StashRemove.

func (*MockStashStoreMockRecorder) StashURL added in v1.27.3

func (mr *MockStashStoreMockRecorder) StashURL(id interface{}) *gomock.Call

StashURL indicates an expected call of StashURL.

type MockStore

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

MockStore is a mock of Store interface.

func NewMockStore

func NewMockStore(ctrl *gomock.Controller) *MockStore

NewMockStore creates a new mock instance.

func (*MockStore) AcquireSector

AcquireSector mocks base method.

func (*MockStore) EXPECT

func (m *MockStore) EXPECT() *MockStoreMockRecorder

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

func (*MockStore) FsStat

func (m *MockStore) FsStat(ctx context.Context, id storiface.ID) (fsutil.FsStat, error)

FsStat mocks base method.

func (*MockStore) GeneratePoRepVanillaProof

func (m *MockStore) GeneratePoRepVanillaProof(ctx context.Context, sr storiface.SectorRef, sealed, unsealed cid.Cid, ticket abi.SealRandomness, seed abi.InteractiveSealRandomness) ([]byte, error)

GeneratePoRepVanillaProof mocks base method.

func (*MockStore) GenerateSingleVanillaProof

func (m *MockStore) GenerateSingleVanillaProof(ctx context.Context, minerID abi.ActorID, si storiface.PostSectorChallenge, ppt abi.RegisteredPoStProof) ([]byte, error)

GenerateSingleVanillaProof mocks base method.

func (*MockStore) MoveStorage

MoveStorage mocks base method.

func (*MockStore) ReadSnapVanillaProof added in v1.23.0

func (m *MockStore) ReadSnapVanillaProof(ctx context.Context, sr storiface.SectorRef) ([]byte, error)

ReadSnapVanillaProof mocks base method.

func (*MockStore) Remove

func (m *MockStore) Remove(ctx context.Context, s abi.SectorID, types storiface.SectorFileType, force bool, keepIn []storiface.ID) error

Remove mocks base method.

func (*MockStore) RemoveCopies

func (m *MockStore) RemoveCopies(ctx context.Context, s abi.SectorID, types storiface.SectorFileType) error

RemoveCopies mocks base method.

func (*MockStore) Reserve

func (m *MockStore) Reserve(ctx context.Context, sid storiface.SectorRef, ft storiface.SectorFileType, storageIDs storiface.SectorPaths, overheadTab map[storiface.SectorFileType]int, minFreePercentage float64) (func(), error)

Reserve mocks base method.

type MockStoreMockRecorder

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

MockStoreMockRecorder is the mock recorder for MockStore.

func (*MockStoreMockRecorder) AcquireSector

func (mr *MockStoreMockRecorder) AcquireSector(ctx, s, existing, allocate, sealing, op interface{}, opts ...interface{}) *gomock.Call

AcquireSector indicates an expected call of AcquireSector.

func (*MockStoreMockRecorder) FsStat

func (mr *MockStoreMockRecorder) FsStat(ctx, id interface{}) *gomock.Call

FsStat indicates an expected call of FsStat.

func (*MockStoreMockRecorder) GeneratePoRepVanillaProof

func (mr *MockStoreMockRecorder) GeneratePoRepVanillaProof(ctx, sr, sealed, unsealed, ticket, seed interface{}) *gomock.Call

GeneratePoRepVanillaProof indicates an expected call of GeneratePoRepVanillaProof.

func (*MockStoreMockRecorder) GenerateSingleVanillaProof

func (mr *MockStoreMockRecorder) GenerateSingleVanillaProof(ctx, minerID, si, ppt interface{}) *gomock.Call

GenerateSingleVanillaProof indicates an expected call of GenerateSingleVanillaProof.

func (*MockStoreMockRecorder) MoveStorage

func (mr *MockStoreMockRecorder) MoveStorage(ctx, s, types interface{}, opts ...interface{}) *gomock.Call

MoveStorage indicates an expected call of MoveStorage.

func (*MockStoreMockRecorder) ReadSnapVanillaProof added in v1.23.0

func (mr *MockStoreMockRecorder) ReadSnapVanillaProof(ctx, sr interface{}) *gomock.Call

ReadSnapVanillaProof indicates an expected call of ReadSnapVanillaProof.

func (*MockStoreMockRecorder) Remove

func (mr *MockStoreMockRecorder) Remove(ctx, s, types, force, keepIn interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockStoreMockRecorder) RemoveCopies

func (mr *MockStoreMockRecorder) RemoveCopies(ctx, s, types interface{}) *gomock.Call

RemoveCopies indicates an expected call of RemoveCopies.

func (*MockStoreMockRecorder) Reserve

func (mr *MockStoreMockRecorder) Reserve(ctx, sid, ft, storageIDs, overheadTab, minFreePercentage interface{}) *gomock.Call

Reserve indicates an expected call of Reserve.

Jump to

Keyboard shortcuts

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