swift

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2017 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSwiftBackend

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

NewSwiftBackend constructs a Swift backend using a pre-existing container. Credentials can be provided to the backend, sourced from the environment.

Types

type SwiftBackend

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

SwiftBackend is a physical backend that stores data within an OpenStack Swift container.

func (*SwiftBackend) Delete

func (s *SwiftBackend) Delete(key string) error

Delete is used to permanently delete an entry

func (*SwiftBackend) Get

func (s *SwiftBackend) Get(key string) (*physical.Entry, error)

Get is used to fetch an entry

func (*SwiftBackend) List

func (s *SwiftBackend) List(prefix string) ([]string, error)

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

func (*SwiftBackend) Put

func (s *SwiftBackend) Put(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