Class ImageReference

java.lang.Object
org.springframework.boot.docker.compose.core.ImageReference

public final class ImageReference extends Object
A docker image reference of form [<registry>/][<project>/]<image>[:<tag>|@<digest>].
Since:
3.1.0
Author:
Moritz Halbritter, Andy Wilkinson, Phillip Webb
See Also:
  • Method Details

    • 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
    • getImageName

      public String getImageName()
      Return the referenced image, excluding the registry or project. For example, a reference of my_private.registry:5000/redis:5 would return redis.
      Returns:
      the referenced image
    • of

      public static ImageReference of(String value)
      Create an image reference from the given String value.
      Parameters:
      value - the string used to create the reference
      Returns:
      an ImageReference instance