modulepackage
0.0.0-20231022180745-6e0c3d89e0db
Repository: https://github.com/blobcache/glfs.git
Documentation: pkg.go.dev
# README
GLFS
GLFS is a Git-Like FileSystem.
If you are looking for a simple way to store objects larger than a single blob in blobcache, you have come to the right place.
Take a look at ARCHITECTURE.md to learn more about the design. If you have a good understanding of how Git works, that's about 9/10 of it. There are a few tricks not in Git.
Examples live in the examples/
directory.
# Functions
No description provided by the author
FilterPaths returns a version of root with paths filtered using f as a predicate.
GC will remove objects from store which are not referenced by any of the refs in keep.
GetAtPath returns a ref to the object under ref at subpath.
GetBlob returns an io.ReadSeeker for accessing data from the blob at x.
GetBlobBytes reads the entire contents of the blob at x into memory and returns the slice of bytes.
GetTree retreives the tree in store at Ref if it exists.
No description provided by the author
No description provided by the author
MapBlobs calls MapBlobs on the default Agent.
MapEntryAt calls MapEntryAt on the default Agent.
MapLeaves calls MapLeaves on the default Agent.
Merge calls Merge on the default Agent.
No description provided by the author
No description provided by the author
PostBlob creates a new blob with data from r, and returns a Ref to it.
PostTree writes a tree to CA storage and returns a Ref pointing to it.
No description provided by the author
No description provided by the author
PostRaw calls PostRaw on the default Agent.
ShardLeaves calls ShardLeaves on the default Agent.
SizeOf returns the size of the data at x.
Sync ensures that all data referenced by x exists in dst, copying from src if necessary.
WalkRefs calls fn with every Ref reacheable from ref, including Ref.
WalkTree walks the tree and calls f with tree entries in lexigraphical order file1.txt comes before file2.txt dir1/ comes before dir1/file1.txt.
WithSalt sets the salt used for deriving encryption keys.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
Diff contains the result of a Compare Left contains only elements in left Right contains only elements in right Both contains elements common to left and right.
No description provided by the author
No description provided by the author
No description provided by the author
Ref is a reference to a glfs Object, which could be: - Tree - Blob.
No description provided by the author
Tree is a directory of entries to other trees or blobs Each entry in a tree has a unique name.
TreeEntry is a single entry in a tree, uniquely identified by Name.
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Type is the type of data pointed to by a Ref.
WalkTreeFunc is the type of functions passed to WalkTree.