package
0.0.0-20240726205954-93d05801347e
Repository: https://github.com/wplapper/restic.git
Documentation: pkg.go.dev
# Functions
New initializes a new archiver.
NewBlobSaver returns a new blob.
NewBufferPool initializes a new buffer pool.
NewFileSaver returns a new file saver.
NewScanner initializes a new Scanner.
NewTree creates a Tree from the target files/directories.
NewTreeSaver returns a new tree saver.
TestCreateFiles creates a directory structure described by dir at target, which must already exist.
TestEnsureFileContent checks if the file in the repo is the same as file.
TestEnsureFiles tests if the directory structure at target is the same as described in dir.
TestEnsureSnapshot tests if the snapshot in the repo has exactly the same structure as dir.
TestEnsureTree checks that the tree ID in the repo matches dir.
TestSnapshot creates a new snapshot of path.
TestWalkFiles runs fn for each file/directory in dir, the filename will be constructed with target as the prefix.
# Constants
Flags for the ChangeIgnoreFlags bitfield.
Flags for the ChangeIgnoreFlags bitfield.
# Structs
Archiver saves a directory structure to the repo.
BlobSaver concurrently saves incoming blobs to the repo.
Buffer is a reusable buffer.
BufferPool implements a limited set of reusable buffers.
No description provided by the author
FileSaver concurrently saves incoming files to the repo.
FutureNode holds a reference to a channel that returns a FutureNodeResult or a reference to an already existing result.
ItemStats collects some statistics about a particular file or directory.
Options is used to configure the archiver.
No description provided by the author
Scanner traverses the targets and calls the function Result with cumulated stats concerning the files and folders found.
ScanStats collect statistics.
SnapshotOptions collect attributes for a new snapshot.
No description provided by the author
TestFile describes a file created for a test.
TestHardlink describes a hardlink created for a test.
TestSymlink describes a symlink created for a test.
Tree recursively defines how a snapshot should look like when archived.
TreeSaver concurrently saves incoming trees to the repo.
# Interfaces
Saver allows saving a blob.
# Type aliases
CompleteFunc is called when the file has been saved.
ErrorFunc is called when an error during archiving occurs.
SaveBlobFn saves a blob to a repo.
SelectByNameFunc returns true for all items that should be included (files and dirs).
SelectFunc returns true for all items that should be included (files and dirs).
TestDir describes a directory structure to create for a test.
TestWalkFunc is used by TestWalkFiles to traverse the dir.