mount

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mount provides a Datastore that has other Datastores mounted at various key prefixes.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoMount = errors.New("no datastore mounted for this key")
)

Functions

This section is empty.

Types

type Datastore

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

func New

func New(mounts []Mount) *Datastore

func (*Datastore) Batch

func (d *Datastore) Batch() (datastore.Batch, error)

func (*Datastore) Check

func (d *Datastore) Check() error

func (*Datastore) Close

func (d *Datastore) Close() error

func (*Datastore) CollectGarbage

func (d *Datastore) CollectGarbage() error

func (*Datastore) Delete

func (d *Datastore) Delete(key datastore.Key) error

func (*Datastore) Get

func (d *Datastore) Get(key datastore.Key) (value interface{}, err error)

func (*Datastore) Has

func (d *Datastore) Has(key datastore.Key) (exists bool, err error)

func (*Datastore) Put

func (d *Datastore) Put(key datastore.Key, value interface{}) error

func (*Datastore) Query

func (d *Datastore) Query(q query.Query) (query.Results, error)

func (*Datastore) Scrub

func (d *Datastore) Scrub() error

type Mount

type Mount struct {
	Prefix    datastore.Key
	Datastore datastore.Datastore
}

Jump to

Keyboard shortcuts

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