public class V21ManifestTemplate extends 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 String |
MEDIA_TYPE |
| Constructor and Description |
|---|
V21ManifestTemplate() |
| Modifier and Type | Method and Description |
|---|---|
List<com.google.cloud.tools.jib.image.json.V21ManifestTemplate.LayerObjectTemplate> |
getFsLayers() |
List<DescriptorDigest> |
getLayerDigests() |
int |
getSchemaVersion() |
public static final String MEDIA_TYPE
public List<DescriptorDigest> getLayerDigests()
public int getSchemaVersion()
getSchemaVersion in class ManifestTemplatepublic List<com.google.cloud.tools.jib.image.json.V21ManifestTemplate.LayerObjectTemplate> getFsLayers()
Copyright © 2018. All rights reserved.