swiftds

package module
v0.0.0-...-4004bab Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: MIT Imports: 4 Imported by: 0

README

go-ds-swift

standard-readme compliant GoDoc

Datastore implementation using swift as backend.

Documentation

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

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 Config

type Config struct {
	swift.Connection
	Container string
}

type SwiftContainer

type SwiftContainer struct {
	Config
	// contains filtered or unexported fields
}

func NewSwiftDatastore

func NewSwiftDatastore(conf Config) (*SwiftContainer, error)

func (*SwiftContainer) Batch

func (s *SwiftContainer) Batch() (ds.Batch, error)

func (*SwiftContainer) Close

func (s *SwiftContainer) Close() error

func (*SwiftContainer) Delete

func (s *SwiftContainer) Delete(k ds.Key) error

func (*SwiftContainer) Get

func (s *SwiftContainer) Get(k ds.Key) ([]byte, error)

func (*SwiftContainer) Has

func (s *SwiftContainer) Has(k ds.Key) (bool, error)

func (*SwiftContainer) Put

func (s *SwiftContainer) Put(k ds.Key, val []byte) error

func (*SwiftContainer) Query

func (s *SwiftContainer) Query(q dsq.Query) (dsq.Results, error)

Jump to

Keyboard shortcuts

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