Versions in this module Expand all Collapse all v0 v0.0.1 May 28, 2021 Changes in this version + var ErrNoMount = errors.New("no datastore mounted for this key") + type Datastore struct + func New(mounts []Mount) *Datastore + func (d *Datastore) Batch() (ds.Batch, error) + func (d *Datastore) Check() error + func (d *Datastore) Close() error + func (d *Datastore) CollectGarbage() error + func (d *Datastore) Delete(key ds.Key) error + func (d *Datastore) DiskUsage() (uint64, error) + func (d *Datastore) Get(key ds.Key) (value []byte, err error) + func (d *Datastore) GetSize(key ds.Key) (size int, err error) + func (d *Datastore) Has(key ds.Key) (exists bool, err error) + func (d *Datastore) Put(key ds.Key, value []byte) error + func (d *Datastore) Query(master query.Query) (query.Results, error) + func (d *Datastore) Scrub() error + func (d *Datastore) Sync(prefix ds.Key) error + type Mount struct + Datastore ds.Datastore + Prefix ds.Key