2
2
mirror of https://github.com/octoleo/restic.git synced 2024-06-07 03:20:49 +00:00

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

View File

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