mock

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: Apache-2.0, MIT Imports: 14 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 MockIMarketClient

type MockIMarketClient struct {
	// contains filtered or unexported fields
}

MockIMarketClient is a mock of IMarketClient interface.

func NewMockIMarketClient

func NewMockIMarketClient(ctrl *gomock.Controller) *MockIMarketClient

NewMockIMarketClient creates a new mock instance.

func (*MockIMarketClient) ClientBatchDeal added in v1.12.0

func (m *MockIMarketClient) ClientBatchDeal(arg0 context.Context, arg1 []*client.DealParams) (*client.DealResults, error)

ClientBatchDeal mocks base method.

func (*MockIMarketClient) ClientCalcCommP

func (m *MockIMarketClient) ClientCalcCommP(arg0 context.Context, arg1 string) (*client.CommPRet, error)

ClientCalcCommP mocks base method.

func (*MockIMarketClient) ClientCancelDataTransfer

func (m *MockIMarketClient) ClientCancelDataTransfer(arg0 context.Context, arg1 datatransfer.TransferID, arg2 peer.ID, arg3 bool) error

ClientCancelDataTransfer mocks base method.

func (*MockIMarketClient) ClientCancelRetrievalDeal

func (m *MockIMarketClient) ClientCancelRetrievalDeal(arg0 context.Context, arg1 retrievalmarket.DealID) error

ClientCancelRetrievalDeal mocks base method.

func (*MockIMarketClient) ClientDataTransferUpdates

func (m *MockIMarketClient) ClientDataTransferUpdates(arg0 context.Context) (<-chan market.DataTransferChannel, error)

ClientDataTransferUpdates mocks base method.

func (*MockIMarketClient) ClientDealPieceCID

func (m *MockIMarketClient) ClientDealPieceCID(arg0 context.Context, arg1 cid.Cid) (client.DataCIDSize, error)

ClientDealPieceCID mocks base method.

func (*MockIMarketClient) ClientDealSize

func (m *MockIMarketClient) ClientDealSize(arg0 context.Context, arg1 cid.Cid) (client.DataSize, error)

ClientDealSize mocks base method.

func (*MockIMarketClient) ClientExport

func (m *MockIMarketClient) ClientExport(arg0 context.Context, arg1 client.ExportRef, arg2 client.FileRef) error

ClientExport mocks base method.

func (*MockIMarketClient) ClientFindData

func (m *MockIMarketClient) ClientFindData(arg0 context.Context, arg1 cid.Cid, arg2 *cid.Cid) ([]client.QueryOffer, error)

ClientFindData mocks base method.

func (*MockIMarketClient) ClientGenCar

func (m *MockIMarketClient) ClientGenCar(arg0 context.Context, arg1 client.FileRef, arg2 string) error

ClientGenCar mocks base method.

func (*MockIMarketClient) ClientGetDealInfo

func (m *MockIMarketClient) ClientGetDealInfo(arg0 context.Context, arg1 cid.Cid) (*client.DealInfo, error)

ClientGetDealInfo mocks base method.

func (*MockIMarketClient) ClientGetDealStatus

func (m *MockIMarketClient) ClientGetDealStatus(arg0 context.Context, arg1 uint64) (string, error)

ClientGetDealStatus mocks base method.

func (*MockIMarketClient) ClientGetDealUpdates

func (m *MockIMarketClient) ClientGetDealUpdates(arg0 context.Context) (<-chan client.DealInfo, error)

ClientGetDealUpdates mocks base method.

func (*MockIMarketClient) ClientGetRetrievalUpdates

func (m *MockIMarketClient) ClientGetRetrievalUpdates(arg0 context.Context) (<-chan client.RetrievalInfo, error)

ClientGetRetrievalUpdates mocks base method.

func (*MockIMarketClient) ClientGetVerifiedDealDistribution added in v1.12.0

func (m *MockIMarketClient) ClientGetVerifiedDealDistribution(arg0 context.Context, arg1 []address.Address, arg2 address.Address) (*client.DealDistribution, error)

ClientGetVerifiedDealDistribution mocks base method.

func (*MockIMarketClient) ClientHasLocal

func (m *MockIMarketClient) ClientHasLocal(arg0 context.Context, arg1 cid.Cid) (bool, error)

ClientHasLocal mocks base method.

