public class ImageArchive extends java.lang.Object implements TarArchive
from(Image, IOConsumer),
Docker Image
Specification| Modifier and Type | Class and Description |
|---|---|
static class |
ImageArchive.Update
Update class used to change data when creating an image archive.
|
NORMALIZED_TIME| Modifier and Type | Method and Description |
|---|---|
static ImageArchive |
from(Image image)
Create a new
ImageArchive based on an existing Image. |
static ImageArchive |
from(Image image,
IOConsumer<ImageArchive.Update> update)
Create a new
ImageArchive based on an existing Image. |
java.time.Instant |
getCreateDate()
Return the create data of the archive.
|
ImageConfig |
getImageConfig()
Return the image config for the archive.
|
ImageReference |
getTag()
Return the tag of the archive.
|
void |
writeTo(java.io.OutputStream outputStream)
Write the TAR archive to the given output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfromZip, ofpublic ImageConfig getImageConfig()
public java.time.Instant getCreateDate()
public ImageReference getTag()
public void writeTo(java.io.OutputStream outputStream)
throws java.io.IOException
TarArchivewriteTo in interface TarArchiveoutputStream - the output stream to write tojava.io.IOException - on IO errorpublic static ImageArchive from(Image image) throws java.io.IOException
ImageArchive based on an existing Image.image - the image that this archive is based onjava.io.IOException - on IO errorpublic static ImageArchive from(Image image, IOConsumer<ImageArchive.Update> update) throws java.io.IOException
ImageArchive based on an existing Image.image - the image that this archive is based onupdate - consumer to apply updatesjava.io.IOException - on IO error