Documentation ¶
Index ¶
- Variables
- func ValidatePath(path string) error
- type Config
- type ValidateWrapper
- func (w *ValidateWrapper) Delete(ctx context.Context, user *models.User, fullpath string) error
- func (w *ValidateWrapper) File(ctx context.Context, user *models.User, fullpath string) (storage.File, error)
- func (w *ValidateWrapper) InitUser(ctx context.Context, user *models.User) error
- func (w *ValidateWrapper) ListDirectory(ctx context.Context, user *models.User, path string) (<-chan storage.FileInfo, error)
- func (w *ValidateWrapper) Mkdir(ctx context.Context, user *models.User, path string) error
- func (w *ValidateWrapper) Move(ctx context.Context, user *models.User, src string, dst string) error
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 ¶
Types ¶
type Config ¶
type Config struct { Provider string `yaml:"provider"` Extra map[interface{}]interface{} `yaml:"extra"` }
func (*Config) CreateProvider ¶
Click to show internal directories.
Click to hide internal directories.