localstore

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option added in v0.12.0

type Option func(*cfg)

Option is an option of Storage constructor.

func WithLogger added in v0.12.0

func WithLogger(l *logger.Logger) Option

WithLogger returns Storage option of used logger.

type Storage added in v0.12.0

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

Storage represents NeoFS local object storage.

func New

func New(blob bucket.Bucket, meta *meta.DB, opts ...Option) *Storage

New is a local object storage constructor.

func (*Storage) Delete added in v0.12.0

func (s *Storage) Delete(addr *objectSDK.Address) error

func (*Storage) Get added in v0.12.0

func (s *Storage) Get(addr *objectSDK.Address) (*object.Object, error)

func (*Storage) Head added in v0.12.0

func (s *Storage) Head(addr *objectSDK.Address) (*object.Object, error)

func (*Storage) Put added in v0.12.0

func (s *Storage) Put(obj *object.Object) error

func (*Storage) Select added in v0.12.0

func (s *Storage) Select(fs objectSDK.SearchFilters) ([]*objectSDK.Address, error)

Jump to

Keyboard shortcuts

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