rclone/fs/config
Nick Craig-Wood 1fed2d910c config: make config file system pluggable
If you are using rclone a library you can decide to use the rclone
config file system or not by calling

    configfile.LoadConfig(ctx)

If you don't you will need to set `config.Data` to an implementation
of `config.Storage`.

Other changes
- change interface of config.FileGet to remove unused default
- remove MustValue from config.Storage interface
- change GetValue to return string or bool like elsewhere in rclone
- implement a default config file system which panics with helpful error
- implement getWithDefault to replace the removed MustValue
- don't embed goconfig.ConfigFile so we can change the methods
2021-03-11 17:29:26 +00:00
..
configfile config: make config file system pluggable 2021-03-11 17:29:26 +00:00
configflags feat: add multiple paths support to --compare-dest and --copy-dest flag 2021-02-16 18:17:04 +00:00
configmap all: fix go-critic linter suggestions 2018-08-06 21:14:03 +01:00
configstruct build: fix up package paths after repo move 2019-07-28 18:47:38 +01:00
flags flags: improve error message when reading environment vars #4888 2020-12-28 12:26:23 +00:00
obscure Add tests for reveal functions 2018-08-07 20:51:50 +01:00
testdata Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
config_internal_test.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
config_read_password.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
config_read_password_unsupported.go Break the fs package up into smaller parts. 2018-01-15 17:51:14 +00:00
config_test.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
crypt.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
crypt_test.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
default_storage.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
rc.go config: Wrap config library in an interface 2021-03-11 17:29:26 +00:00
rc_test.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00