Class DockerImage

java.lang.Object
com.yahoo.config.provision.DockerImage

public class DockerImage extends Object
A container image.
Author:
mpolden
  • Field Details

  • Method Details

    • registry

      public String registry()
      Returns the registry-part of this, i.e. the host/port of the registry.
    • repository

      public String repository()
      Returns the repository-part of this
    • untagged

      public String untagged()
      Returns the registry and repository for this image, excluding its tag
    • tag

      public Optional<String> tag()
      Returns this image's tag, if any
    • tagAsVersion

      public com.yahoo.component.Version tagAsVersion()
      Returns the tag as a Version, Version.emptyVersion if tag is not set
    • withTag

      public DockerImage withTag(com.yahoo.component.Version version)
      Returns a copy of this tagged with the given version
    • withRegistry

      public DockerImage withRegistry(String registry)
      Returns a copy of this with registry set to given value
    • asString

      public String asString()
    • toString

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

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

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

      public static DockerImage fromString(String s)