From 498dbf7dc92e288641f1af1acc52704150e8a6c0 Mon Sep 17 00:00:00 2001 From: Máximo Cuadros Date: Sun, 12 Feb 2017 23:03:30 +0100 Subject: storage: git.Storer move to storage.Storer and module handling --- storage/storer.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 storage/storer.go (limited to 'storage/storer.go') 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) +} -- cgit