rados

package module
v0.0.0-...-4bfa325 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2022 License: MIT Imports: 9 Imported by: 1

README

go-ds-rados

standard-readme compliant GoDoc

Datastore implementation using rados as backend.

Documentation

https://godoc.org/github.com/ipfs/go-ds-rados

Contribute

Feel free to join in. All welcome. Open an issue!

This repository falls under the IPFS Code of Conduct.

Want to hack on IPFS?

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Datastore

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

func NewDatastore

func NewDatastore(confPath string, pool string) (*Datastore, error)

func (*Datastore) Batch

func (ds *Datastore) Batch(_ context.Context) (datastore.Batch, error)

func (*Datastore) Close

func (ds *Datastore) Close() error

func (*Datastore) Delete

func (ds *Datastore) Delete(_ context.Context, key datastore.Key) error

func (*Datastore) Get

func (ds *Datastore) Get(_ context.Context, key datastore.Key) (value []byte, err error)

func (*Datastore) GetSize

func (ds *Datastore) GetSize(_ context.Context, key datastore.Key) (size int, err error)

func (*Datastore) Has

func (ds *Datastore) Has(_ context.Context, key datastore.Key) (exists bool, err error)

func (*Datastore) Put

func (ds *Datastore) Put(_ context.Context, key datastore.Key, value []byte) error

func (*Datastore) Query

func (ds *Datastore) Query(ctx context.Context, q dsq.Query) (dsq.Results, error)

func (*Datastore) Shutdown

func (ds *Datastore) Shutdown()

func (*Datastore) Sync

func (ds *Datastore) Sync(_ context.Context, prefix datastore.Key) (err error)

Jump to

Keyboard shortcuts

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