mirror of
https://github.com/restic/restic.git
synced 2026-11-23 13:52:39 +00:00
b2/s3: Move config validation from ApplyEnvironment to Open/Create
Conceptually the backend configuration should be validated when creating or opening the backend, but not when filling in information from environment variables into the configuration.
This commit is contained in:
1 parent
19ac12d95b
commit
3a3cf608f5
12 files changed
+23
-45
No files matched your search
@@ -83,5 +83,5 @@ type FileInfo struct {
|
||||
|
||||
// ApplyEnvironmenter fills in a backend configuration from the environment
|
||||
type ApplyEnvironmenter interface {
|
||||
ApplyEnvironment(prefix string) error
|
||||
ApplyEnvironment(prefix string)
|
||||
}
|
||||
Reference in new issue
Block a user