func (*MockIMarketClient) ClientImport

func (m *MockIMarketClient) ClientImport(arg0 context.Context, arg1 client.FileRef) (*client.ImportRes, error)

ClientImport mocks base method.

func (*MockIMarketClient) ClientListDataTransfers

func (m *MockIMarketClient) ClientListDataTransfers(arg0 context.Context) ([]market.DataTransferChannel, error)

ClientListDataTransfers mocks base method.

func (*MockIMarketClient) ClientListDeals

func (m *MockIMarketClient) ClientListDeals(arg0 context.Context) ([]client.DealInfo, error)

ClientListDeals mocks base method.

func (*MockIMarketClient) ClientListImports

func (m *MockIMarketClient) ClientListImports(arg0 context.Context) ([]client.Import, error)

ClientListImports mocks base method.

func (*MockIMarketClient) ClientListOfflineDeals added in v1.12.0

func (m *MockIMarketClient) ClientListOfflineDeals(arg0 context.Context) ([]client.DealInfo, error)

ClientListOfflineDeals mocks base method.

func (*MockIMarketClient) ClientListRetrievals

func (m *MockIMarketClient) ClientListRetrievals(arg0 context.Context) ([]client.RetrievalInfo, error)

ClientListRetrievals mocks base method.

func (*MockIMarketClient) ClientMinerQueryOffer

func (m *MockIMarketClient) ClientMinerQueryOffer(arg0 context.Context, arg1 address.Address, arg2 cid.Cid, arg3 *cid.Cid) (client.QueryOffer, error)

ClientMinerQueryOffer mocks base method.

func (*MockIMarketClient) ClientQueryAsk

func (m *MockIMarketClient) ClientQueryAsk(arg0 context.Context, arg1 peer.ID, arg2 address.Address) (*storagemarket.StorageAsk, error)

ClientQueryAsk mocks base method.

func (*MockIMarketClient) ClientRemoveImport

func (m *MockIMarketClient) ClientRemoveImport(arg0 context.Context, arg1 client.ImportID) error

ClientRemoveImport mocks base method.

func (*MockIMarketClient) ClientRestartDataTransfer

func (m *MockIMarketClient) ClientRestartDataTransfer(arg0 context.Context, arg1 datatransfer.TransferID, arg2 peer.ID, arg3 bool) error

ClientRestartDataTransfer mocks base method.

func (*MockIMarketClient) ClientRetrieve

func (m *MockIMarketClient) ClientRetrieve(arg0 context.Context, arg1 client.RetrievalOrder) (*client.RestrievalRes, error)

ClientRetrieve mocks base method.

func (*MockIMarketClient) ClientRetrieveTryRestartInsufficientFunds

func (m *MockIMarketClient) ClientRetrieveTryRestartInsufficientFunds(arg0 context.Context, arg1 address.Address) error

ClientRetrieveTryRestartInsufficientFunds mocks base method.

func (*MockIMarketClient) ClientRetrieveWait

func (m *MockIMarketClient) ClientRetrieveWait(arg0 context.Context, arg1 retrievalmarket.DealID) error

ClientRetrieveWait mocks base method.

func (*MockIMarketClient) ClientStartDeal

func (m *MockIMarketClient) ClientStartDeal(arg0 context.Context, arg1 *client.DealParams) (*cid.Cid, error)

ClientStartDeal mocks base method.

func (*MockIMarketClient) ClientStatelessDeal

func (m *MockIMarketClient) ClientStatelessDeal(arg0 context.Context, arg1 *client.DealParams) (*cid.Cid, error)

ClientStatelessDeal mocks base method.

func (*MockIMarketClient) DefaultAddress

func (m *MockIMarketClient) DefaultAddress(arg0 context.Context) (address.Address, error)

DefaultAddress mocks base method.

func (*MockIMarketClient) EXPECT

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

func (*MockIMarketClient) MarketAddBalance

func (m *MockIMarketClient) MarketAddBalance(arg0 context.Context, arg1, arg2 address.Address, arg3 big.Int) (cid.Cid, error)

MarketAddBalance mocks base method.

func (*MockIMarketClient) MarketGetReserved

func (m *MockIMarketClient) MarketGetReserved(arg0 context.Context, arg1 address.Address) (big.Int, error)

MarketGetReserved mocks base method.

