public class ImageArchive extends Object implements TarArchive
from(Image, IOConsumer)
,
Docker Image
SpecificationModifier 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 . |
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(OutputStream outputStream)
Write the TAR archive to the given output stream.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fromZip, of
public ImageConfig getImageConfig()
public Instant getCreateDate()
public ImageReference getTag()
public void writeTo(OutputStream outputStream) throws IOException
TarArchive
writeTo
in interface TarArchive
outputStream
- the output stream to write toIOException
- on IO errorpublic static ImageArchive from(Image image) throws IOException
ImageArchive
based on an existing Image
.image
- the image that this archive is based onIOException
- on IO errorpublic static ImageArchive from(Image image, IOConsumer<ImageArchive.Update> update) throws IOException
ImageArchive
based on an existing Image
.image
- the image that this archive is based onupdate
- consumer to apply updatesIOException
- on IO error