rclone/backend/cache
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
..
cache.go fs: add Shutdown optional method for backends 2020-11-27 17:35:01 +00:00
cache_internal_test.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
cache_test.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
cache_unsupported.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
cache_upload_test.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
directory.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
handle.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
object.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
plex.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
storage_memory.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
storage_persistent.go build: make rclone build with wasm 2020-08-10 17:32:21 +01:00
utils_test.go cache: move methods used for testing into test file 2020-03-16 18:41:32 +00:00