aboutsummaryrefslogtreecommitdiffstats
path: root/cache/common.go
blob: bd2f1c3943a40a1dd574d7befeaaffb2af0328f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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()
}