Versions in this module Expand all Collapse all v0 v0.1.0 Sep 22, 2023 Changes in this version + var IndexFull = func(idx *Index, compress bool) bool + func ForAllIndexes(ctx context.Context, repo restic.Repository, ...) error + func SaveIndex(ctx context.Context, repo restic.SaverUnpacked, index *Index) (restic.ID, error) + type EachByPackResult struct + Blobs []restic.Blob + PackID restic.ID + type Index struct + func DecodeIndex(buf []byte, id restic.ID) (idx *Index, oldFormat bool, err error) + func NewIndex() *Index + func TestMergeIndex(t testing.TB, mi *MasterIndex) ([]*Index, int) + func (idx *Index) AddToSupersedes(ids ...restic.ID) error + func (idx *Index) Dump(w io.Writer) error + func (idx *Index) Each(ctx context.Context, fn func(restic.PackedBlob)) + func (idx *Index) EachByPack(ctx context.Context, packBlacklist restic.IDSet) <-chan EachByPackResult + func (idx *Index) Encode(w io.Writer) error + func (idx *Index) Final() bool + func (idx *Index) Finalize() + func (idx *Index) Has(bh restic.BlobHandle) bool + func (idx *Index) IDs() (restic.IDs, error) + func (idx *Index) Lookup(bh restic.BlobHandle, pbs []restic.PackedBlob) []restic.PackedBlob + func (idx *Index) LookupSize(bh restic.BlobHandle) (plaintextLength uint, found bool) + func (idx *Index) Packs() restic.IDSet + func (idx *Index) SetID(id restic.ID) error + func (idx *Index) StorePack(id restic.ID, blobs []restic.Blob) + func (idx *Index) Supersedes() restic.IDs + type MasterIndex struct + func NewMasterIndex() *MasterIndex + func (mi *MasterIndex) AddPending(bh restic.BlobHandle) bool + func (mi *MasterIndex) Each(ctx context.Context, fn func(restic.PackedBlob)) + func (mi *MasterIndex) Has(bh restic.BlobHandle) bool + func (mi *MasterIndex) IDs() restic.IDSet + func (mi *MasterIndex) Insert(idx *Index) + func (mi *MasterIndex) ListPacks(ctx context.Context, packs restic.IDSet) <-chan restic.PackBlobs + func (mi *MasterIndex) Lookup(bh restic.BlobHandle) (pbs []restic.PackedBlob) + func (mi *MasterIndex) LookupSize(bh restic.BlobHandle) (uint, bool) + func (mi *MasterIndex) MarkCompressed() + func (mi *MasterIndex) MergeFinalIndexes() error + func (mi *MasterIndex) Packs(packBlacklist restic.IDSet) restic.IDSet + func (mi *MasterIndex) Save(ctx context.Context, repo restic.SaverUnpacked, packBlacklist restic.IDSet, ...) (obsolete restic.IDSet, err error) + func (mi *MasterIndex) SaveFullIndex(ctx context.Context, r restic.SaverUnpacked) error + func (mi *MasterIndex) SaveIndex(ctx context.Context, r restic.SaverUnpacked) error + func (mi *MasterIndex) StorePack(id restic.ID, blobs []restic.Blob)