utils

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDirectoryBack = errors.New("Attempted to go a directory back")
View Source
var ErrInvisibleCharacter = errors.New("Invisible character in input")

Functions

func ValidatePath

func ValidatePath(path string) error

Types

type Config

type Config struct {
	Provider string                      `yaml:"provider"`
	Extra    map[interface{}]interface{} `yaml:"extra"`
}

func (*Config) CreateProvider

func (c *Config) CreateProvider(pManager *plugin.Manager) (storage.StorageProvider, error)

type ValidateWrapper

type ValidateWrapper struct {
	// contains filtered or unexported fields
}

func (*ValidateWrapper) Delete

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

func (*ValidateWrapper) File

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

func (*ValidateWrapper) InitUser

func (w *ValidateWrapper) InitUser(ctx context.Context, user *models.User) error

func (*ValidateWrapper) ListDirectory

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

func (*ValidateWrapper) Mkdir

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

func (*ValidateWrapper) Move

func (w *ValidateWrapper) 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