firewall

package
v0.0.0-...-5e8511f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

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) Delete

func (f *FirewallStorageProvider) Delete(ctx context.Context, user *models.User, fullpath string) error

func (*FirewallStorageProvider) File

func (f *FirewallStorageProvider) File(ctx context.Context, user *models.User, fullpath string) (storage.File, error)

func (*FirewallStorageProvider) InitUser

func (f *FirewallStorageProvider) InitUser(ctx context.Context, user *models.User) error

func (*FirewallStorageProvider) ListDirectory

func (f *FirewallStorageProvider) ListDirectory(ctx context.Context, user *models.User, path string) (<-chan storage.FileInfo, error)

func (*FirewallStorageProvider) Mkdir

func (f *FirewallStorageProvider) Mkdir(ctx context.Context, user *models.User, path string) error

func (*FirewallStorageProvider) Move

func (f *FirewallStorageProvider) Move(ctx context.Context, user *models.User, src string, dst string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL