aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/cache/common.go
diff options
context:
space:
mode:
authorAntonio Jesus Navarro Perez <antonio@sourced.tech>2017-02-21 14:53:30 +0100
committerAntonio Jesus Navarro Perez <antonio@sourced.tech>2017-02-21 14:55:58 +0100
commit6e15f9cb0dbac68992eb242282e725784fe72b32 (patch)
tree04246d19a1c4814752599ff8d02da35c09f1dc20 /plumbing/cache/common.go
parent0b8b8da617d5a077f282e57d0300dc106a604236 (diff)
downloadgo-git-6e15f9cb0dbac68992eb242282e725784fe72b32.tar.gz
cache: move package to plumbing
Because cache package is only intended to be used at internal level, we move it to the plumbing package.
Diffstat (limited to 'plumbing/cache/common.go')
-rw-r--r--plumbing/cache/common.go16
1 files changed, 16 insertions, 0 deletions
diff --git a/plumbing/cache/common.go b/plumbing/cache/common.go
new file mode 100644
index 0000000..33fb2bc
--- /dev/null
+++ b/plumbing/cache/common.go
@@ -0,0 +1,16 @@
+package cache
+
+import "srcd.works/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()
+}