manta

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2018 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMantaBackend

func NewMantaBackend(conf map[string]string, logger log.Logger) (physical.Backend, error)

Types

type MantaBackend

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

func (*MantaBackend) Delete

func (m *MantaBackend) Delete(ctx context.Context, key string) error

Delete is used to permanently delete an entry

func (*MantaBackend) Get

func (m *MantaBackend) Get(ctx context.Context, key string) (*physical.Entry, error)

Get is used to fetch an entry

func (*MantaBackend) List

func (m *MantaBackend) List(ctx context.Context, prefix string) ([]string, error)

List is used to list all the keys under a given prefix, up to the next prefix.

func (*MantaBackend) Put

func (m *MantaBackend) Put(ctx context.Context, entry *physical.Entry) error

Put is used to insert or update an entry

Jump to

Keyboard shortcuts

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