Class ImageArchive.Update

java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.ImageArchive.Update
Enclosing class:
ImageArchive

public static final class ImageArchive.Update extends Object
Update class used to change data when creating an image archive.
  • Method Details

    • withUpdatedConfig

      public void withUpdatedConfig(Consumer<ImageConfig.Update> update)
      Apply updates to the ImageConfig.
      Parameters:
      update - consumer to apply updates
    • withNewLayer

      public void withNewLayer(Layer layer)
      Add a new layer to the image archive.
      Parameters:
      layer - the layer to add
    • withCreateDate

      public void withCreateDate(Instant createDate)
      Set the create date for the image archive.
      Parameters:
      createDate - the create date
    • withTag

      public void withTag(ImageReference tag)
      Set the tag for the image archive.
      Parameters:
      tag - the tag