func (*MockIMarketClient) MarketReleaseFunds

func (m *MockIMarketClient) MarketReleaseFunds(arg0 context.Context, arg1 address.Address, arg2 big.Int) error

MarketReleaseFunds mocks base method.

func (*MockIMarketClient) MarketReserveFunds

func (m *MockIMarketClient) MarketReserveFunds(arg0 context.Context, arg1, arg2 address.Address, arg3 big.Int) (cid.Cid, error)

MarketReserveFunds mocks base method.

func (*MockIMarketClient) MarketWithdraw

func (m *MockIMarketClient) MarketWithdraw(arg0 context.Context, arg1, arg2 address.Address, arg3 big.Int) (cid.Cid, error)

MarketWithdraw mocks base method.

func (*MockIMarketClient) MessagerGetMessage

func (m *MockIMarketClient) MessagerGetMessage(arg0 context.Context, arg1 cid.Cid) (*types.Message, error)

MessagerGetMessage mocks base method.

func (*MockIMarketClient) MessagerPushMessage

func (m *MockIMarketClient) MessagerPushMessage(arg0 context.Context, arg1 *types.Message, arg2 *types0.MessageSendSpec) (cid.Cid, error)

MessagerPushMessage mocks base method.

func (*MockIMarketClient) MessagerWaitMessage

func (m *MockIMarketClient) MessagerWaitMessage(arg0 context.Context, arg1 cid.Cid) (*types0.MsgLookup, error)

MessagerWaitMessage mocks base method.

func (*MockIMarketClient) Version added in v1.7.0

func (m *MockIMarketClient) Version(arg0 context.Context) (types0.Version, error)

Version mocks base method.

type MockIMarketClientMockRecorder

type MockIMarketClientMockRecorder struct {
	// contains filtered or unexported fields
}

MockIMarketClientMockRecorder is the mock recorder for MockIMarketClient.

func (*MockIMarketClientMockRecorder) ClientBatchDeal added in v1.12.0

func (mr *MockIMarketClientMockRecorder) ClientBatchDeal(arg0, arg1 interface{}) *gomock.Call

ClientBatchDeal indicates an expected call of ClientBatchDeal.

func (*MockIMarketClientMockRecorder) ClientCalcCommP

func (mr *MockIMarketClientMockRecorder) ClientCalcCommP(arg0, arg1 interface{}) *gomock.Call

ClientCalcCommP indicates an expected call of ClientCalcCommP.

func (*MockIMarketClientMockRecorder) ClientCancelDataTransfer

func (mr *MockIMarketClientMockRecorder) ClientCancelDataTransfer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ClientCancelDataTransfer indicates an expected call of ClientCancelDataTransfer.

func (*MockIMarketClientMockRecorder) ClientCancelRetrievalDeal

func (mr *MockIMarketClientMockRecorder) ClientCancelRetrievalDeal(arg0, arg1 interface{}) *gomock.Call

ClientCancelRetrievalDeal indicates an expected call of ClientCancelRetrievalDeal.

func (*MockIMarketClientMockRecorder) ClientDataTransferUpdates

func (mr *MockIMarketClientMockRecorder) ClientDataTransferUpdates(arg0 interface{}) *gomock.Call

ClientDataTransferUpdates indicates an expected call of ClientDataTransferUpdates.

func (*MockIMarketClientMockRecorder) ClientDealPieceCID

func (mr *MockIMarketClientMockRecorder) ClientDealPieceCID(arg0, arg1 interface{}) *gomock.Call

ClientDealPieceCID indicates an expected call of ClientDealPieceCID.

func (*MockIMarketClientMockRecorder) ClientDealSize

func (mr *MockIMarketClientMockRecorder) ClientDealSize(arg0, arg1 interface{}) *gomock.Call

ClientDealSize indicates an expected call of ClientDealSize.

func (*MockIMarketClientMockRecorder) ClientExport

func (mr *MockIMarketClientMockRecorder) ClientExport(arg0, arg1, arg2 interface{}) *gomock.Call

ClientExport indicates an expected call of ClientExport.

func (*MockIMarketClientMockRecorder) ClientFindData

func (mr *MockIMarketClientMockRecorder) ClientFindData(arg0, arg1, arg2 interface{}) *gomock.Call

ClientFindData indicates an expected call of ClientFindData.

