public class JsonToImageTranslator extends Object
| Modifier and Type | Method and Description |
|---|---|
static Image |
toImage(BuildableManifestTemplate manifestTemplate,
ContainerConfigurationTemplate containerConfigurationTemplate)
Translates
BuildableManifestTemplate to Image. |
static Image |
toImage(V21ManifestTemplate manifestTemplate)
Translates
V21ManifestTemplate to Image. |
public static Image toImage(V21ManifestTemplate manifestTemplate) throws LayerPropertyNotFoundException, BadContainerConfigurationFormatException
V21ManifestTemplate to Image.manifestTemplate - the template containing the image layers.Image.LayerPropertyNotFoundException - if adding image layers fails.BadContainerConfigurationFormatException - if the container configuration is in a bad
formatpublic static Image toImage(BuildableManifestTemplate manifestTemplate, ContainerConfigurationTemplate containerConfigurationTemplate) throws LayerCountMismatchException, LayerPropertyNotFoundException, BadContainerConfigurationFormatException
BuildableManifestTemplate to Image. Uses the corresponding ContainerConfigurationTemplate to get the layer diff IDs.manifestTemplate - the template containing the image layers.containerConfigurationTemplate - the template containing the diff IDs and container
configuration properties.Image.LayerCountMismatchException - if the manifest and configuration contain conflicting layer
information.LayerPropertyNotFoundException - if adding image layers fails.BadContainerConfigurationFormatException - if the container configuration is in a bad
formatCopyright © 2019. All rights reserved.