Documentation ¶
Index ¶
- func NewRemoteBlockstore(api RemoteBlockstoreAPI) blockstore.Blockstore
- type RemoteBlockstore
- func (ro *RemoteBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
- func (ro *RemoteBlockstore) DeleteBlock(context.Context, cid.Cid) error
- func (ro *RemoteBlockstore) Get(ctx context.Context, c cid.Cid) (b blocks.Block, err error)
- func (ro *RemoteBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
- func (ro *RemoteBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
- func (ro *RemoteBlockstore) HashOnRead(_ bool)
- func (ro *RemoteBlockstore) Put(context.Context, blocks.Block) error
- func (ro *RemoteBlockstore) PutMany(context.Context, []blocks.Block) error
- type RemoteBlockstoreAPI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRemoteBlockstore ¶
func NewRemoteBlockstore(api RemoteBlockstoreAPI) blockstore.Blockstore
Types ¶
type RemoteBlockstore ¶
type RemoteBlockstore struct {
// contains filtered or unexported fields
}
RemoteBlockstore is a read-only blockstore over all cids across all pieces on a provider.
func (*RemoteBlockstore) AllKeysChan ¶
func (ro *RemoteBlockstore) AllKeysChan(ctx context.Context) (<-chan cid.Cid, error)
func (*RemoteBlockstore) DeleteBlock ¶
func (ro *RemoteBlockstore) DeleteBlock(context.Context, cid.Cid) error
--- UNSUPPORTED BLOCKSTORE METHODS -------
func (*RemoteBlockstore) GetSize ¶
func (ro *RemoteBlockstore) GetSize(ctx context.Context, c cid.Cid) (int, error)
func (*RemoteBlockstore) Has ¶
func (ro *RemoteBlockstore) Has(ctx context.Context, c cid.Cid) (bool, error)
func (*RemoteBlockstore) HashOnRead ¶
func (ro *RemoteBlockstore) HashOnRead(_ bool)
Click to show internal directories.
Click to hide internal directories.