Documentation ¶
Index ¶
- func NewStorage(conf storage.ConfigStorage) (storage.IStorage, error)
- type Local
- func (s *Local) CreateDir(dirName string) error
- func (s *Local) DeleteFile(objName string) error
- func (s *Local) GetFile(objName string) (io.Reader, error)
- func (s *Local) GetFileTo(objName string, w io.Writer) error
- func (s *Local) GetThumbUrl(objName string) (link string, err error)
- func (s *Local) GetThumbUrls(objNames []string) (links []string, err error)
- func (s *Local) GetUrl(objName string) (link string, err error)
- func (s *Local) GetUrls(objNames []string) (links []string, err error)
- func (s *Local) PushFile(objName string, reader io.Reader) (link string, err error)
- func (s *Local) ScanDst(dst string) ([]map[string]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStorage ¶
func NewStorage(conf storage.ConfigStorage) (storage.IStorage, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.