All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.rapid7.container.analyzer.docker.model.json.Manifest Maven / Gradle / Ivy

There is a newer version: 0.2.26
Show newest version
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();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy