restic/file: Use FileType for all File constants

The data type of a variable is only carried on when using iota.
This commit is contained in:
Michael Eischer 2020-03-06 23:51:07 +01:00
parent 9a1b3cb5d9
commit e2dc5034d3
1 changed files with 5 additions and 5 deletions

View File

@ -12,11 +12,11 @@ type FileType string
// These are the different data types a backend can store.
const (
PackFile FileType = "data" // use data, as packs are stored under /data in repo
KeyFile = "key"
LockFile = "lock"
SnapshotFile = "snapshot"
IndexFile = "index"
ConfigFile = "config"
KeyFile FileType = "key"
LockFile FileType = "lock"
SnapshotFile FileType = "snapshot"
IndexFile FileType = "index"
ConfigFile FileType = "config"
)
// Handle is used to store and access data in a backend.