retrievaladapter

package
v0.0.0-...-484cccf Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0, MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRetrievalClientNode

func NewRetrievalClientNode(forceOffChain bool, payAPI payapi.PaychAPI, chainAPI full.ChainAPI, stateAPI full.StateAPI) retrievalmarket.RetrievalClientNode

NewRetrievalClientNode returns a new node adapter for a retrieval client that talks to the Lotus Node

func NewRetrievalProviderNode

func NewRetrievalProviderNode(full v1api.FullNode) retrievalmarket.RetrievalProviderNode

NewRetrievalProviderNode returns a new node adapter for a retrieval provider that talks to the Lotus Node

Types

type APIBlockstoreAccessor

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

APIBlockstoreAccessor adds support to API-specified remote blockstores

func (*APIBlockstoreAccessor) Done

func (*APIBlockstoreAccessor) Get

func (*APIBlockstoreAccessor) RegisterApiStore

func (a *APIBlockstoreAccessor) RegisterApiStore(sid api.RemoteStoreID, st *lbstore.NetworkStore) error

func (*APIBlockstoreAccessor) RegisterDealToRetrievalStore

func (a *APIBlockstoreAccessor) RegisterDealToRetrievalStore(id retrievalmarket.DealID, sid api.RemoteStoreID) error

type CARBlockstoreAccessor

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

func NewCARBlockstoreAccessor

func NewCARBlockstoreAccessor(rootdir string) *CARBlockstoreAccessor

func (*CARBlockstoreAccessor) Done

func (*CARBlockstoreAccessor) Get

func (*CARBlockstoreAccessor) PathFor

type ProxyBlockstoreAccessor

type ProxyBlockstoreAccessor struct {
	Blockstore bstore.Blockstore
}

ProxyBlockstoreAccessor is an accessor that returns a fixed blockstore. To be used in combination with IPFS integration.

func (*ProxyBlockstoreAccessor) Done

func (*ProxyBlockstoreAccessor) Get

Jump to

Keyboard shortcuts

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