package
0.9.7
Repository: https://github.com/quinn/restic.git
Documentation: pkg.go.dev

# Functions

AddKey adds a new key to an already existing repository.
DecodeIndex loads and unserializes an index from rd.
DecodeOldIndex loads and unserializes an index in the old format from rd.
DownloadAndHash is all-in-one helper to download content of the file at h to a temporary filesystem location and calculate ID of the contents.
LoadIndex loads the index id from backend and returns it.
LoadIndexWithDecoder loads the index and decodes it with fn.
LoadKey loads a key from the backend.
New returns a new repository with backend be.
NewIndex returns a new index.
NewMasterIndex creates a new master index.
OpenKey tries do decrypt the key specified by name with the given password.
Repack takes a list of packs together with a list of blobs contained in these packs.
RunWorkers runs count instances of workerFunc using an errgroup.Group.
SaveIndex saves an index in the repository.
SearchKey tries to decrypt at most maxKeys keys in the backend with the given password.
TestBackend returns a fully configured in-memory backend.
TestOpenLocal opens a local repository.
TestRepository returns a repository initialized with a test password on an in-memory backend.
TestRepositoryWithBackend returns a repository initialized with a test password.
TestUseLowSecurityKDFParameters configures low-security KDF parameters for testing.

# Variables

ErrMaxKeysReached is returned when the maximum number of keys was checked and no key could be found.
ErrNoKeyFound is returned when no key for the repository could be decrypted.
ErrOldIndexFormat means an index with the old format was detected.
IndexFull returns true iff the index is "full enough" to be saved as a preliminary index.
KDFMemory limits the memory the KDF is allowed to use.
KDFTimeout specifies the maximum runtime for the KDF.
Params tracks the parameters used for the KDF.

# Structs

Index holds lookup tables for id -> pack.
Key represents an encrypted master key for a repository.
MasterIndex is a collection of indexes and IDs of chunks that are in the process of being saved.
Packer holds a pack.Packer together with a hash writer.
Repository is used to access a repository in a backend.

# Interfaces

Loader allows loading data from a backend.
Saver implements saving data in a backend.