Documentation ¶
Index ¶
- type File
- type StorageProvider
- func (s *StorageProvider) Delete(ctx context.Context, user *models.User, fullpath string) error
- func (s *StorageProvider) File(ctx context.Context, user *models.User, fullpath string) (storage.File, error)
- func (s *StorageProvider) InitUser(ctx context.Context, user *models.User) error
- func (s *StorageProvider) ListDirectory(ctx context.Context, user *models.User, dir string) (<-chan storage.FileInfo, error)
- func (s *StorageProvider) Mkdir(ctx context.Context, user *models.User, dir string) error
- func (s *StorageProvider) Move(ctx context.Context, user *models.User, src, dst string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageProvider ¶
type StorageProvider struct {
RootPath string `yaml:"path"`
}
func NewStorageProvider ¶
func NewStorageProvider(dir string) *StorageProvider
func (*StorageProvider) ListDirectory ¶
Click to show internal directories.
Click to hide internal directories.