class ImageTarball {

  public void writeTo(OutputStream out) throws IOException {
    if (image.getImageFormat() == OciManifestTemplate.class) {
      ociWriteTo(out);
    } else {
      dockerWriteTo(out);
    }
  }

  public  ImageTarball(
      Image image, ImageReference imageReference, ImmutableSet<String> allTargetImageTags);

}