filestore

package
v0.4.7-rc1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2017 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilestorePrefix = ds.NewKey("filestore")

Functions

This section is empty.

Types

type CorruptReferenceError

type CorruptReferenceError struct {
	Err error
}

func (CorruptReferenceError) Error

func (c CorruptReferenceError) Error() string

type FileManager

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

func NewFileManager

func NewFileManager(ds ds.Batching, root string) *FileManager

func (*FileManager) AllKeysChan

func (f *FileManager) AllKeysChan(ctx context.Context) (<-chan *cid.Cid, error)

func (*FileManager) DeleteBlock

func (f *FileManager) DeleteBlock(c *cid.Cid) error

func (*FileManager) Get

func (f *FileManager) Get(c *cid.Cid) (blocks.Block, error)

func (*FileManager) Has

func (f *FileManager) Has(c *cid.Cid) (bool, error)

func (*FileManager) Put

func (*FileManager) PutMany

func (f *FileManager) PutMany(bs []*posinfo.FilestoreNode) error

type Filestore

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

func NewFilestore

func NewFilestore(bs blockstore.Blockstore, fm *FileManager) *Filestore

func (*Filestore) AllKeysChan

func (f *Filestore) AllKeysChan(ctx context.Context) (<-chan *cid.Cid, error)

func (*Filestore) DeleteBlock

func (f *Filestore) DeleteBlock(c *cid.Cid) error

func (*Filestore) Get

func (f *Filestore) Get(c *cid.Cid) (blocks.Block, error)

func (*Filestore) Has

func (f *Filestore) Has(c *cid.Cid) (bool, error)

func (*Filestore) Put

func (f *Filestore) Put(b blocks.Block) error

func (*Filestore) PutMany

func (f *Filestore) PutMany(bs []blocks.Block) error

Directories

Path Synopsis
Package datastore_pb is a generated protocol buffer package.
Package datastore_pb is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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