aboutsummaryrefslogblamecommitdiffstats
path: root/plumbing/cache/common.go
blob: 8da5fb85ad12944f77f448754b9922f943cc3968 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11

             
                                      

       
                                        




              

                   




                                                   
package cache

import "srcd.works/go-git.v4/plumbing"

const (
	Byte FileSize = 1 << (iota * 10)
	KiByte
	MiByte
	GiByte
)

type FileSize int64

type Object interface {
	Add(o plumbing.EncodedObject)
	Get(k plumbing.Hash) plumbing.EncodedObject
	Clear()
}