objectstorage

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjStorage

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

ObjStorage wraps a Storage providing additional helper functions

func NewObjStorage

func NewObjStorage(s Storage, delimiter string) *ObjStorage

func (*ObjStorage) Delimiter

func (s *ObjStorage) Delimiter() string

func (*ObjStorage) List

func (s *ObjStorage) List(prefix, startWith string, recursive bool, doneCh <-chan struct{}) <-chan types.ObjectInfo

type Storage

type Storage interface {
	Stat(filepath string) (*types.ObjectInfo, error)
	ReadObject(filepath string) (types.ReadSeekCloser, error)
	WriteObject(filepath string, data io.Reader, size int64, persist bool) error
	DeleteObject(filepath string) error
	List(prefix, startWith, delimiter string, doneCh <-chan struct{}) <-chan types.ObjectInfo
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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