aboutsummaryrefslogtreecommitdiff
path: root/storage/local
diff options
context:
space:
mode:
Diffstat (limited to 'storage/local')
-rw-r--r--storage/local/local.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/local/local.go b/storage/local/local.go
index 7dc59cb..ae39eb5 100644
--- a/storage/local/local.go
+++ b/storage/local/local.go
@@ -20,6 +20,13 @@ func objectDir(id objects.ObjectId) string {
return joinPath(string(id.Algo), hex.EncodeToString(id.Sum[0:1]))
}
+// LocalStorage is a storage implementation that saves your objects on your local filesystem.
+//
+// Example config:
+//
+// [storage.local_test]
+// method="local"
+// path="~/.local/share/petrific" # Save the objects here
type LocalStorage struct {
Path string
index storage.Index