Skip to main content

Module layout

Module layout 

Source
Expand description

OCI image-layout directory mechanics. Knows files and blobs, not components.

Functionsยง

blob_path
Path to a blob given its hex digest (no sha256: prefix).
blobs_dir
has_blob
index_path
init
Create the layout skeleton. Idempotent.
oci_layout_path
read_blob
sha256_hex
Lowercase hex of the sha256 of bytes.
write_blob
Write bytes as a blob; returns its hex digest. Atomic (temp + rename); a no-op if the blob already exists (content-addressed dedup).