# 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.
# 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.
FileSaver concurrently saves incoming files to the repo.
FutureBlob is returned by SaveBlob and will return the data once it has been processed.
FutureFile is returned by Save and will return the data once it has been processed.
FutureNode holds a reference to a node, FutureFile, or FutureTree.
FutureTree is returned by Save and will return the data once it has been processed.
ItemStats collects some statistics about a particular file or directory.
Options is used to configure the archiver.
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.
TestFile describes a file 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.