Skip to main content

layer_content_id

Function layer_content_id 

Source
pub fn layer_content_id(diff_id: &OciDigest) -> String
Expand description

Return the content-identifier string used to register a layer splitstream.

This is the key passed to composefs::repository::Repository::has_stream and composefs::repository::Repository::write_stream for a given OCI diff-id. Callers outside this crate (e.g. the varlink layer-sync service) use this to look up whether a layer has been imported and to obtain its fs-verity hash.