bolt

package
v0.0.0-...-747f32b Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: NCSA Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasePath

func BasePath(s string) store.Option

func New

func New(iopts ...store.Option) (store.Store, error)

func NewOptions

func NewOptions() *store.Options

Types

type Handler

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

func (*Handler) Close

func (h *Handler) Close() error

func (*Handler) Delete

func (h *Handler) Delete(key string, d ...store.DeleteOption) error

func (*Handler) Download

func (h *Handler) Download(s string, s1 string, d ...store.DownloadOption) error

func (*Handler) DownloadTo

func (h *Handler) DownloadTo(w io.WriterAt, s string, d ...store.DownloadOption) error

func (*Handler) Get

func (h *Handler) Get(key string, g ...store.GetOption) ([]byte, error)

func (*Handler) GetReader

func (h *Handler) GetReader(key string, g ...store.GetOption) (io.ReadCloser, error)

func (*Handler) List

func (h *Handler) List(l ...store.ListOption) ([]string, error)

func (*Handler) Name

func (h *Handler) Name() string

func (*Handler) Options

func (h *Handler) Options() store.Options

func (*Handler) Upload

func (h *Handler) Upload(path string, key string, u ...store.UploadOption) (string, error)

func (*Handler) UploadFrom

func (h *Handler) UploadFrom(r io.Reader, key string, u ...store.UploadOption) (string, error)

Jump to

Keyboard shortcuts

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