Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Extract ¶
Extract writes every entry of the delta archive into dest and returns the sidecar bytes. dest must already exist and be empty.
func Pack ¶
func Pack(srcDir string, sidecar []byte, outPath string, c Compression) error
Pack writes a tar archive containing every file under srcDir plus the sidecar payload as "diffah.json" at the archive root.
Pack writes to outPath+".tmp" first and renames on success, guaranteeing that observers never see a partial file at outPath.
func ReadSidecar ¶
ReadSidecar returns the sidecar bytes from a delta archive without extracting the rest of the entries.
Types ¶
type Compression ¶
type Compression string
Compression is the outer wrapper applied to the tar stream.
const ( CompressNone Compression = "none" CompressZstd Compression = "zstd" )
Click to show internal directories.
Click to hide internal directories.