Class ManifestListGenerator


  • public class ManifestListGenerator
    extends java.lang.Object
    Generates a manifest list for Images.
    • Constructor Detail

      • ManifestListGenerator

        public ManifestListGenerator​(java.util.List<Image> images)
    • Method Detail

      • getManifestListTemplate

        public <T extends BuildableManifestTemplateManifestTemplate getManifestListTemplate​(java.lang.Class<T> manifestTemplateClass)
                                                                                       throws java.io.IOException
        Generates a manifest list JSON for the given Images.
        Type Parameters:
        T - child type of BuildableManifestTemplate
        Parameters:
        manifestTemplateClass - the JSON template to translate the image to
        Returns:
        a manifest list JSON
        Throws:
        java.io.IOException - if generating a manifest list fails due to an I/O error when computing digests