Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockSectorIndex
- func (m *MockSectorIndex) EXPECT() *MockSectorIndexMockRecorder
- func (m *MockSectorIndex) StorageAttach(arg0 context.Context, arg1 stores.StorageInfo, arg2 fsutil.FsStat) error
- func (m *MockSectorIndex) StorageBestAlloc(ctx context.Context, allocate storiface.SectorFileType, ssize abi.SectorSize, ...) ([]stores.StorageInfo, error)
- func (m *MockSectorIndex) StorageDeclareSector(ctx context.Context, storageID stores.ID, s abi.SectorID, ...) error
- func (m *MockSectorIndex) StorageDropSector(ctx context.Context, storageID stores.ID, s abi.SectorID, ...) error
- func (m *MockSectorIndex) StorageFindSector(ctx context.Context, sector abi.SectorID, ft storiface.SectorFileType, ...) ([]stores.SectorStorageInfo, error)
- func (m *MockSectorIndex) StorageInfo(arg0 context.Context, arg1 stores.ID) (stores.StorageInfo, error)
- func (m *MockSectorIndex) StorageList(ctx context.Context) (map[stores.ID][]stores.Decl, error)
- func (m *MockSectorIndex) StorageLock(ctx context.Context, sector abi.SectorID, read, write storiface.SectorFileType) error
- func (m *MockSectorIndex) StorageReportHealth(arg0 context.Context, arg1 stores.ID, arg2 stores.HealthReport) error
- func (m *MockSectorIndex) StorageTryLock(ctx context.Context, sector abi.SectorID, read, write storiface.SectorFileType) (bool, error)
- type MockSectorIndexMockRecorder
- func (mr *MockSectorIndexMockRecorder) StorageAttach(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageBestAlloc(ctx, allocate, ssize, pathType interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageDeclareSector(ctx, storageID, s, ft, primary interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageDropSector(ctx, storageID, s, ft interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageFindSector(ctx, sector, ft, ssize, allowFetch interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageInfo(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageList(ctx interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageLock(ctx, sector, read, write interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageReportHealth(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockSectorIndexMockRecorder) StorageTryLock(ctx, sector, read, write interface{}) *gomock.Call
- type MockStore
- func (m *MockStore) AcquireSector(ctx context.Context, s storage.SectorRef, ...) (storiface.SectorPaths, storiface.SectorPaths, error)
- func (m *MockStore) EXPECT() *MockStoreMockRecorder
- func (m *MockStore) FsStat(ctx context.Context, id stores.ID) (fsutil.FsStat, error)
- func (m *MockStore) MoveStorage(ctx context.Context, s storage.SectorRef, types storiface.SectorFileType) error
- func (m *MockStore) Remove(ctx context.Context, s abi.SectorID, types storiface.SectorFileType, ...) error
- func (m *MockStore) RemoveCopies(ctx context.Context, s abi.SectorID, types storiface.SectorFileType) error
- func (m *MockStore) Reserve(ctx context.Context, sid storage.SectorRef, ft storiface.SectorFileType, ...) (func(), error)
- type MockStoreMockRecorder
- func (mr *MockStoreMockRecorder) AcquireSector(ctx, s, existing, allocate, sealing, op interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) FsStat(ctx, id interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) MoveStorage(ctx, s, types interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Remove(ctx, s, types, force interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) RemoveCopies(ctx, s, types interface{}) *gomock.Call
- func (mr *MockStoreMockRecorder) Reserve(ctx, sid, ft, storageIDs, overheadTab interface{}) *gomock.Call
- type MockpartialFileHandler
- func (m *MockpartialFileHandler) Close(pf *partialfile.PartialFile) error
- func (m *MockpartialFileHandler) EXPECT() *MockpartialFileHandlerMockRecorder
- func (m *MockpartialFileHandler) HasAllocated(pf *partialfile.PartialFile, offset storiface.UnpaddedByteIndex, ...) (bool, error)
- func (m *MockpartialFileHandler) OpenPartialFile(maxPieceSize abi.PaddedPieceSize, path string) (*partialfile.PartialFile, error)
- func (m *MockpartialFileHandler) Reader(pf *partialfile.PartialFile, offset storiface.PaddedByteIndex, ...) (*os.File, error)
- type MockpartialFileHandlerMockRecorder
- func (mr *MockpartialFileHandlerMockRecorder) Close(pf interface{}) *gomock.Call
- func (mr *MockpartialFileHandlerMockRecorder) HasAllocated(pf, offset, size interface{}) *gomock.Call
- func (mr *MockpartialFileHandlerMockRecorder) OpenPartialFile(maxPieceSize, path interface{}) *gomock.Call
- func (mr *MockpartialFileHandlerMockRecorder) Reader(pf, offset, size interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 stores.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) ([]stores.StorageInfo, error)
StorageBestAlloc mocks base method.
func (*MockSectorIndex) StorageDeclareSector ¶
func (m *MockSectorIndex) StorageDeclareSector(ctx context.Context, storageID stores.ID, s abi.SectorID, ft storiface.SectorFileType, primary bool) error
StorageDeclareSector mocks base method.
func (*MockSectorIndex) StorageDropSector ¶
func (m *MockSectorIndex) StorageDropSector(ctx context.Context, storageID stores.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) ([]stores.SectorStorageInfo, error)
StorageFindSector mocks base method.
func (*MockSectorIndex) StorageInfo ¶
func (m *MockSectorIndex) StorageInfo(arg0 context.Context, arg1 stores.ID) (stores.StorageInfo, error)
StorageInfo mocks base method.
func (*MockSectorIndex) StorageList ¶ added in v1.11.1
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 stores.ID, arg2 stores.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) 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 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) 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) StorageInfo ¶
func (mr *MockSectorIndexMockRecorder) StorageInfo(arg0, arg1 interface{}) *gomock.Call
StorageInfo indicates an expected call of StorageInfo.
func (*MockSectorIndexMockRecorder) StorageList ¶ added in v1.11.1
func (mr *MockSectorIndexMockRecorder) StorageList(ctx 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 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(ctx context.Context, s storage.SectorRef, existing, allocate storiface.SectorFileType, sealing storiface.PathType, op storiface.AcquireMode) (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) MoveStorage ¶
func (m *MockStore) MoveStorage(ctx context.Context, s storage.SectorRef, types storiface.SectorFileType) error
MoveStorage mocks base method.
func (*MockStore) Remove ¶
func (m *MockStore) Remove(ctx context.Context, s abi.SectorID, types storiface.SectorFileType, force bool) 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 storage.SectorRef, ft storiface.SectorFileType, storageIDs storiface.SectorPaths, overheadTab map[storiface.SectorFileType]int) (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{}) *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) MoveStorage ¶
func (mr *MockStoreMockRecorder) MoveStorage(ctx, s, types interface{}) *gomock.Call
MoveStorage indicates an expected call of MoveStorage.
func (*MockStoreMockRecorder) Remove ¶
func (mr *MockStoreMockRecorder) Remove(ctx, s, types, force 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 interface{}) *gomock.Call
Reserve indicates an expected call of Reserve.
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(pf *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(pf *partialfile.PartialFile, offset storiface.UnpaddedByteIndex, size abi.UnpaddedPieceSize) (bool, error)
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 ¶
func (m *MockpartialFileHandler) Reader(pf *partialfile.PartialFile, offset storiface.PaddedByteIndex, size abi.PaddedPieceSize) (*os.File, 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(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.