Documentation ¶
Index ¶
- func AddFile(ctx context.Context, tx *dgo.Txn, file *FileInfo) (map[string]interface{}, error)
- func InitStore()
- type CloudStore
- type FileInfo
- type Stow
- func (fs *Stow) Delete(ctx context.Context, id string) (string, interface{}, error)
- func (fs *Stow) DeleteObject(ctx context.Context, path string) error
- func (fs *Stow) Download(ctx context.Context, id string, w io.Writer) error
- func (fs *Stow) DownloadFile(ctx context.Context, file *FileInfo, w io.Writer) error
- func (fs *Stow) EnsureBucket() error
- func (fs *Stow) Upload(ctx context.Context, path, mediaType string, r io.ReadCloser) (map[string]interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CloudStore ¶
type CloudStore interface { Download(ctx context.Context, id string, w io.Writer) error DownloadFile(ctx context.Context, file *FileInfo, w io.Writer) error Upload(ctx context.Context, path, mediaType string, r io.ReadCloser) (map[string]interface{}, error) Delete(ctx context.Context, id string) (string, interface{}, error) DeleteObject(ctx context.Context, path string) error }
CloudStore is store of any BLOB objects
func NewCloudStore ¶
func NewCloudStore() CloudStore
NewCloudStore creates new instance of cloud store
type FileInfo ¶
type Stow ¶
type Stow struct {
// contains filtered or unexported fields
}
Stow is cloud object store implemented using https://github.com/graymeta/stow
func (*Stow) DeleteObject ¶
DeleteObject by given path
func (*Stow) DownloadFile ¶
DownloadFile downloads given file
Click to show internal directories.
Click to hide internal directories.