mirror of
https://github.com/restic/restic.git
synced 2025-03-13 20:00:51 +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:
parent
9a1b3cb5d9
commit
e2dc5034d3
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user