2015-03-28 10:50:23 +00:00
|
|
|
package backend
|
|
|
|
|
|
|
|
import "os"
|
|
|
|
|
|
|
|
// Default paths for file-based backends (e.g. local)
|
|
|
|
var Paths = struct {
|
|
|
|
Data string
|
|
|
|
Snapshots string
|
|
|
|
Trees string
|
2015-04-26 13:48:35 +00:00
|
|
|
Index string
|
2015-03-28 10:50:23 +00:00
|
|
|
Locks string
|
|
|
|
Keys string
|
|
|
|
Temp string
|
|
|
|
Version string
|
|
|
|
ID string
|
|
|
|
}{
|
|
|
|
"data",
|
|
|
|
"snapshots",
|
|
|
|
"trees",
|
2015-04-26 13:48:35 +00:00
|
|
|
"index",
|
2015-03-28 10:50:23 +00:00
|
|
|
"locks",
|
|
|
|
"keys",
|
|
|
|
"tmp",
|
|
|
|
"version",
|
|
|
|
"id",
|
|
|
|
}
|
|
|
|
|
|
|
|
// Default modes for file-based backends
|
|
|
|
var Modes = struct{ Dir, File os.FileMode }{0700, 0600}
|