Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockPartialFileHandler
- func (m *MockPartialFileHandler) Close(arg0 *partialfile.PartialFile) error
- func (m *MockPartialFileHandler) EXPECT() *MockPartialFileHandlerMockRecorder
- func (m *MockPartialFileHandler) HasAllocated(arg0 *partialfile.PartialFile, arg1 storiface.UnpaddedByteIndex, ...) (bool, error)
- func (m *MockPartialFileHandler) OpenPartialFile(arg0 abi.PaddedPieceSize, arg1 string) (*partialfile.PartialFile, error)
- func (m *MockPartialFileHandler) Reader(arg0 *partialfile.PartialFile, arg1 storiface.PaddedByteIndex, ...) (io.Reader, error)
- type MockPartialFileHandlerMockRecorder
- func (mr *MockPartialFileHandlerMockRecorder) Close(arg0 interface{}) *gomock.Call
- func (mr *MockPartialFileHandlerMockRecorder) HasAllocated(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockPartialFileHandlerMockRecorder) OpenPartialFile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPartialFileHandlerMockRecorder) Reader(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockSectorIndex
- func (m *MockSectorIndex) EXPECT() *MockSectorIndexMockRecorder
- func (m *MockSectorIndex) StorageAttach(arg0 context.Context, arg1 storiface.StorageInfo, arg2 fsutil.FsStat) error
- func (m *MockSectorIndex) StorageBestAlloc(arg0 context.Context, arg1 storiface.SectorFileType, arg2 abi.SectorSize, ...) ([]storiface.StorageInfo, error)
- func (m *MockSectorIndex) StorageDeclareSector(arg0 context.Context, arg1 storiface.ID, arg2 abi.SectorID, ...) error
- func (m *MockSectorIndex) StorageDetach(arg0 context.Context, arg1 storiface.ID, arg2 string) error
- func (m *MockSectorIndex) StorageDropSector(arg0 context.Context, arg1 storiface.ID, arg2 abi.SectorID, ...) error
- func (m *MockSectorIndex) StorageFindSector(arg0 context.Context, arg1 abi.SectorID, arg2 storiface.SectorFileType, ...) ([]storiface.SectorStorageInfo, error)
- func (m *MockSectorIndex) StorageGetLocks(arg0 context.Context) (storiface.SectorLocks, error)
- func (m *MockSectorIndex) StorageInfo(arg0 context.Context, arg1 storiface.ID) (storiface.StorageInfo, error)
- func (m *MockSectorIndex) StorageList(arg0 context.Context) (map[storiface.ID][]storiface.Decl, error)
- func (m *MockSectorIndex) StorageLock(arg0 context.Context, arg1 abi.SectorID, arg2, arg3 storiface.SectorFileType) error
- func (m *MockSectorIndex) StorageReportHealth(arg0 context.Context, arg1 storiface.ID, arg2 storiface.HealthReport) error
- func (m *MockSectorIndex) StorageTryLock(arg0 context.Context, arg1 abi.SectorID, arg2, arg3 storiface.SectorFileType) (bool, error)
- type MockSectorIndexMockRecorder
- func (mr *MockSectorIndexMockRecorder) StorageAttach(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageBestAlloc(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageDeclareSector(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageDetach(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageDropSector(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageFindSector(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageGetLocks(arg0 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageList(arg0 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageLock(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageReportHealth(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageTryLock(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- type MockStore
- func (m *MockStore) AcquireSector(arg0 context.Context, arg1 storiface.SectorRef, ...) (storiface.SectorPaths, storiface.SectorPaths, error)
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) FsStat(arg0 context.Context, arg1 storiface.ID) (fsutil.FsStat, error)
- func (m *MockStore) GeneratePoRepVanillaProof(arg0 context.Context, arg1 storiface.SectorRef, arg2, arg3 cid.Cid, ...) ([]byte, error)
- func (m *MockStore) GenerateSingleVanillaProof(arg0 context.Context, arg1 abi.ActorID, arg2 storiface.PostSectorChallenge, ...) ([]byte, error)
- func (m *MockStore) MoveStorage(arg0 context.Context, arg1 storiface.SectorRef, arg2 storiface.SectorFileType, ...) error
- func (m *MockStore) Remove(arg0 context.Context, arg1 abi.SectorID, arg2 storiface.SectorFileType, ...) error
- func (m *MockStore) RemoveCopies(arg0 context.Context, arg1 abi.SectorID, arg2 storiface.SectorFileType) error
- func (m *MockStore) Reserve(arg0 context.Context, arg1 storiface.SectorRef, arg2 storiface.SectorFileType, ...) (func(), error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) AcquireSector(arg0, arg1, arg2, arg3, arg4, arg5 interface{}, arg6 ...interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) FsStat(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GeneratePoRepVanillaProof(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) GenerateSingleVanillaProof(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) MoveStorage(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Remove(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) RemoveCopies(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Reserve(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
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 ¶
func (m *MockPartialFileHandler) Close(arg0 *partialfile.PartialFile) error
Close mocks base method.
func (*MockPartialFileHandler) EXPECT ¶
func (m *MockPartialFileHandler) EXPECT() *MockPartialFileHandlerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPartialFileHandler) HasAllocated ¶
func (m *MockPartialFileHandler) HasAllocated(arg0 *partialfile.PartialFile, arg1 storiface.UnpaddedByteIndex, arg2 abi.UnpaddedPieceSize) (bool, error)
HasAllocated mocks base method.
func (*MockPartialFileHandler) OpenPartialFile ¶
func (m *MockPartialFileHandler) OpenPartialFile(arg0 abi.PaddedPieceSize, arg1 string) (*partialfile.PartialFile, error)
OpenPartialFile mocks base method.
func (*MockPartialFileHandler) Reader ¶
func (m *MockPartialFileHandler) Reader(arg0 *partialfile.PartialFile, arg1 storiface.PaddedByteIndex, arg2 abi.PaddedPieceSize) (io.Reader, error)
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(arg0 interface{}) *gomock.Call
Close indicates an expected call of Close.
func (*MockPartialFileHandlerMockRecorder) HasAllocated ¶
func (mr *MockPartialFileHandlerMockRecorder) HasAllocated(arg0, arg1, arg2 interface{}) *gomock.Call
HasAllocated indicates an expected call of HasAllocated.
func (*MockPartialFileHandlerMockRecorder) OpenPartialFile ¶
func (mr *MockPartialFileHandlerMockRecorder) OpenPartialFile(arg0, arg1 interface{}) *gomock.Call
OpenPartialFile indicates an expected call of OpenPartialFile.
func (*MockPartialFileHandlerMockRecorder) Reader ¶
func (mr *MockPartialFileHandlerMockRecorder) Reader(arg0, arg1, arg2 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) EXPECT ¶
func (m *MockSectorIndex) EXPECT() *MockSectorIndexMockRecorder
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(arg0 context.Context, arg1 storiface.SectorFileType, arg2 abi.SectorSize, arg3 storiface.PathType, arg4 abi.ActorID) ([]storiface.StorageInfo, error)
StorageBestAlloc mocks base method.
func (*MockSectorIndex) StorageDeclareSector ¶
func (m *MockSectorIndex) StorageDeclareSector(arg0 context.Context, arg1 storiface.ID, arg2 abi.SectorID, arg3 storiface.SectorFileType, arg4 bool) error
StorageDeclareSector mocks base method.
func (*MockSectorIndex) StorageDetach ¶ added in v1.17.1
StorageDetach mocks base method.
func (*MockSectorIndex) StorageDropSector ¶
func (m *MockSectorIndex) StorageDropSector(arg0 context.Context, arg1 storiface.ID, arg2 abi.SectorID, arg3 storiface.SectorFileType) error
StorageDropSector mocks base method.
func (*MockSectorIndex) StorageFindSector ¶
func (m *MockSectorIndex) StorageFindSector(arg0 context.Context, arg1 abi.SectorID, arg2 storiface.SectorFileType, arg3 abi.SectorSize, arg4 bool) ([]storiface.SectorStorageInfo, error)
StorageFindSector mocks base method.
func (*MockSectorIndex) StorageGetLocks ¶
func (m *MockSectorIndex) StorageGetLocks(arg0 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(arg0 context.Context) (map[storiface.ID][]storiface.Decl, error)
StorageList mocks base method.
func (*MockSectorIndex) StorageLock ¶
func (m *MockSectorIndex) StorageLock(arg0 context.Context, arg1 abi.SectorID, arg2, arg3 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(arg0 context.Context, arg1 abi.SectorID, arg2, arg3 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) 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(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
StorageBestAlloc indicates an expected call of StorageBestAlloc.
func (*MockSectorIndexMockRecorder) StorageDeclareSector ¶
func (mr *MockSectorIndexMockRecorder) StorageDeclareSector(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
StorageDeclareSector indicates an expected call of StorageDeclareSector.
func (*MockSectorIndexMockRecorder) StorageDetach ¶ added in v1.17.1
func (mr *MockSectorIndexMockRecorder) StorageDetach(arg0, arg1, arg2 interface{}) *gomock.Call
StorageDetach indicates an expected call of StorageDetach.
func (*MockSectorIndexMockRecorder) StorageDropSector ¶
func (mr *MockSectorIndexMockRecorder) StorageDropSector(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
StorageDropSector indicates an expected call of StorageDropSector.
func (*MockSectorIndexMockRecorder) StorageFindSector ¶
func (mr *MockSectorIndexMockRecorder) StorageFindSector(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
StorageFindSector indicates an expected call of StorageFindSector.
func (*MockSectorIndexMockRecorder) StorageGetLocks ¶
func (mr *MockSectorIndexMockRecorder) StorageGetLocks(arg0 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(arg0 interface{}) *gomock.Call
StorageList indicates an expected call of StorageList.
func (*MockSectorIndexMockRecorder) StorageLock ¶
func (mr *MockSectorIndexMockRecorder) StorageLock(arg0, arg1, arg2, arg3 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(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
StorageTryLock indicates an expected call of StorageTryLock.
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 ¶
func (m *MockStore) AcquireSector(arg0 context.Context, arg1 storiface.SectorRef, arg2, arg3 storiface.SectorFileType, arg4 storiface.PathType, arg5 storiface.AcquireMode, arg6 ...storiface.AcquireOption) (storiface.SectorPaths, storiface.SectorPaths, error)
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) GeneratePoRepVanillaProof ¶ added in v1.27.0
func (m *MockStore) GeneratePoRepVanillaProof(arg0 context.Context, arg1 storiface.SectorRef, arg2, arg3 cid.Cid, arg4 abi.SealRandomness, arg5 abi.InteractiveSealRandomness) ([]byte, error)
GeneratePoRepVanillaProof mocks base method.
func (*MockStore) GenerateSingleVanillaProof ¶
func (m *MockStore) GenerateSingleVanillaProof(arg0 context.Context, arg1 abi.ActorID, arg2 storiface.PostSectorChallenge, arg3 abi.RegisteredPoStProof) ([]byte, error)
GenerateSingleVanillaProof mocks base method.
func (*MockStore) MoveStorage ¶
func (m *MockStore) MoveStorage(arg0 context.Context, arg1 storiface.SectorRef, arg2 storiface.SectorFileType, arg3 ...storiface.AcquireOption) error
MoveStorage mocks base method.
func (*MockStore) Remove ¶
func (m *MockStore) Remove(arg0 context.Context, arg1 abi.SectorID, arg2 storiface.SectorFileType, arg3 bool, arg4 []storiface.ID) error
Remove mocks base method.
func (*MockStore) RemoveCopies ¶
func (m *MockStore) RemoveCopies(arg0 context.Context, arg1 abi.SectorID, arg2 storiface.SectorFileType) error
RemoveCopies 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(arg0, arg1, arg2, arg3, arg4, arg5 interface{}, arg6 ...interface{}) *gomock.Call
AcquireSector indicates an expected call of AcquireSector.
func (*MockStoreMockRecorder) FsStat ¶
func (mr *MockStoreMockRecorder) FsStat(arg0, arg1 interface{}) *gomock.Call
FsStat indicates an expected call of FsStat.
func (*MockStoreMockRecorder) GeneratePoRepVanillaProof ¶ added in v1.27.0
func (mr *MockStoreMockRecorder) GeneratePoRepVanillaProof(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
GeneratePoRepVanillaProof indicates an expected call of GeneratePoRepVanillaProof.
func (*MockStoreMockRecorder) GenerateSingleVanillaProof ¶
func (mr *MockStoreMockRecorder) GenerateSingleVanillaProof(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
GenerateSingleVanillaProof indicates an expected call of GenerateSingleVanillaProof.
func (*MockStoreMockRecorder) MoveStorage ¶
func (mr *MockStoreMockRecorder) MoveStorage(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
MoveStorage indicates an expected call of MoveStorage.
func (*MockStoreMockRecorder) Remove ¶
func (mr *MockStoreMockRecorder) Remove(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
Remove indicates an expected call of Remove.
func (*MockStoreMockRecorder) RemoveCopies ¶
func (mr *MockStoreMockRecorder) RemoveCopies(arg0, arg1, arg2 interface{}) *gomock.Call
RemoveCopies indicates an expected call of RemoveCopies.
func (*MockStoreMockRecorder) Reserve ¶
func (mr *MockStoreMockRecorder) Reserve(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
Reserve indicates an expected call of Reserve.