func (*MockIMarketClientMockRecorder) ClientGenCar

func (mr *MockIMarketClientMockRecorder) ClientGenCar(arg0, arg1, arg2 interface{}) *gomock.Call

ClientGenCar indicates an expected call of ClientGenCar.

func (*MockIMarketClientMockRecorder) ClientGetDealInfo

func (mr *MockIMarketClientMockRecorder) ClientGetDealInfo(arg0, arg1 interface{}) *gomock.Call

ClientGetDealInfo indicates an expected call of ClientGetDealInfo.

func (*MockIMarketClientMockRecorder) ClientGetDealStatus

func (mr *MockIMarketClientMockRecorder) ClientGetDealStatus(arg0, arg1 interface{}) *gomock.Call

ClientGetDealStatus indicates an expected call of ClientGetDealStatus.

func (*MockIMarketClientMockRecorder) ClientGetDealUpdates

func (mr *MockIMarketClientMockRecorder) ClientGetDealUpdates(arg0 interface{}) *gomock.Call

ClientGetDealUpdates indicates an expected call of ClientGetDealUpdates.

func (*MockIMarketClientMockRecorder) ClientGetRetrievalUpdates

func (mr *MockIMarketClientMockRecorder) ClientGetRetrievalUpdates(arg0 interface{}) *gomock.Call

ClientGetRetrievalUpdates indicates an expected call of ClientGetRetrievalUpdates.

func (*MockIMarketClientMockRecorder) ClientGetVerifiedDealDistribution added in v1.12.0

func (mr *MockIMarketClientMockRecorder) ClientGetVerifiedDealDistribution(arg0, arg1, arg2 interface{}) *gomock.Call

ClientGetVerifiedDealDistribution indicates an expected call of ClientGetVerifiedDealDistribution.

func (*MockIMarketClientMockRecorder) ClientHasLocal

func (mr *MockIMarketClientMockRecorder) ClientHasLocal(arg0, arg1 interface{}) *gomock.Call

ClientHasLocal indicates an expected call of ClientHasLocal.

func (*MockIMarketClientMockRecorder) ClientImport

func (mr *MockIMarketClientMockRecorder) ClientImport(arg0, arg1 interface{}) *gomock.Call

ClientImport indicates an expected call of ClientImport.

func (*MockIMarketClientMockRecorder) ClientListDataTransfers

func (mr *MockIMarketClientMockRecorder) ClientListDataTransfers(arg0 interface{}) *gomock.Call

ClientListDataTransfers indicates an expected call of ClientListDataTransfers.

func (*MockIMarketClientMockRecorder) ClientListDeals

func (mr *MockIMarketClientMockRecorder) ClientListDeals(arg0 interface{}) *gomock.Call

ClientListDeals indicates an expected call of ClientListDeals.

func (*MockIMarketClientMockRecorder) ClientListImports

func (mr *MockIMarketClientMockRecorder) ClientListImports(arg0 interface{}) *gomock.Call

ClientListImports indicates an expected call of ClientListImports.

func (*MockIMarketClientMockRecorder) ClientListOfflineDeals added in v1.12.0

func (mr *MockIMarketClientMockRecorder) ClientListOfflineDeals(arg0 interface{}) *gomock.Call

ClientListOfflineDeals indicates an expected call of ClientListOfflineDeals.

func (*MockIMarketClientMockRecorder) ClientListRetrievals

func (mr *MockIMarketClientMockRecorder) ClientListRetrievals(arg0 interface{}) *gomock.Call

ClientListRetrievals indicates an expected call of ClientListRetrievals.

func (*MockIMarketClientMockRecorder) ClientMinerQueryOffer

func (mr *MockIMarketClientMockRecorder) ClientMinerQueryOffer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ClientMinerQueryOffer indicates an expected call of ClientMinerQueryOffer.

func (*MockIMarketClientMockRecorder) ClientQueryAsk

func (mr *MockIMarketClientMockRecorder) ClientQueryAsk(arg0, arg1, arg2 interface{}) *gomock.Call

ClientQueryAsk indicates an expected call of ClientQueryAsk.

func (*MockIMarketClientMockRecorder) ClientRemoveImport

func (mr *MockIMarketClientMockRecorder) ClientRemoveImport(arg0, arg1 interface{}) *gomock.Call

