1
mirror of https://github.com/rclone/rclone synced 2024-12-26 18:23:45 +01:00
rclone/cmd/serve
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
..
dlna config: make config file system pluggable 2021-03-11 17:29:26 +00:00
ftp build: remove go1.13 build constraints 2021-02-03 17:46:08 +00:00
http config: make config file system pluggable 2021-03-11 17:29:26 +00:00
httplib rc: prefer actual listener address if using ":port" or "addr:0" only 2020-12-26 16:28:54 +00:00
proxy fs: Add context to NewFs #3257 #4685 2020-11-09 18:05:54 +00:00
restic config: make config file system pluggable 2021-03-11 17:29:26 +00:00
servetest servetest: add -sub-run flag for running a subset of the backend tests 2020-11-10 16:47:25 +00:00
sftp serve sftp: fix authentication on one connection blocking others - fixes #4882 2021-01-06 15:34:07 +00:00
webdav filter: deglobalise to put filter config into the context #4685 2020-11-27 17:28:42 +00:00
serve.go docs: spelling: e.g. 2020-10-28 18:16:23 +00:00