类 ImageArchive.Update

java.lang.Object
cn.taketoday.buildpack.platform.docker.type.ImageArchive.Update
封闭类:
ImageArchive

public static final class ImageArchive.Update extends Object
Update class used to change data when creating an image archive.
  • 字段详细资料

  • 构造器详细资料

    • Update

      private Update(Image image)
  • 方法详细资料

    • applyTo

      private ImageArchive applyTo(IOConsumer<ImageArchive.Update> update) throws IOException
      抛出:
      IOException
    • withUpdatedConfig

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

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

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

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