diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-10-03 14:59:45 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-10-03 15:01:38 +0200 |
commit | 4de510778b6e55a2238374834d00b03726da76d4 (patch) | |
tree | 7b2d8b8f4db5d0bc2b81c8dfb31921fa59d45c6d /config | |
parent | db0c023fd0d756912c3f575c6ac65e99fda573cc (diff) | |
download | petrific-4de510778b6e55a2238374834d00b03726da76d4.tar.gz petrific-4de510778b6e55a2238374834d00b03726da76d4.tar.bz2 petrific-4de510778b6e55a2238374834d00b03726da76d4.zip |
Documentation
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/config/config.go b/config/config.go index 46d1b47..b643477 100644 --- a/config/config.go +++ b/config/config.go @@ -1,3 +1,33 @@ +// Package config provides methods for configuring the petrific binary. +// +// The configuration file is located in `$XDG_CONFIG_HOME/petrific/config.toml`, +// where `$XDG_CONFIG_HOME` is typically `~/.config`. +// +// The configuration file is a TOML file, its main purpose is to define the used +// storage backends, it also defines which GPG key to use for snapshot signing. +// +// Here is an example configuration file: +// +// # This config key defines the default storage backend, as defined below ([storage.local_compressed]) +// default_storage = "local_compressed" +// +// [signing] +// # Use this GPG key to sign snapshots +// key = "0123456789ABCDEF0123456789ABCDEF01234567" +// +// # The storage.* sections define storage backends. +// # Every section must contain the key `method`, the other keys depend on the selected method. +// # For more details see the documentation for ../storage +// +// [storage.local] +// method="local" +// path="~/.local/share/petrific" +// +// [storage.local_compressed] +// method="filter" +// base="local" +// encode=["zlib-flate", "-compress"] +// decode=["zlib-flate", "-uncompress"] package config import ( |