localfs

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalFS

func NewLocalFS(c *Config) (storage.FS, error)

NewLocalFS returns a storage.FS interface implementation that controls then local filesystem.

Types

type Config

type Config struct {
	Root          string `mapstructure:"root"`
	DisableHome   bool   `mapstructure:"disable_home"`
	UserLayout    string `mapstructure:"user_layout"`
	ShareFolder   string `mapstructure:"share_folder"`
	Uploads       string `mapstructure:"uploads"`
	DataDirectory string `mapstructure:"data_directory"`
	RecycleBin    string `mapstructure:"recycle_bin"`
	Versions      string `mapstructure:"versions"`
	Shadow        string `mapstructure:"shadow"`
	References    string `mapstructure:"references"`
}

Config holds the configuration details for the local fs.

Jump to

Keyboard shortcuts

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