aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2017-11-28 22:38:21 +0100
committerLaria Carolin Chabowski <laria@laria.me>2017-11-28 22:38:21 +0100
commit0a4929876c1606abf2a599c6561affba368ab5fb (patch)
tree4c352b218e5bfcd7dd94b1b090643b0b7be2ccd6 /config
parent61b52fd69f2750ad55a2740cae17f8b629c7da69 (diff)
downloadpetrific-0a4929876c1606abf2a599c6561affba368ab5fb.tar.gz
petrific-0a4929876c1606abf2a599c6561affba368ab5fb.tar.bz2
petrific-0a4929876c1606abf2a599c6561affba368ab5fb.zip
Add caching
Diffstat (limited to 'config')
-rw-r--r--config/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go
index b643477..7deef69 100644
--- a/config/config.go
+++ b/config/config.go
@@ -11,6 +11,9 @@
// # This config key defines the default storage backend, as defined below ([storage.local_compressed])
// default_storage = "local_compressed"
//
+// # This defines the location of the cache file (can speed up creating backups; can be left out)
+// cache_path = "~/.cache/petrific.cache"
+//
// [signing]
// # Use this GPG key to sign snapshots
// key = "0123456789ABCDEF0123456789ABCDEF01234567"
@@ -55,6 +58,7 @@ var (
)
type Config struct {
+ CachePath string `toml:"cache_path,omitempty"`
DefaultStorage string `toml:"default_storage"`
Signing struct {
Key string