restic/internal/backend
greatroar f92ecf13c9 all: Move away from pkg/errors, easy cases
github.com/pkg/errors is no longer getting updates, because Go 1.13
went with the more flexible errors.{As,Is} function. Use those instead:
errors from pkg/errors already support the Unwrap interface used by 1.13
error handling. Also:

* check for io.EOF with a straight ==. That value should not be wrapped,
  and the chunker (whose error is checked in the cases changed) does not
  wrap it.
* Give custom Error methods pointer receivers, so there's no ambiguity
  when type-switching since the value type will no longer implement error.
* Make restic.ErrAlreadyLocked private, and rename it to
  alreadyLockedError to match the stdlib convention that error type
  names end in Error.
* Same with rest.ErrIsNotExist => rest.notExistError.
* Make s3.Backend.IsAccessDenied a private function.
2022-06-14 08:36:38 +02:00
..
azure upgrade_repo_v2: Use atomic replace for supported backends 2022-05-09 22:31:30 +02:00
b2 upgrade_repo_v2: Use atomic replace for supported backends 2022-05-09 22:31:30 +02:00
dryrun upgrade_repo_v2: Use atomic replace for supported backends 2022-05-09 22:31:30 +02:00
gs upgrade_repo_v2: Use atomic replace for supported backends 2022-05-09 22:31:30 +02:00
local Merge pull request #3704 from MichaelEischer/compression-migrations 2022-05-29 15:52:21 +02:00
location sftp: Limit concurrent backend operations 2022-04-09 12:21:38 +02:00
mem all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
rclone all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
rest all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
s3 all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
sftp all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
swift all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
test all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
testdata Moves files 2017-07-23 14:19:13 +02:00
backend_error.go backend: Improve Save() 2018-03-03 15:49:44 +01:00
backend_retry.go retrybackend: Fail operations when context is already canceled 2020-12-28 21:06:47 +01:00
backend_retry_test.go Add plumbing to calculate backend specific file hash for upload 2021-08-04 22:17:46 +02:00
doc.go Moves files 2017-07-23 14:19:13 +02:00
foreground.go Sanitize environment before starting backend processes (rclone, ssh) 2020-11-02 16:41:23 +01:00
foreground_sysv.go add go:build headers everywhere 2022-03-28 22:23:47 +02:00
foreground_test.go add go:build headers everywhere 2022-03-28 22:23:47 +02:00
foreground_unix.go add go:build headers everywhere 2022-03-28 22:23:47 +02:00
foreground_windows.go Fix rclone (scoop shim) and sftp issue due to detached console on Windows 2022-04-03 17:53:17 +08:00
http_transport.go Add --insecure-tls flag to disable SSL cert verification 2021-09-21 10:52:40 -04:00
layout.go all: Move away from pkg/errors, easy cases 2022-06-14 08:36:38 +02:00
layout_default.go Use "pack file" instead of "data file" (#2885) 2020-08-16 11:16:38 +02:00
layout_rest.go backend: Only return top-level files for most dirs 2017-12-14 19:14:16 +01:00
layout_s3legacy.go Use "pack file" instead of "data file" (#2885) 2020-08-16 11:16:38 +02:00
layout_test.go Wire context into backend layout detection 2020-10-09 22:37:24 +02:00
paths.go Use config file modes to derive new dir/file modes 2022-04-30 15:59:51 +02:00
semaphore.go uint cannot be less than zero 2020-09-05 10:07:16 +02:00
shell_split.go Refactor SplitShellStrings 2018-04-01 10:16:31 +02:00
shell_split_test.go Refactor SplitShellStrings 2018-04-01 10:16:31 +02:00
utils.go Fix O(n) backend list calls in FindFilteredSnapshots 2022-04-09 12:26:31 +02:00
utils_test.go copy/find/ls/recover/stats: Memorize snapshot listing before index 2022-04-09 12:26:30 +02:00