Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockStorageProvider
- func (m *MockStorageProvider) AddStorageCollateral(arg0 context.Context, arg1 big.Int) error
- func (m *MockStorageProvider) AnnounceAllDealsToIndexer(arg0 context.Context) error
- func (m *MockStorageProvider) AnnounceDealToIndexer(arg0 context.Context, arg1 cid.Cid) error
- func (m *MockStorageProvider) EXPECT() *MockStorageProviderMockRecorder
- func (m *MockStorageProvider) GetAsk() *storagemarket.SignedStorageAsk
- func (m *MockStorageProvider) GetLocalDeal(arg0 cid.Cid) (storagemarket.MinerDeal, error)
- func (m *MockStorageProvider) GetStorageCollateral(arg0 context.Context) (storagemarket.Balance, error)
- func (m *MockStorageProvider) ImportDataForDeal(arg0 context.Context, arg1 cid.Cid, arg2 io.Reader) error
- func (m *MockStorageProvider) ListLocalDeals() ([]storagemarket.MinerDeal, error)
- func (m *MockStorageProvider) ListLocalDealsPage(arg0 *cid.Cid, arg1, arg2 int) ([]storagemarket.MinerDeal, error)
- func (m *MockStorageProvider) LocalDealCount() (int, error)
- func (m *MockStorageProvider) OnReady(arg0 shared.ReadyFunc)
- func (m *MockStorageProvider) RetryDealPublishing(arg0 cid.Cid) error
- func (m *MockStorageProvider) SetAsk(arg0, arg1 big.Int, arg2 abi.ChainEpoch, ...) error
- func (m *MockStorageProvider) Start(arg0 context.Context) error
- func (m *MockStorageProvider) Stop() error
- func (m *MockStorageProvider) SubscribeToEvents(arg0 storagemarket.ProviderSubscriber) shared.Unsubscribe
- type MockStorageProviderMockRecorder
- func (mr *MockStorageProviderMockRecorder) AddStorageCollateral(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) AnnounceAllDealsToIndexer(arg0 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) AnnounceDealToIndexer(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) GetAsk() *gomock.Call
- func (mr *MockStorageProviderMockRecorder) GetLocalDeal(arg0 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) GetStorageCollateral(arg0 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) ImportDataForDeal(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) ListLocalDeals() *gomock.Call
- func (mr *MockStorageProviderMockRecorder) ListLocalDealsPage(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) LocalDealCount() *gomock.Call
- func (mr *MockStorageProviderMockRecorder) OnReady(arg0 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) RetryDealPublishing(arg0 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) SetAsk(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockStorageProviderMockRecorder) Stop() *gomock.Call
- func (mr *MockStorageProviderMockRecorder) SubscribeToEvents(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorageProvider ¶
type MockStorageProvider struct {
// contains filtered or unexported fields
}
MockStorageProvider is a mock of StorageProvider interface.
func NewMockStorageProvider ¶
func NewMockStorageProvider(ctrl *gomock.Controller) *MockStorageProvider
NewMockStorageProvider creates a new mock instance.
func (*MockStorageProvider) AddStorageCollateral ¶
AddStorageCollateral mocks base method.
func (*MockStorageProvider) AnnounceAllDealsToIndexer ¶
func (m *MockStorageProvider) AnnounceAllDealsToIndexer(arg0 context.Context) error
AnnounceAllDealsToIndexer mocks base method.
func (*MockStorageProvider) AnnounceDealToIndexer ¶
AnnounceDealToIndexer mocks base method.
func (*MockStorageProvider) EXPECT ¶
func (m *MockStorageProvider) EXPECT() *MockStorageProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorageProvider) GetAsk ¶
func (m *MockStorageProvider) GetAsk() *storagemarket.SignedStorageAsk
GetAsk mocks base method.
func (*MockStorageProvider) GetLocalDeal ¶
func (m *MockStorageProvider) GetLocalDeal(arg0 cid.Cid) (storagemarket.MinerDeal, error)
GetLocalDeal mocks base method.
func (*MockStorageProvider) GetStorageCollateral ¶
func (m *MockStorageProvider) GetStorageCollateral(arg0 context.Context) (storagemarket.Balance, error)
GetStorageCollateral mocks base method.
func (*MockStorageProvider) ImportDataForDeal ¶
func (m *MockStorageProvider) ImportDataForDeal(arg0 context.Context, arg1 cid.Cid, arg2 io.Reader) error
ImportDataForDeal mocks base method.
func (*MockStorageProvider) ListLocalDeals ¶
func (m *MockStorageProvider) ListLocalDeals() ([]storagemarket.MinerDeal, error)
ListLocalDeals mocks base method.
func (*MockStorageProvider) ListLocalDealsPage ¶
func (m *MockStorageProvider) ListLocalDealsPage(arg0 *cid.Cid, arg1, arg2 int) ([]storagemarket.MinerDeal, error)
ListLocalDealsPage mocks base method.
func (*MockStorageProvider) LocalDealCount ¶
func (m *MockStorageProvider) LocalDealCount() (int, error)
LocalDealCount mocks base method.
func (*MockStorageProvider) OnReady ¶
func (m *MockStorageProvider) OnReady(arg0 shared.ReadyFunc)
OnReady mocks base method.
func (*MockStorageProvider) RetryDealPublishing ¶
func (m *MockStorageProvider) RetryDealPublishing(arg0 cid.Cid) error
RetryDealPublishing mocks base method.
func (*MockStorageProvider) SetAsk ¶
func (m *MockStorageProvider) SetAsk(arg0, arg1 big.Int, arg2 abi.ChainEpoch, arg3 ...storagemarket.StorageAskOption) error
SetAsk mocks base method.
func (*MockStorageProvider) Start ¶
func (m *MockStorageProvider) Start(arg0 context.Context) error
Start mocks base method.
func (*MockStorageProvider) Stop ¶
func (m *MockStorageProvider) Stop() error
Stop mocks base method.
func (*MockStorageProvider) SubscribeToEvents ¶
func (m *MockStorageProvider) SubscribeToEvents(arg0 storagemarket.ProviderSubscriber) shared.Unsubscribe
SubscribeToEvents mocks base method.
type MockStorageProviderMockRecorder ¶
type MockStorageProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageProviderMockRecorder is the mock recorder for MockStorageProvider.
func (*MockStorageProviderMockRecorder) AddStorageCollateral ¶
func (mr *MockStorageProviderMockRecorder) AddStorageCollateral(arg0, arg1 interface{}) *gomock.Call
AddStorageCollateral indicates an expected call of AddStorageCollateral.
func (*MockStorageProviderMockRecorder) AnnounceAllDealsToIndexer ¶
func (mr *MockStorageProviderMockRecorder) AnnounceAllDealsToIndexer(arg0 interface{}) *gomock.Call
AnnounceAllDealsToIndexer indicates an expected call of AnnounceAllDealsToIndexer.
func (*MockStorageProviderMockRecorder) AnnounceDealToIndexer ¶
func (mr *MockStorageProviderMockRecorder) AnnounceDealToIndexer(arg0, arg1 interface{}) *gomock.Call
AnnounceDealToIndexer indicates an expected call of AnnounceDealToIndexer.
func (*MockStorageProviderMockRecorder) GetAsk ¶
func (mr *MockStorageProviderMockRecorder) GetAsk() *gomock.Call
GetAsk indicates an expected call of GetAsk.
func (*MockStorageProviderMockRecorder) GetLocalDeal ¶
func (mr *MockStorageProviderMockRecorder) GetLocalDeal(arg0 interface{}) *gomock.Call
GetLocalDeal indicates an expected call of GetLocalDeal.
func (*MockStorageProviderMockRecorder) GetStorageCollateral ¶
func (mr *MockStorageProviderMockRecorder) GetStorageCollateral(arg0 interface{}) *gomock.Call
GetStorageCollateral indicates an expected call of GetStorageCollateral.
func (*MockStorageProviderMockRecorder) ImportDataForDeal ¶
func (mr *MockStorageProviderMockRecorder) ImportDataForDeal(arg0, arg1, arg2 interface{}) *gomock.Call
ImportDataForDeal indicates an expected call of ImportDataForDeal.
func (*MockStorageProviderMockRecorder) ListLocalDeals ¶
func (mr *MockStorageProviderMockRecorder) ListLocalDeals() *gomock.Call
ListLocalDeals indicates an expected call of ListLocalDeals.
func (*MockStorageProviderMockRecorder) ListLocalDealsPage ¶
func (mr *MockStorageProviderMockRecorder) ListLocalDealsPage(arg0, arg1, arg2 interface{}) *gomock.Call
ListLocalDealsPage indicates an expected call of ListLocalDealsPage.
func (*MockStorageProviderMockRecorder) LocalDealCount ¶
func (mr *MockStorageProviderMockRecorder) LocalDealCount() *gomock.Call
LocalDealCount indicates an expected call of LocalDealCount.
func (*MockStorageProviderMockRecorder) OnReady ¶
func (mr *MockStorageProviderMockRecorder) OnReady(arg0 interface{}) *gomock.Call
OnReady indicates an expected call of OnReady.
func (*MockStorageProviderMockRecorder) RetryDealPublishing ¶
func (mr *MockStorageProviderMockRecorder) RetryDealPublishing(arg0 interface{}) *gomock.Call
RetryDealPublishing indicates an expected call of RetryDealPublishing.
func (*MockStorageProviderMockRecorder) SetAsk ¶
func (mr *MockStorageProviderMockRecorder) SetAsk(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
SetAsk indicates an expected call of SetAsk.
func (*MockStorageProviderMockRecorder) Start ¶
func (mr *MockStorageProviderMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockStorageProviderMockRecorder) Stop ¶
func (mr *MockStorageProviderMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockStorageProviderMockRecorder) SubscribeToEvents ¶
func (mr *MockStorageProviderMockRecorder) SubscribeToEvents(arg0 interface{}) *gomock.Call
SubscribeToEvents indicates an expected call of SubscribeToEvents.