diskstore

package
v0.0.0-...-76f7c0c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(path string) store.Store

Types

type DiskStore

type DiskStore struct {
	Path string
}

func (*DiskStore) Delete

func (s *DiskStore) Delete(fileName string) error

func (*DiskStore) DeleteAll

func (s *DiskStore) DeleteAll(prefix ...string) error

func (*DiskStore) Get

func (s *DiskStore) Get(fileName string, writer io.Writer) error

func (*DiskStore) GetAll

func (s *DiskStore) GetAll() ([]*pb.StorageObject, error)

func (*DiskStore) Init

func (s *DiskStore) Init() error

func (*DiskStore) Put

func (s *DiskStore) Put(fileName string, body io.Reader) error

Jump to

Keyboard shortcuts

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