mirror of
https://github.com/restic/restic.git
synced 2025-08-12 11:47:43 +00:00
Rename Index interface to MasterIndex
The interface is now only implemented by repository.MasterIndex.
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user