Alexander Neumann
83d1a46526
Moves files
2017-07-23 14:19:13 +02:00
Alexander Neumann
f960831f10
crypto: Make Encrypt/Decrypt a method of *Key
2017-06-20 22:14:51 +02:00
Alexander Neumann
f676c0c41b
index: Add Each() to MasterIndex
2017-06-18 14:52:14 +02:00
Alexander Neumann
cf497c2728
Add context to restic packages
2017-06-04 14:35:14 +02:00
Alexander Neumann
edbd6ad584
Add fs.TempFile and fs.RemoveIfExists
2017-05-10 19:48:22 +02:00
Alexander Neumann
7797e084f9
checker: Pass on error loading an index
2017-02-11 14:22:14 +01:00
Alexander Neumann
1f81919d4a
checker: Reduce memory usage
...
benchmark old bytes new bytes delta
BenchmarkChecker-4 25551348 4288037 -83.22%
2017-02-06 21:19:27 +01:00
Alexander Neumann
b9bddeff39
Normalise the backend API
...
This makes the following changes, before:
type backend interface {
// Test a boolean value whether a File with the name and type exists.
Test(t FileType, name string) (bool, error)
// Remove removes a File with type t and name.
Remove(t FileType, name string) error
}
After:
type backend interface {
// Test a boolean value whether a File with the name and type exists.
Test(h Handle) (bool, error)
// Remove removes a File with type t and name.
Remove(h Handle) error
}
2017-01-26 22:02:22 +01:00
Alexander Neumann
212936eb52
Make backend.LoadAll() similar to ioutil.ReadAll()
2017-01-23 17:54:12 +01:00
Alexander Neumann
4eddcb344e
Update calls to debug.Log()
2016-09-28 19:56:03 +02:00
Alexander Neumann
04d6b5da2f
Remove more unused bits
2016-09-21 20:45:18 +02:00
Alexander Neumann
ffbe05af9b
Rework crypto, use restic.Repository everywhere
2016-09-03 21:10:25 +02:00
Alexander Neumann
84f95a09d7
Introduce LoadTreeBlob and LoadDataBlob
2016-09-03 21:10:25 +02:00
Alexander Neumann
bc42dbdf87
Create package restic/errors
2016-09-03 21:10:24 +02:00
Alexander Neumann
5764b55aee
Rename Node.FileType -> Type
2016-09-03 21:10:24 +02:00
Alexander Neumann
5e3a41dbd2
Rename struct member FileType -> Type
2016-09-03 21:10:24 +02:00
Alexander Neumann
3695ba5882
Tests pass for restic/
2016-09-03 21:10:24 +02:00
Alexander Neumann
cc6a8b6e15
wip
2016-09-03 21:10:24 +02:00
Alexander Neumann
82c2dafb23
Copy interfaces and basic types to package restic/
2016-09-03 21:10:24 +02:00
Alexander Neumann
b06845c545
Always use errors.Cause() for testing error values
2016-08-29 19:52:03 +02:00
Alexander Neumann
72aa6be38d
Replace fmt.Errorf() by errors.Errorf()
2016-08-29 19:23:50 +02:00
Alexander Neumann
444a268ce0
Replace stdlib errors with github.com/pkg/errors
2016-08-29 19:23:50 +02:00
Alexander Neumann
88634dac3a
Remove check for filemode 0
2016-08-28 20:04:09 +02:00
Alexander Neumann
de88fb2022
Simplify pack.List
2016-08-25 22:25:55 +02:00
Alexander Neumann
9f752b8306
Rework function for listing packs
2016-08-25 21:08:16 +02:00
Alexander Neumann
94d157d97a
Introduce interface pack.Loader
2016-08-16 21:30:14 +02:00
Alexander Neumann
6b7ddf1b03
Don't report valid types as invalid
...
Closes #528
2016-07-20 20:46:57 +02:00
Alexander Neumann
20afed4058
Checker: handle symlinks
2016-05-08 23:16:17 +02:00
Alexander Neumann
6655511ab8
checker: test file mode
2016-05-08 12:25:01 +02:00
Alexander Neumann
a996dbb9d6
check: Add more checks for nodes
2016-05-08 12:25:01 +02:00
Alexander Neumann
9386bfbafa
checker: Do not use reference in checker errors
2016-02-27 13:10:35 +01:00
Alexander Neumann
a613e23e34
checker: Use backend.IDSet instead of custom struct
2016-02-27 13:10:35 +01:00
Alexander Neumann
4ae16d7661
repository: Use backend.ID to load index
...
This commit uses ParallelWorkFuncParseID() to load all indexes and
ignores file names with invalid format.
This fixes #475 .
2016-02-24 22:41:32 +01:00
Alexander Neumann
c0bd660a9e
Rename package
...
* github.com/restic/restic -> restic
2016-02-20 17:31:21 +01:00