aboutsummaryrefslogtreecommitdiffstats
path: root/storage/storer.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-02-12 23:03:30 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-02-12 23:03:30 +0100
commit498dbf7dc92e288641f1af1acc52704150e8a6c0 (patch)
tree7be1fab61a2eead003f07249c0312f71decaccf7 /storage/storer.go
parent87a84b1cb90149cf81e76be46811341a30e4a367 (diff)
downloadgo-git-498dbf7dc92e288641f1af1acc52704150e8a6c0.tar.gz
storage: git.Storer move to storage.Storer and module handling
Diffstat (limited to 'storage/storer.go')
-rw-r--r--storage/storer.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/storage/storer.go b/storage/storer.go
new file mode 100644
index 0000000..0a2c256
--- /dev/null
+++ b/storage/storer.go
@@ -0,0 +1,23 @@
+package storage
+
+import (
+ "srcd.works/go-git.v4/config"
+ "srcd.works/go-git.v4/plumbing/storer"
+)
+
+// Storer is a generic storage of objects, references and any information
+// related to a particular repository. The package srcd.works/go-git.v4/storage
+// contains two implementation a filesystem base implementation (such as `.git`)
+// and a memory implementations being ephemeral
+type Storer interface {
+ storer.EncodedObjectStorer
+ storer.ReferenceStorer
+ storer.ShallowStorer
+ storer.IndexStorer
+ config.ConfigStorer
+ ModuleStorer
+}
+
+type ModuleStorer interface {
+ Module(name string) (Storer, error)
+}