public class V22ManifestListTemplate extends Object implements ManifestTemplate
Example manifest list JSON:
{
"schemaVersion": 2,
"mediaType": "application/vnd.docker.distribution.manifest.list.v2+json",
"manifests": [
{
"mediaType": "application/vnd.docker.image.manifest.v2+json",
"size": 7143,
"digest": "sha256:e692418e4cbaf90ca69d05a66403747baa33ee08806650b51fab815ad7fc331f",
"platform": {
"architecture": "ppc64le",
"os": "linux",
}
},
{
"mediaType": "application/vnd.docker.image.manifest.v2+json",
"size": 7682,
"digest": "sha256:5b0bcabd1ed22e9fb1310cf6c2dec7cdef19f0ad69efa1f392e94a4333501270",
"platform": {
"architecture": "amd64",
"os": "linux",
"features": [
"sse4"
]
}
}
]
}
| Modifier and Type | Class and Description |
|---|---|
static class |
V22ManifestListTemplate.ManifestDescriptorTemplate
Template for inner JSON object representing a single platform specific manifest.
|
| Modifier and Type | Field and Description |
|---|---|
static String |
MANIFEST_MEDIA_TYPE |
| Constructor and Description |
|---|
V22ManifestListTemplate() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getDigestsForPlatform(String architecture,
String os) |
List<V22ManifestListTemplate.ManifestDescriptorTemplate> |
getManifests() |
int |
getSchemaVersion() |
public static final String MANIFEST_MEDIA_TYPE
public int getSchemaVersion()
getSchemaVersion in interface ManifestTemplatepublic List<V22ManifestListTemplate.ManifestDescriptorTemplate> getManifests()
Copyright © 2019. All rights reserved.