Class DockerImage


  • public class DockerImage
    extends Object
    A container image.
    Author:
    mpolden
    • Method Detail

      • 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()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object