package
0.7.3
Repository: https://github.com/targodan/restic.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
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

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.
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.
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.
S3LegacyLayout implements the old layout used for s3 cloud storage backends, as described in the Design document.
Semaphore limits access to a restricted resource.

# Interfaces

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