/// Constructs and writes an images.json manifest to |outdir| which lists
/// metadata for the base package, BlobFS, FVMs, ZBI, and VBMeta.
Constructs and writes an images.json manifest to |outdir| which lists
metadata for the base package, BlobFS, FVMs, ZBI, and VBMeta.
Constructs and writes an images . json manifest to |outdir| which lists metadata for the base package BlobFS FVMs ZBI and VBMeta .
pub fn construct_images_manifest(
    zbi_path: &PathBuf,
    outdir: &Path,
    base_package: Option<&BasePackage>,
    blobfs_path: Option<&PathBuf>,
    fvms: Option<&Fvms>,
    vbmeta_path: Option<&PathBuf>,
) -> Result<PathBuf> {
    let images = construct_images_metadata(zbi_path, base_package, blobfs_path, fvms, vbmeta_path)?;
    let images_manifest_path = outdir.join("images.json");
    let mut file =
        File::create(&images_manifest_path).context("Failed to create the images manifest file")?;
    serde_json::to_writer_pretty(&mut file, &images)
        .context("Failed to write the images manifest file")?;
    Ok(images_manifest_path)
}
pub fn construct_images_manifest ( zbi_path : & PathBuf , outdir : & Path , base_package : Option < & BasePackage > , blobfs_path : Option < & PathBuf > , fvms : Option < & Fvms > , vbmeta_path : Option < & PathBuf > , ) -> Result < PathBuf > { let images = construct_images_metadata ( zbi_path , base_package , blobfs_path , fvms , vbmeta_path ) ? ; let images_manifest_path = outdir . join ( " " ) ; let mut file = File :: create ( & images_manifest_path ) . context ( " " ) ? ; serde_json :: to_writer_pretty ( & mut file , & images ) . context ( " " ) ? ; Ok ( images_manifest_path ) }
Constructs and writes an images.json manifest to |outdir| which lists
metadata for the base package, BlobFS, FVMs, ZBI, and VBMeta.
Constructs and writes an images . json manifest to |outdir| which lists metadata for the base package BlobFS FVMs ZBI and VBMeta .
zbi_path
&PathBuf
outdir
&Path
base_package
Option<&BasePackage>
blobfs_path
Option<&PathBuf>
fvms
Option<&Fvms>
vbmeta_path
Option<&PathBuf>