Documentation ¶
Index ¶
- type Backend
- func (weedFs *Backend) AddFile(ctx *juliet.Context, upload *common.Upload, file *common.File, ...) (backendDetails map[string]interface{}, err error)
- func (weedFs *Backend) GetFile(ctx *juliet.Context, upload *common.Upload, id string) (reader io.ReadCloser, err error)
- func (weedFs *Backend) RemoveFile(ctx *juliet.Context, upload *common.Upload, id string) (err error)
- func (weedFs *Backend) RemoveUpload(ctx *juliet.Context, upload *common.Upload) (err error)
- type BackendConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct {
Config *BackendConfig
}
Backend object
func NewWeedFsBackend ¶
NewWeedFsBackend instantiate a new WeedFS Data Backend from configuration passed as argument
func (*Backend) AddFile ¶
func (weedFs *Backend) AddFile(ctx *juliet.Context, upload *common.Upload, file *common.File, fileReader io.Reader) (backendDetails map[string]interface{}, err error)
AddFile implementation for WeedFS Data Backend
func (*Backend) GetFile ¶
func (weedFs *Backend) GetFile(ctx *juliet.Context, upload *common.Upload, id string) (reader io.ReadCloser, err error)
GetFile implementation for WeedFS Data Backend
type BackendConfig ¶
BackendConfig describes configuration for WeedFS data backend
func NewWeedFsBackendConfig ¶
func NewWeedFsBackendConfig(config map[string]interface{}) (bc *BackendConfig)
NewWeedFsBackendConfig instantiate a new default configuration and override it with configuration passed as argument
Click to show internal directories.
Click to hide internal directories.