Documentation
¶
Overview ¶
Package tarprism splits an uncompressed tar archive into a recipe (every byte that is not regular-file content, kept verbatim) and numbered blobs (the file contents), and reassembles the byte-identical archive from them.
Index ¶
Constants ¶
View Source
const ( RecipeFile = "recipe.bin" IndexFile = "recipe.json" BlobsDir = "blobs" )
Files and directories that make up a prism directory.
View Source
const FormatVersion = 1
FormatVersion is the recipe.json version written by Decompose and accepted by Compose.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct {
// Name is the entry's name in the archive, for human readers only.
Name string `json:"name"`
// Offset is the byte position in recipe.bin where the blob is spliced in.
Offset int64 `json:"offset"`
// Size is the blob's length in bytes.
Size int64 `json:"size"`
// Blob is the blob's path relative to the prism directory, slash-separated.
Blob string `json:"blob"`
}
Entry describes one regular-file blob.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
tar-prism
command
Command tar-prism splits a tar archive into a recipe and content blobs, and reassembles the byte-identical archive from them.
|
Command tar-prism splits a tar archive into a recipe and content blobs, and reassembles the byte-identical archive from them. |
Click to show internal directories.
Click to hide internal directories.