2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-22 19:08:55 +00:00
restic/internal/backend/rest
Michael Eischer f903db492c backend: let ParseConfig return a Config pointer
In order to change the backend initialization in `global.go` to be able
to generically call cfg.ApplyEnvironment() for supported backends, the
`interface{}` returned by `ParseConfig` must contain a pointer to the
configuration.

An alternative would be to use reflection to convert the type from
`interface{}(Config)` to `interface{}(*Config)` (from value to pointer
type). However, this would just complicate the type mess further.
2023-06-07 22:31:15 +02:00
..
config_test.go backend: use generic implementation for ParseConfig tests 2023-06-07 22:30:35 +02:00
config.go backend: let ParseConfig return a Config pointer 2023-06-07 22:31:15 +02:00
rest_int_test.go Don't shadow builtins 2023-05-18 21:15:45 +02:00
rest_test.go backend: let ParseConfig return a Config pointer 2023-06-07 22:31:15 +02:00
rest.go rest: remove unused parameter 2023-05-18 21:17:53 +02:00