Class ImageArchive.Update
java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.ImageArchive.Update
- Enclosing class:
- ImageArchive
Update class used to change data when creating an image archive.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
withCreateDate
(Instant createDate) Set the create date for the image archive.void
withNewLayer
(Layer layer) Add a new layer to the image archive.void
withTag
(ImageReference tag) Set the tag for the image archive.void
withUpdatedConfig
(Consumer<ImageConfig.Update> update) Apply updates to theImageConfig
.
-
Method Details
-
withUpdatedConfig
Apply updates to theImageConfig
.- Parameters:
update
- consumer to apply updates
-
withNewLayer
Add a new layer to the image archive.- Parameters:
layer
- the layer to add
-
withCreateDate
Set the create date for the image archive.- Parameters:
createDate
- the create date
-
withTag
Set the tag for the image archive.- Parameters:
tag
- the tag
-