ClientRemoveImport indicates an expected call of ClientRemoveImport.

func (*MockIMarketClientMockRecorder) ClientRestartDataTransfer

func (mr *MockIMarketClientMockRecorder) ClientRestartDataTransfer(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ClientRestartDataTransfer indicates an expected call of ClientRestartDataTransfer.

func (*MockIMarketClientMockRecorder) ClientRetrieve

func (mr *MockIMarketClientMockRecorder) ClientRetrieve(arg0, arg1 interface{}) *gomock.Call

ClientRetrieve indicates an expected call of ClientRetrieve.

func (*MockIMarketClientMockRecorder) ClientRetrieveTryRestartInsufficientFunds

func (mr *MockIMarketClientMockRecorder) ClientRetrieveTryRestartInsufficientFunds(arg0, arg1 interface{}) *gomock.Call

ClientRetrieveTryRestartInsufficientFunds indicates an expected call of ClientRetrieveTryRestartInsufficientFunds.

func (*MockIMarketClientMockRecorder) ClientRetrieveWait

func (mr *MockIMarketClientMockRecorder) ClientRetrieveWait(arg0, arg1 interface{}) *gomock.Call

ClientRetrieveWait indicates an expected call of ClientRetrieveWait.

func (*MockIMarketClientMockRecorder) ClientStartDeal

func (mr *MockIMarketClientMockRecorder) ClientStartDeal(arg0, arg1 interface{}) *gomock.Call

ClientStartDeal indicates an expected call of ClientStartDeal.

func (*MockIMarketClientMockRecorder) ClientStatelessDeal

func (mr *MockIMarketClientMockRecorder) ClientStatelessDeal(arg0, arg1 interface{}) *gomock.Call

ClientStatelessDeal indicates an expected call of ClientStatelessDeal.

func (*MockIMarketClientMockRecorder) DefaultAddress

func (mr *MockIMarketClientMockRecorder) DefaultAddress(arg0 interface{}) *gomock.Call

DefaultAddress indicates an expected call of DefaultAddress.

func (*MockIMarketClientMockRecorder) MarketAddBalance

func (mr *MockIMarketClientMockRecorder) MarketAddBalance(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

MarketAddBalance indicates an expected call of MarketAddBalance.

func (*MockIMarketClientMockRecorder) MarketGetReserved

func (mr *MockIMarketClientMockRecorder) MarketGetReserved(arg0, arg1 interface{}) *gomock.Call

MarketGetReserved indicates an expected call of MarketGetReserved.

func (*MockIMarketClientMockRecorder) MarketReleaseFunds

func (mr *MockIMarketClientMockRecorder) MarketReleaseFunds(arg0, arg1, arg2 interface{}) *gomock.Call

MarketReleaseFunds indicates an expected call of MarketReleaseFunds.

func (*MockIMarketClientMockRecorder) MarketReserveFunds

func (mr *MockIMarketClientMockRecorder) MarketReserveFunds(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

MarketReserveFunds indicates an expected call of MarketReserveFunds.

func (*MockIMarketClientMockRecorder) MarketWithdraw

func (mr *MockIMarketClientMockRecorder) MarketWithdraw(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

MarketWithdraw indicates an expected call of MarketWithdraw.

func (*MockIMarketClientMockRecorder) MessagerGetMessage

func (mr *MockIMarketClientMockRecorder) MessagerGetMessage(arg0, arg1 interface{}) *gomock.Call

MessagerGetMessage indicates an expected call of MessagerGetMessage.

func (*MockIMarketClientMockRecorder) MessagerPushMessage

func (mr *MockIMarketClientMockRecorder) MessagerPushMessage(arg0, arg1, arg2 interface{}) *gomock.Call

MessagerPushMessage indicates an expected call of MessagerPushMessage.

func (*MockIMarketClientMockRecorder) MessagerWaitMessage

func (mr *MockIMarketClientMockRecorder) MessagerWaitMessage(arg0, arg1 interface{}) *gomock.Call

MessagerWaitMessage indicates an expected call of MessagerWaitMessage.

func (*MockIMarketClientMockRecorder) Version added in v1.7.0

func (mr *MockIMarketClientMockRecorder) Version(arg0 interface{}) *gomock.Call

Version indicates an expected call of Version.

Jump to

Keyboard shortcuts

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