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 }
Click to show internal directories.
Click to hide internal directories.