Documentation
¶
Index ¶
- Variables
- type LocalStorage
- func (s *LocalStorage) Delete(user string, name string, id string) error
- func (s *LocalStorage) Download(user string, name string, id string) ([]byte, error)
- func (s *LocalStorage) DownloadFile(user string, name string, id string, path string) ([]byte, error)
- func (s *LocalStorage) Upload(user string, name string, id string, reader io.Reader) error
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = errors.New("Not found")
Functions ¶
This section is empty.
Types ¶
type LocalStorage ¶
type LocalStorage struct {
// contains filtered or unexported fields
}
func NewLocalStorage ¶
func NewLocalStorage(rootDir string) (*LocalStorage, error)
func (*LocalStorage) Delete ¶
func (s *LocalStorage) Delete(user string, name string, id string) error
func (*LocalStorage) DownloadFile ¶
type Storage ¶
type Storage interface { Upload(user string, name string, id string, reader io.Reader) error Download(user string, name string, id string) ([]byte, error) // TODO(andreas): return reader DownloadFile(user string, name string, id string, path string) ([]byte, error) Delete(user string, name string, id string) error }
Click to show internal directories.
Click to hide internal directories.