localfs

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 33 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"`
	DataTransfersFolder string `mapstructure:"data_transfers_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.

func (*Config) ApplyDefaults added in v1.25.0

func (c *Config) ApplyDefaults()

Jump to

Keyboard shortcuts

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