aboutsummaryrefslogtreecommitdiffstats
path: root/cache/common.go
diff options
context:
space:
mode:
Diffstat (limited to 'cache/common.go')
-rw-r--r--cache/common.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/cache/common.go b/cache/common.go
new file mode 100644
index 0000000..bd2f1c3
--- /dev/null
+++ b/cache/common.go
@@ -0,0 +1,16 @@
+package cache
+
+import "gopkg.in/src-d/go-git.v4/plumbing"
+
+const (
+ Byte = 1 << (iota * 10)
+ KiByte
+ MiByte
+ GiByte
+)
+
+type Object interface {
+ Add(o plumbing.EncodedObject)
+ Get(k plumbing.Hash) plumbing.EncodedObject
+ Clear()
+}