Documentation ¶
Index ¶
- Variables
- func Firewall(provider storage.StorageProvider, directory string) storage.StorageProvider
- type FirewallStorageProvider
- func (f *FirewallStorageProvider) Delete(ctx context.Context, user *models.User, fullpath string) error
- func (f *FirewallStorageProvider) File(ctx context.Context, user *models.User, fullpath string) (storage.File, error)
- func (f *FirewallStorageProvider) InitUser(ctx context.Context, user *models.User) error
- func (f *FirewallStorageProvider) ListDirectory(ctx context.Context, user *models.User, path string) (<-chan storage.FileInfo, error)
- func (f *FirewallStorageProvider) Mkdir(ctx context.Context, user *models.User, path string) error
- func (f *FirewallStorageProvider) Move(ctx context.Context, user *models.User, src string, dst string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrReadOnly = errors.New("Readonly storage")
Functions ¶
func Firewall ¶
func Firewall(provider storage.StorageProvider, directory string) storage.StorageProvider
Types ¶
type FirewallStorageProvider ¶
type FirewallStorageProvider struct {
// contains filtered or unexported fields
}
func (*FirewallStorageProvider) ListDirectory ¶
Click to show internal directories.
Click to hide internal directories.