java.lang.Object
org.springframework.boot.buildpack.platform.docker.type.ImageName

public class ImageName extends Object
A Docker image name of the form "docker.io/library/ubuntu".
Since:
2.3.0
Author:
Phillip Webb, Scott Frederick
See Also:
  • Method Details

    • getDomain

      public String getDomain()
      Return the domain for this image name.
      Returns:
      the domain
    • getName

      public String getName()
      Return the name of this image.
      Returns:
      the image name
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • toLegacyString

      public String toLegacyString()
    • of

      public static ImageName of(String value)
      Create a new ImageName from the given value. The following value forms can be used:
      • name (maps to docker.io/library/name)
      • domain/name
      • domain:port/name
      Parameters:
      value - the value to parse
      Returns:
      an ImageName instance