1
0
mirror of https://github.com/restic/restic.git synced 2024-07-20 11:27:33 +02:00
restic/internal/backend/local
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: let ParseConfig return a Config pointer 2023-06-07 22:31:15 +02:00
config.go backend: let ParseConfig return a Config pointer 2023-06-07 22:31:15 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
layout_test.go test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
local_internal_test.go test: Use testing.T.Cleanup to remove tempdirs 2022-12-09 14:23:55 +01:00
local_test.go backend: let ParseConfig return a Config pointer 2023-06-07 22:31:15 +02:00
local_unix.go backend/local: Ignore ENOTTY for fsync on Mac 2022-11-11 22:51:51 +01:00
local_windows.go backend/local: Ignore ENOTTY for fsync on Mac 2022-11-11 22:51:51 +01:00
local.go Use _ as parameter name for unused Context 2023-05-18 21:15:45 +02:00