mock

package
v1.7.5 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0, MIT Imports: 9 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

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

func (m *MockStorageProvider) AddStorageCollateral(arg0 context.Context, arg1 big.Int) error

AddStorageCollateral mocks base method.

func (*MockStorageProvider) AnnounceAllDealsToIndexer

func (m *MockStorageProvider) AnnounceAllDealsToIndexer(arg0 context.Context) error

AnnounceAllDealsToIndexer mocks base method.

func (*MockStorageProvider) AnnounceDealToIndexer

func (m *MockStorageProvider) AnnounceDealToIndexer(arg0 context.Context, arg1 cid.Cid) error

AnnounceDealToIndexer mocks base method.

func (*MockStorageProvider) EXPECT

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

func (*MockStorageProvider) GetAsk

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

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

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

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.

Jump to

Keyboard shortcuts

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