Backplane.PluginProtocol.Archive (backplane_plugin_protocol v1.10.34)

Copy Markdown

Deterministic USTAR gzip snapshots with bounded, memory-only decoding.

Supports regular files and directories; rejects links, special entries, PAX/GNU extensions, duplicate paths, traversal, conflicting paths and invalid checksums. pack/2 writes regular files with mode 0644 by default, uid/gid/mtime zero and sorted paths. Supply modes: %{path => 0o755} to preserve executable resources. No archive path is ever extracted directly to the filesystem.

Summary

Functions

Reads regular files without following directory or file symlinks.

Returns regular-file bytes and low permission bits (no privileged mode bits).

Functions

digest(bytes)

pack(files, opts \\ [])

read_directory(root, opts \\ [])

Reads regular files without following directory or file symlinks.

read_directory_with_metadata(root, opts \\ [])

Returns regular-file bytes and low permission bits (no privileged mode bits).

unpack(bytes, opts \\ [])

unpack_with_metadata(bytes, opts \\ [])