com.rapid7.container.analyzer.docker.model.json.Manifest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docker-image-analyzer Show documentation
Show all versions of docker-image-analyzer Show documentation
Extracts, parses, and analyzes Docker images into Java objects with JSON mappings.
package com.rapid7.container.analyzer.docker.model.json;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import com.rapid7.container.analyzer.docker.model.image.ImageId;
import com.rapid7.container.analyzer.docker.model.image.LayerId;
import java.util.List;
@JsonTypeInfo(
use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.EXTERNAL_PROPERTY,
defaultImpl = TarManifestJson.class,
property = "schemaVersion")
@JsonSubTypes({
@JsonSubTypes.Type(value = TarManifestJson.class),
@JsonSubTypes.Type(value = ManifestJsonV2S1.class, name = "1"),
@JsonSubTypes.Type(value = ManifestJsonV2S2.class, name = "2")
})
public interface Manifest {
List getLayers();
default List getLayerBlobIds() {
return getLayers();
}
ImageId getImageId();
long getSize();
String getType();
}