Documentation
      ¶
    
    
  
    
  
    Index ¶
- Variables
 - type CorruptReferenceError
 - type FileManager
 - func (f *FileManager) AllKeysChan(ctx context.Context) (<-chan *cid.Cid, error)
 - func (f *FileManager) DeleteBlock(c *cid.Cid) error
 - func (f *FileManager) Get(c *cid.Cid) (blocks.Block, error)
 - func (f *FileManager) Has(c *cid.Cid) (bool, error)
 - func (f *FileManager) Put(b *posinfo.FilestoreNode) error
 - func (f *FileManager) PutMany(bs []*posinfo.FilestoreNode) error
 
- type Filestore
 - func (f *Filestore) AllKeysChan(ctx context.Context) (<-chan *cid.Cid, error)
 - func (f *Filestore) DeleteBlock(c *cid.Cid) error
 - func (f *Filestore) Get(c *cid.Cid) (blocks.Block, error)
 - func (f *Filestore) Has(c *cid.Cid) (bool, error)
 - func (f *Filestore) Put(b blocks.Block) error
 - func (f *Filestore) PutMany(bs []blocks.Block) error
 
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 (*FileManager) DeleteBlock ¶
func (f *FileManager) DeleteBlock(c *cid.Cid) error
func (*FileManager) Put ¶
func (f *FileManager) Put(b *posinfo.FilestoreNode) error
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 ¶
 Click to show internal directories. 
   Click to hide internal directories.