aboutsummaryrefslogtreecommitdiffstats
path: root/storage/storer.go
diff options
context:
space:
mode:
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)
+}