Documentation ¶
Index ¶
- Variables
- type FileSimpleStorage
- func (fss *FileSimpleStorage) GetObject(obj *Object) (*Object, error)
- func (fss *FileSimpleStorage) GetObjectContent(obj *Object) (chan []byte, error)
- func (fss *FileSimpleStorage) ListObjects(obj *Object) ([]*Object, error)
- func (fss *FileSimpleStorage) PutObject(obj *Object, reader io.Reader) error
- func (fss *FileSimpleStorage) RemoveObject(obj *Object) error
- func (fss *FileSimpleStorage) RenameObject(src, dst *Object) error
- type FileSimpleStorageOption
- type Object
- type SimpleStorage
- type SimpleStorageFactory
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrInvalidSimpleStorageDriver = errors.New("invalid simple storage driver")
)
Functions ¶
This section is empty.
Types ¶
type FileSimpleStorage ¶
type FileSimpleStorage struct {
// contains filtered or unexported fields
}
func (*FileSimpleStorage) GetObject ¶
func (fss *FileSimpleStorage) GetObject(obj *Object) (*Object, error)
func (*FileSimpleStorage) GetObjectContent ¶
func (fss *FileSimpleStorage) GetObjectContent(obj *Object) (chan []byte, error)
func (*FileSimpleStorage) ListObjects ¶
func (fss *FileSimpleStorage) ListObjects(obj *Object) ([]*Object, error)
func (*FileSimpleStorage) PutObject ¶
func (fss *FileSimpleStorage) PutObject(obj *Object, reader io.Reader) error
func (*FileSimpleStorage) RemoveObject ¶
func (fss *FileSimpleStorage) RemoveObject(obj *Object) error
func (*FileSimpleStorage) RenameObject ¶
func (fss *FileSimpleStorage) RenameObject(src, dst *Object) error
type FileSimpleStorageOption ¶
type FileSimpleStorageOption struct {
Home string
}
func NewFileSimpleStorageOption ¶
func NewFileSimpleStorageOption() *FileSimpleStorageOption
type Object ¶
type SimpleStorage ¶
type SimpleStorage interface { PutObject(obj *Object, reader io.Reader) error RemoveObject(obj *Object) error RenameObject(src, dst *Object) error GetObject(obj *Object) (*Object, error) GetObjectContent(obj *Object) (chan []byte, error) ListObjects(obj *Object) ([]*Object, error) }
func NewSimpleStorage ¶
func NewSimpleStorage(name string, args ...interface{}) (SimpleStorage, error)
type SimpleStorageFactory ¶
type SimpleStorageFactory func(...interface{}) (SimpleStorage, error)
Click to show internal directories.
Click to hide internal directories.