backupds

package
v1.2.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2020 License: Apache-2.0, MIT Imports: 9 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadBackup

func ReadBackup(r io.Reader, cb func(key datastore.Key, value []byte) error) error

func RestoreInto

func RestoreInto(r io.Reader, dest datastore.Batching) error

Types

type Datastore

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

func Wrap

func Wrap(child datastore.Batching) *Datastore

func (*Datastore) Backup

func (d *Datastore) Backup(out io.Writer) error

Writes a datastore dump into the provided writer as [array(*) of [key, value] tuples, checksum]

func (*Datastore) Batch

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

func (*Datastore) Close

func (d *Datastore) Close() error

func (*Datastore) Delete

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

func (*Datastore) Get

func (d *Datastore) Get(key datastore.Key) (value []byte, err error)

func (*Datastore) GetSize

func (d *Datastore) GetSize(key datastore.Key) (size int, 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 []byte) error

func (*Datastore) Query

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

func (*Datastore) Sync

func (d *Datastore) Sync(prefix datastore.Key) error

Jump to

Keyboard shortcuts

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