Interface BuildableManifestTemplate
-
- All Superinterfaces:
JsonTemplate
,ManifestTemplate
- All Known Implementing Classes:
OciManifestTemplate
,V22ManifestTemplate
public interface BuildableManifestTemplate extends ManifestTemplate
Parent class for image manifest JSON templates that can be built.- See Also:
Docker V2.2 format
,OCI format
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
BuildableManifestTemplate.ContentDescriptorTemplate
Template for inner JSON object representing content descriptor for a layer or container configuration.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addLayer(long size, DescriptorDigest digest)
Adds a layer to the manifest.BuildableManifestTemplate.ContentDescriptorTemplate
getContainerConfiguration()
Returns the content descriptor of the container configuration.java.util.List<BuildableManifestTemplate.ContentDescriptorTemplate>
getLayers()
Returns an unmodifiable view of the layers.java.lang.String
getManifestMediaType()
Returns the media type for this manifest, specific to the image format.void
setContainerConfiguration(long size, DescriptorDigest digest)
Sets the content descriptor of the container configuration.-
Methods inherited from interface com.google.cloud.tools.jib.image.json.ManifestTemplate
getSchemaVersion
-
-
-
-
Method Detail
-
getManifestMediaType
java.lang.String getManifestMediaType()
Returns the media type for this manifest, specific to the image format.- Specified by:
getManifestMediaType
in interfaceManifestTemplate
- Returns:
- the media type for this manifest, specific to the image format
-
getContainerConfiguration
@Nullable BuildableManifestTemplate.ContentDescriptorTemplate getContainerConfiguration()
Returns the content descriptor of the container configuration.- Returns:
- the content descriptor of the container configuration
-
getLayers
java.util.List<BuildableManifestTemplate.ContentDescriptorTemplate> getLayers()
Returns an unmodifiable view of the layers.- Returns:
- an unmodifiable view of the layers
-
setContainerConfiguration
void setContainerConfiguration(long size, DescriptorDigest digest)
Sets the content descriptor of the container configuration.- Parameters:
size
- the size of the container configuration.digest
- the container configuration content descriptor digest.
-
addLayer
void addLayer(long size, DescriptorDigest digest)
Adds a layer to the manifest.- Parameters:
size
- the size of the layer.digest
- the layer descriptor digest.
-
-