rclone/cmd/serve/restic
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 serve restic: implement object cache 2020-11-12 17:58:46 +00:00
cache_test.go serve restic: implement object cache 2020-11-12 17:58:46 +00:00
restic-test.sh fichier: 1fichier support - fixes #2908 2019-06-30 18:35:01 +01:00
restic.go serve restic: implement object cache 2020-11-12 17:58:46 +00:00
restic_appendonly_test.go config: make config file system pluggable 2021-03-11 17:29:26 +00:00
restic_privaterepos_test.go serve/restic: expose interfaces so that rclone can be used as a library from within restic 2020-07-26 12:06:47 +01:00
restic_test.go serve/restic: expose interfaces so that rclone can be used as a library from within restic 2020-07-26 12:06:47 +01:00
restic_utils_test.go build: drop support for go1.9 2019-09-04 10:23:48 +01:00
stdio_conn.go build: drop support for go1.9 2019-09-04 10:23:48 +01:00