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

View File

@@ -355,12 +355,12 @@ func (r *Repository) Backend() restic.Backend {
}
// Index returns the currently used MasterIndex.
func (r *Repository) Index() restic.Index {
func (r *Repository) Index() restic.MasterIndex {
return r.idx
}
// SetIndex instructs the repository to use the given index.
func (r *Repository) SetIndex(i restic.Index) error {
func (r *Repository) SetIndex(i restic.MasterIndex) error {
r.idx = i.(*MasterIndex)
ids := restic.NewIDSet()