Rename Index interface to MasterIndex

The interface is now only implemented by repository.MasterIndex.
This commit is contained in:
Michael Eischer
2020-07-25 21:19:46 +02:00
parent 9d1fb94c6c
commit c847aace35
4 changed files with 9 additions and 9 deletions
+4 -4
View File
@@ -15,9 +15,9 @@ type Repository interface {
Key() *crypto.Key
SetIndex(Index) error
SetIndex(MasterIndex) error
Index() Index
Index() MasterIndex
SaveFullIndex(context.Context) error
SaveIndex(context.Context) error
LoadIndex(context.Context) error
@@ -57,8 +57,8 @@ type Lister interface {
List(context.Context, FileType, func(FileInfo) error) error
}
// Index keeps track of the blobs are stored within files.
type Index interface {
// MasterIndex keeps track of the blobs are stored within files.
type MasterIndex interface {
Has(ID, BlobType) bool
Lookup(ID, BlobType) []PackedBlob
Count(BlobType) uint