swiftds

package module
v0.0.0-...-ec839ed Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 8 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 QueryCache

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

func (*QueryCache) Invalidate

func (c *QueryCache) Invalidate()

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) DiskUsage

func (s *SwiftContainer) DiskUsage() (uint64, error)

func (*SwiftContainer) Get

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

func (*SwiftContainer) GetSize

func (s *SwiftContainer) GetSize(k ds.Key) (int, 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)

func (*SwiftContainer) Sync

func (s *SwiftContainer) Sync(prefix ds.Key) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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