mirror of
https://github.com/restic/restic.git
synced 2026-09-18 18:27:58 +00:00
Rename Index interface to MasterIndex
The interface is now only implemented by repository.MasterIndex.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user