Documentation ¶
Index ¶
- Constants
- Variables
- type API
- func (a *API) ClientCalcCommP(ctx context.Context, inpath string) (*api.CommPRet, error)
- func (a *API) ClientCancelDataTransfer(ctx context.Context, transferID datatransfer.TransferID, otherPeer peer.ID, ...) error
- func (a *API) ClientCancelRetrievalDeal(ctx context.Context, dealID rm.DealID) error
- func (a *API) ClientDataTransferUpdates(ctx context.Context) (<-chan api.DataTransferChannel, error)
- func (a *API) ClientDealPieceCID(ctx context.Context, root cid.Cid) (api.DataCIDSize, error)
- func (a *API) ClientDealSize(ctx context.Context, root cid.Cid) (api.DataSize, error)
- func (a *API) ClientExport(ctx context.Context, exportRef api.ExportRef, ref api.FileRef) error
- func (a *API) ClientExportInto(ctx context.Context, exportRef api.ExportRef, car bool, dest ExportDest) error
- func (a *API) ClientFindData(ctx context.Context, root cid.Cid, piece *cid.Cid) ([]api.QueryOffer, error)
- func (a *API) ClientGenCar(ctx context.Context, ref api.FileRef, outputPath string) error
- func (a *API) ClientGetDealInfo(ctx context.Context, d cid.Cid) (*api.DealInfo, error)
- func (a *API) ClientGetDealStatus(ctx context.Context, statusCode uint64) (string, error)
- func (a *API) ClientGetDealUpdates(ctx context.Context) (<-chan api.DealInfo, error)
- func (a *API) ClientGetRetrievalUpdates(ctx context.Context) (<-chan api.RetrievalInfo, error)
- func (a *API) ClientHasLocal(_ context.Context, root cid.Cid) (bool, error)
- func (a *API) ClientImport(ctx context.Context, ref api.FileRef) (res *api.ImportRes, err error)
- func (a *API) ClientImportLocal(ctx context.Context, r io.Reader) (cid.Cid, error)
- func (a *API) ClientListDataTransfers(ctx context.Context) ([]api.DataTransferChannel, error)
- func (a *API) ClientListDeals(ctx context.Context) ([]api.DealInfo, error)
- func (a *API) ClientListImports(_ context.Context) ([]api.Import, error)
- func (a *API) ClientListRetrievals(ctx context.Context) ([]api.RetrievalInfo, error)
- func (a *API) ClientMinerQueryOffer(ctx context.Context, miner address.Address, root cid.Cid, piece *cid.Cid) (api.QueryOffer, error)
- func (a *API) ClientQueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*storagemarket.StorageAsk, error)
- func (a *API) ClientRemoveImport(ctx context.Context, id imports.ID) error
- func (a *API) ClientRestartDataTransfer(ctx context.Context, transferID datatransfer.TransferID, otherPeer peer.ID, ...) error
- func (a *API) ClientRetrieve(ctx context.Context, params api.RetrievalOrder) (*api.RestrievalRes, error)
- func (a *API) ClientRetrieveTryRestartInsufficientFunds(ctx context.Context, paymentChannel address.Address) error
- func (a *API) ClientRetrieveWait(ctx context.Context, deal rm.DealID) error
- func (a *API) ClientStartDeal(ctx context.Context, params *api.StartDealParams) (*cid.Cid, error)
- func (a *API) ClientStatelessDeal(ctx context.Context, params *api.StartDealParams) (*cid.Cid, error)
- type CarHeader
- type ExportDest
Constants ¶
View Source
const DefaultDAGStoreDir = "dagstore"
Variables ¶
View Source
var DefaultHashFunction = uint64(mh.BLAKE2B_MIN + 31)
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { fx.In full.ChainAPI full.WalletAPI paych.PaychAPI full.StateAPI SMDealClient storagemarket.StorageClient RetDiscovery discovery.PeerResolver Retrieval rm.RetrievalClient Chain *store.ChainStore // accessors for imports and retrievals. Imports dtypes.ClientImportMgr StorageBlockstoreAccessor storagemarket.BlockstoreAccessor RtvlBlockstoreAccessor rm.BlockstoreAccessor DataTransfer dtypes.ClientDataTransfer Host host.Host Repo repo.LockedRepo }
func (*API) ClientCalcCommP ¶ added in v0.3.0
func (*API) ClientCancelDataTransfer ¶ added in v1.1.3
func (a *API) ClientCancelDataTransfer(ctx context.Context, transferID datatransfer.TransferID, otherPeer peer.ID, isInitiator bool) error
func (*API) ClientCancelRetrievalDeal ¶ added in v1.9.0
func (*API) ClientDataTransferUpdates ¶ added in v0.5.0
func (*API) ClientDealPieceCID ¶ added in v1.1.3
func (*API) ClientDealSize ¶ added in v0.5.0
func (*API) ClientExport ¶ added in v1.13.2
func (*API) ClientExportInto ¶ added in v1.13.2
func (*API) ClientFindData ¶
func (*API) ClientGenCar ¶ added in v0.3.0
func (*API) ClientGetDealInfo ¶
func (*API) ClientGetDealStatus ¶ added in v1.1.1
func (*API) ClientGetDealUpdates ¶ added in v0.5.5
func (*API) ClientGetRetrievalUpdates ¶ added in v1.11.0
func (*API) ClientHasLocal ¶
func (*API) ClientImport ¶
func (*API) ClientImportLocal ¶
ClientImportLocal imports a standard file into this node as a UnixFS payload, storing it in a CARv2 file. Note that this method is NOT integrated with the IPFS blockstore. That is, if client-side IPFS integration is enabled, this method won't import the file into that
func (*API) ClientListDataTransfers ¶ added in v0.5.0
func (*API) ClientListDeals ¶
func (*API) ClientListImports ¶
func (*API) ClientListRetrievals ¶ added in v1.11.0
func (*API) ClientMinerQueryOffer ¶ added in v0.4.0
func (*API) ClientQueryAsk ¶
func (a *API) ClientQueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*storagemarket.StorageAsk, error)
func (*API) ClientRemoveImport ¶ added in v0.5.0
func (*API) ClientRestartDataTransfer ¶ added in v0.10.1
func (a *API) ClientRestartDataTransfer(ctx context.Context, transferID datatransfer.TransferID, otherPeer peer.ID, isInitiator bool) error
func (*API) ClientRetrieve ¶
func (a *API) ClientRetrieve(ctx context.Context, params api.RetrievalOrder) (*api.RestrievalRes, error)
func (*API) ClientRetrieveTryRestartInsufficientFunds ¶ added in v0.6.0
func (*API) ClientRetrieveWait ¶ added in v1.13.2
func (*API) ClientStartDeal ¶
func (*API) ClientStatelessDeal ¶ added in v1.11.0
type ExportDest ¶ added in v1.13.2
Click to show internal directories.
Click to hide internal directories.