public class V21ManifestTemplate extends java.lang.Object implements ManifestTemplate
This is only for parsing manifests in the older V2.1 schema. Generated manifests should be in
the V2.2 schema using the V22ManifestTemplate.
Example manifest JSON (only the fsLayers and history fields are relevant for
parsing):
{
...
"fsLayers": {
{
"blobSum": "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
},
{
"blobSum": "sha256:5f70bf18a086007016e948b04aed3b82103a36bea41755b6cddfaf10ace3c6ef"
}
},
"history": [
{
"v1Compatibility": "<some manifest V1 JSON object>"
}
]
...
}
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
MEDIA_TYPE |
| Constructor and Description |
|---|
V21ManifestTemplate() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<com.google.cloud.tools.jib.image.json.V21ManifestTemplate.LayerObjectTemplate> |
getFsLayers() |
java.util.List<DescriptorDigest> |
getLayerDigests() |
int |
getSchemaVersion() |
public static final java.lang.String MEDIA_TYPE
public java.util.List<DescriptorDigest> getLayerDigests()
public int getSchemaVersion()
getSchemaVersion in interface ManifestTemplatepublic java.util.List<com.google.cloud.tools.jib.image.json.V21ManifestTemplate.LayerObjectTemplate> getFsLayers()