java.lang.Object
org.springframework.boot.buildpack.platform.json.MappedObject
org.springframework.boot.buildpack.platform.docker.type.ImageConfig

public class ImageConfig extends MappedObject
Image configuration information.
Since:
2.3.0
Author:
Phillip Webb, Andy Wilkinson
  • Method Details

    • getLabels

      public Map<String,String> getLabels()
      Return the image labels. If the image has no labels, an empty Map is returned.
      Returns:
      the image labels, never null
    • getEnv

      public Map<String,String> getEnv()
      Return the image environment variables. If the image has no environment variables, an empty Map is returned.
      Returns:
      the env, never null
    • copy

      public ImageConfig copy(Consumer<ImageConfig.Update> update)
      Create an updated copy of this image config.
      Parameters:
      update - consumer to apply updates
      Returns:
      an updated image config