package
0.8.3
Repository: https://github.com/mckael/restic.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
Package gs provides a restic backend for Google Cloud Storage.
Package local implements repository storage in a local directory.
Package location implements parsing the restic repository location from a string.
No description provided by the author
No description provided by the author
No description provided by the author
Package sftp implements repository storage in a directory on a remote server via the sftp protocol.
No description provided by the author
Package test contains a test suite with benchmarks for restic backends.

# Functions

DefaultLoad implements Backend.Load using lower-level openReader func.
DetectLayout tries to find out which layout is used in a local (or sftp) filesystem at the given path.
LimitReadCloser returns a new reader wraps r in an io.LimitReader, but also exposes the Close() method.
LoadAll reads all data stored in the backend for the handle.
NewErrorBackend wraps be with a backend that returns errors according to given probabilities.
NewRetryBackend wraps be with a backend that retries operations after a backoff.
NewSemaphore returns a new semaphore with capacity n.
ParseLayout parses the config string and returns a Layout.
Transport returns a new http.RoundTripper with default settings applied.

# Variables

ErrLayoutDetectionFailed is returned by DetectLayout() when the layout cannot be detected automatically.
Modes holds the default modes for directories and files for file-based backends.
Paths contains the default paths for file-based backends (e.g.

# Structs

DefaultLayout implements the default layout for local and sftp backends, as described in the Design document.
ErrorBackend is used to induce errors into various function calls and test the retry functions.
LimitedReadCloser wraps io.LimitedReader and exposes the Close() method.
LocalFilesystem implements Filesystem in a local path.
RESTLayout implements the default layout for the REST protocol.
RetryBackend retries operations on the backend in case of an error with a backoff.
S3LegacyLayout implements the old layout used for s3 cloud storage backends, as described in the Design document.
Semaphore limits access to a restricted resource.
TransportOptions collects various options which can be set for an HTTP based transport.

# Interfaces

Filesystem is the abstraction of a file system used for a backend.
Layout computes paths for file name storage.