import_layer

Function import_layer 

Source
pub fn import_layer<ObjectID: FsVerityHashValue>(
    repo: &Arc<Repository<ObjectID>>,
    diff_id: &str,
    name: Option<&str>,
    tar_stream: &mut impl Read,
) -> Result<ObjectID>
Expand description

Imports a container layer from a tar stream into the repository.

Converts the tar stream into a composefs split stream format and stores it in the repository. If a name is provided, creates a reference to the imported layer for easier access.

Returns the fs-verity hash value of the stored split stream.