Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Index ¶
- type MockPieceStore
- func (m *MockPieceStore) AddDealForPiece(arg0 cid.Cid, arg1 piecestore.DealInfo) error
- func (m *MockPieceStore) AddPieceBlockLocations(arg0 cid.Cid, arg1 map[cid.Cid]piecestore.BlockLocation) error
- func (m *MockPieceStore) EXPECT() *MockPieceStoreMockRecorder
- func (m *MockPieceStore) GetCIDInfo(arg0 cid.Cid) (piecestore.CIDInfo, error)
- func (m *MockPieceStore) GetPieceInfo(arg0 cid.Cid) (piecestore.PieceInfo, error)
- func (m *MockPieceStore) ListCidInfoKeys() ([]cid.Cid, error)
- func (m *MockPieceStore) ListPieceInfoKeys() ([]cid.Cid, error)
- func (m *MockPieceStore) OnReady(arg0 shared.ReadyFunc)
- func (m *MockPieceStore) Start(arg0 context.Context) error
- type MockPieceStoreMockRecorder
- func (mr *MockPieceStoreMockRecorder) AddDealForPiece(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPieceStoreMockRecorder) AddPieceBlockLocations(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockPieceStoreMockRecorder) GetCIDInfo(arg0 interface{}) *gomock.Call
- func (mr *MockPieceStoreMockRecorder) GetPieceInfo(arg0 interface{}) *gomock.Call
- func (mr *MockPieceStoreMockRecorder) ListCidInfoKeys() *gomock.Call
- func (mr *MockPieceStoreMockRecorder) ListPieceInfoKeys() *gomock.Call
- func (mr *MockPieceStoreMockRecorder) OnReady(arg0 interface{}) *gomock.Call
- func (mr *MockPieceStoreMockRecorder) Start(arg0 interface{}) *gomock.Call
- type MockRetrievalProvider
- func (m *MockRetrievalProvider) EXPECT() *MockRetrievalProviderMockRecorder
- func (m *MockRetrievalProvider) GetAsk() *retrievalmarket.Ask
- func (m *MockRetrievalProvider) GetDynamicAsk(arg0 context.Context, arg1 retrievalmarket.PricingInput, arg2 []abi.DealID) (retrievalmarket.Ask, error)
- func (m *MockRetrievalProvider) ListDeals() map[retrievalmarket.ProviderDealIdentifier]retrievalmarket.ProviderDealState
- func (m *MockRetrievalProvider) OnReady(arg0 shared.ReadyFunc)
- func (m *MockRetrievalProvider) SetAsk(arg0 *retrievalmarket.Ask)
- func (m *MockRetrievalProvider) Start(arg0 context.Context) error
- func (m *MockRetrievalProvider) Stop() error
- func (m *MockRetrievalProvider) SubscribeToEvents(arg0 retrievalmarket.ProviderSubscriber) retrievalmarket.Unsubscribe
- func (m *MockRetrievalProvider) SubscribeToQueryEvents(arg0 retrievalmarket.ProviderQueryEventSubscriber) retrievalmarket.Unsubscribe
- func (m *MockRetrievalProvider) SubscribeToValidationEvents(arg0 retrievalmarket.ProviderValidationSubscriber) retrievalmarket.Unsubscribe
- type MockRetrievalProviderMockRecorder
- func (mr *MockRetrievalProviderMockRecorder) GetAsk() *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) GetDynamicAsk(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) ListDeals() *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) OnReady(arg0 interface{}) *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) SetAsk(arg0 interface{}) *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) Stop() *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) SubscribeToEvents(arg0 interface{}) *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) SubscribeToQueryEvents(arg0 interface{}) *gomock.Call
- func (mr *MockRetrievalProviderMockRecorder) SubscribeToValidationEvents(arg0 interface{}) *gomock.Call
- type MockSectorAccessor
- func (m *MockSectorAccessor) EXPECT() *MockSectorAccessorMockRecorder
- func (m *MockSectorAccessor) IsUnsealed(arg0 context.Context, arg1 abi.SectorNumber, arg2, arg3 abi.UnpaddedPieceSize) (bool, error)
- func (m *MockSectorAccessor) UnsealSector(arg0 context.Context, arg1 abi.SectorNumber, arg2, arg3 abi.UnpaddedPieceSize) (io.ReadCloser, error)
- type MockSectorAccessorMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPieceStore ¶
type MockPieceStore struct {
// contains filtered or unexported fields
}
MockPieceStore is a mock of PieceStore interface.
func NewMockPieceStore ¶
func NewMockPieceStore(ctrl *gomock.Controller) *MockPieceStore
NewMockPieceStore creates a new mock instance.
func (*MockPieceStore) AddDealForPiece ¶
func (m *MockPieceStore) AddDealForPiece(arg0 cid.Cid, arg1 piecestore.DealInfo) error
AddDealForPiece mocks base method.
func (*MockPieceStore) AddPieceBlockLocations ¶
func (m *MockPieceStore) AddPieceBlockLocations(arg0 cid.Cid, arg1 map[cid.Cid]piecestore.BlockLocation) error
AddPieceBlockLocations mocks base method.
func (*MockPieceStore) EXPECT ¶
func (m *MockPieceStore) EXPECT() *MockPieceStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPieceStore) GetCIDInfo ¶
func (m *MockPieceStore) GetCIDInfo(arg0 cid.Cid) (piecestore.CIDInfo, error)
GetCIDInfo mocks base method.
func (*MockPieceStore) GetPieceInfo ¶
func (m *MockPieceStore) GetPieceInfo(arg0 cid.Cid) (piecestore.PieceInfo, error)
GetPieceInfo mocks base method.
func (*MockPieceStore) ListCidInfoKeys ¶
func (m *MockPieceStore) ListCidInfoKeys() ([]cid.Cid, error)
ListCidInfoKeys mocks base method.
func (*MockPieceStore) ListPieceInfoKeys ¶
func (m *MockPieceStore) ListPieceInfoKeys() ([]cid.Cid, error)
ListPieceInfoKeys mocks base method.
func (*MockPieceStore) OnReady ¶
func (m *MockPieceStore) OnReady(arg0 shared.ReadyFunc)
OnReady mocks base method.
type MockPieceStoreMockRecorder ¶
type MockPieceStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockPieceStoreMockRecorder is the mock recorder for MockPieceStore.
func (*MockPieceStoreMockRecorder) AddDealForPiece ¶
func (mr *MockPieceStoreMockRecorder) AddDealForPiece(arg0, arg1 interface{}) *gomock.Call
AddDealForPiece indicates an expected call of AddDealForPiece.
func (*MockPieceStoreMockRecorder) AddPieceBlockLocations ¶
func (mr *MockPieceStoreMockRecorder) AddPieceBlockLocations(arg0, arg1 interface{}) *gomock.Call
AddPieceBlockLocations indicates an expected call of AddPieceBlockLocations.
func (*MockPieceStoreMockRecorder) GetCIDInfo ¶
func (mr *MockPieceStoreMockRecorder) GetCIDInfo(arg0 interface{}) *gomock.Call
GetCIDInfo indicates an expected call of GetCIDInfo.
func (*MockPieceStoreMockRecorder) GetPieceInfo ¶
func (mr *MockPieceStoreMockRecorder) GetPieceInfo(arg0 interface{}) *gomock.Call
GetPieceInfo indicates an expected call of GetPieceInfo.
func (*MockPieceStoreMockRecorder) ListCidInfoKeys ¶
func (mr *MockPieceStoreMockRecorder) ListCidInfoKeys() *gomock.Call
ListCidInfoKeys indicates an expected call of ListCidInfoKeys.
func (*MockPieceStoreMockRecorder) ListPieceInfoKeys ¶
func (mr *MockPieceStoreMockRecorder) ListPieceInfoKeys() *gomock.Call
ListPieceInfoKeys indicates an expected call of ListPieceInfoKeys.
func (*MockPieceStoreMockRecorder) OnReady ¶
func (mr *MockPieceStoreMockRecorder) OnReady(arg0 interface{}) *gomock.Call
OnReady indicates an expected call of OnReady.
func (*MockPieceStoreMockRecorder) Start ¶
func (mr *MockPieceStoreMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
type MockRetrievalProvider ¶
type MockRetrievalProvider struct {
// contains filtered or unexported fields
}
MockRetrievalProvider is a mock of RetrievalProvider interface.
func NewMockRetrievalProvider ¶
func NewMockRetrievalProvider(ctrl *gomock.Controller) *MockRetrievalProvider
NewMockRetrievalProvider creates a new mock instance.
func (*MockRetrievalProvider) EXPECT ¶
func (m *MockRetrievalProvider) EXPECT() *MockRetrievalProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRetrievalProvider) GetAsk ¶
func (m *MockRetrievalProvider) GetAsk() *retrievalmarket.Ask
GetAsk mocks base method.
func (*MockRetrievalProvider) GetDynamicAsk ¶
func (m *MockRetrievalProvider) GetDynamicAsk(arg0 context.Context, arg1 retrievalmarket.PricingInput, arg2 []abi.DealID) (retrievalmarket.Ask, error)
GetDynamicAsk mocks base method.
func (*MockRetrievalProvider) ListDeals ¶
func (m *MockRetrievalProvider) ListDeals() map[retrievalmarket.ProviderDealIdentifier]retrievalmarket.ProviderDealState
ListDeals mocks base method.
func (*MockRetrievalProvider) OnReady ¶
func (m *MockRetrievalProvider) OnReady(arg0 shared.ReadyFunc)
OnReady mocks base method.
func (*MockRetrievalProvider) SetAsk ¶
func (m *MockRetrievalProvider) SetAsk(arg0 *retrievalmarket.Ask)
SetAsk mocks base method.
func (*MockRetrievalProvider) Start ¶
func (m *MockRetrievalProvider) Start(arg0 context.Context) error
Start mocks base method.
func (*MockRetrievalProvider) Stop ¶
func (m *MockRetrievalProvider) Stop() error
Stop mocks base method.
func (*MockRetrievalProvider) SubscribeToEvents ¶
func (m *MockRetrievalProvider) SubscribeToEvents(arg0 retrievalmarket.ProviderSubscriber) retrievalmarket.Unsubscribe
SubscribeToEvents mocks base method.
func (*MockRetrievalProvider) SubscribeToQueryEvents ¶ added in v1.5.1
func (m *MockRetrievalProvider) SubscribeToQueryEvents(arg0 retrievalmarket.ProviderQueryEventSubscriber) retrievalmarket.Unsubscribe
SubscribeToQueryEvents mocks base method.
func (*MockRetrievalProvider) SubscribeToValidationEvents ¶ added in v1.5.1
func (m *MockRetrievalProvider) SubscribeToValidationEvents(arg0 retrievalmarket.ProviderValidationSubscriber) retrievalmarket.Unsubscribe
SubscribeToValidationEvents mocks base method.
type MockRetrievalProviderMockRecorder ¶
type MockRetrievalProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockRetrievalProviderMockRecorder is the mock recorder for MockRetrievalProvider.
func (*MockRetrievalProviderMockRecorder) GetAsk ¶
func (mr *MockRetrievalProviderMockRecorder) GetAsk() *gomock.Call
GetAsk indicates an expected call of GetAsk.
func (*MockRetrievalProviderMockRecorder) GetDynamicAsk ¶
func (mr *MockRetrievalProviderMockRecorder) GetDynamicAsk(arg0, arg1, arg2 interface{}) *gomock.Call
GetDynamicAsk indicates an expected call of GetDynamicAsk.
func (*MockRetrievalProviderMockRecorder) ListDeals ¶
func (mr *MockRetrievalProviderMockRecorder) ListDeals() *gomock.Call
ListDeals indicates an expected call of ListDeals.
func (*MockRetrievalProviderMockRecorder) OnReady ¶
func (mr *MockRetrievalProviderMockRecorder) OnReady(arg0 interface{}) *gomock.Call
OnReady indicates an expected call of OnReady.
func (*MockRetrievalProviderMockRecorder) SetAsk ¶
func (mr *MockRetrievalProviderMockRecorder) SetAsk(arg0 interface{}) *gomock.Call
SetAsk indicates an expected call of SetAsk.
func (*MockRetrievalProviderMockRecorder) Start ¶
func (mr *MockRetrievalProviderMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockRetrievalProviderMockRecorder) Stop ¶
func (mr *MockRetrievalProviderMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockRetrievalProviderMockRecorder) SubscribeToEvents ¶
func (mr *MockRetrievalProviderMockRecorder) SubscribeToEvents(arg0 interface{}) *gomock.Call
SubscribeToEvents indicates an expected call of SubscribeToEvents.
func (*MockRetrievalProviderMockRecorder) SubscribeToQueryEvents ¶ added in v1.5.1
func (mr *MockRetrievalProviderMockRecorder) SubscribeToQueryEvents(arg0 interface{}) *gomock.Call
SubscribeToQueryEvents indicates an expected call of SubscribeToQueryEvents.
func (*MockRetrievalProviderMockRecorder) SubscribeToValidationEvents ¶ added in v1.5.1
func (mr *MockRetrievalProviderMockRecorder) SubscribeToValidationEvents(arg0 interface{}) *gomock.Call
SubscribeToValidationEvents indicates an expected call of SubscribeToValidationEvents.
type MockSectorAccessor ¶
type MockSectorAccessor struct {
// contains filtered or unexported fields
}
MockSectorAccessor is a mock of SectorAccessor interface.
func NewMockSectorAccessor ¶
func NewMockSectorAccessor(ctrl *gomock.Controller) *MockSectorAccessor
NewMockSectorAccessor creates a new mock instance.
func (*MockSectorAccessor) EXPECT ¶
func (m *MockSectorAccessor) EXPECT() *MockSectorAccessorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSectorAccessor) IsUnsealed ¶
func (m *MockSectorAccessor) IsUnsealed(arg0 context.Context, arg1 abi.SectorNumber, arg2, arg3 abi.UnpaddedPieceSize) (bool, error)
IsUnsealed mocks base method.
func (*MockSectorAccessor) UnsealSector ¶
func (m *MockSectorAccessor) UnsealSector(arg0 context.Context, arg1 abi.SectorNumber, arg2, arg3 abi.UnpaddedPieceSize) (io.ReadCloser, error)
UnsealSector mocks base method.
type MockSectorAccessorMockRecorder ¶
type MockSectorAccessorMockRecorder struct {
// contains filtered or unexported fields
}
MockSectorAccessorMockRecorder is the mock recorder for MockSectorAccessor.
func (*MockSectorAccessorMockRecorder) IsUnsealed ¶
func (mr *MockSectorAccessorMockRecorder) IsUnsealed(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
IsUnsealed indicates an expected call of IsUnsealed.
func (*MockSectorAccessorMockRecorder) UnsealSector ¶
func (mr *MockSectorAccessorMockRecorder) UnsealSector(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
UnsealSector indicates an expected call of UnsealSector.