Class DockerImage


  • public class DockerImage
    extends java.lang.Object
    A Docker image.
    Author:
    mpolden
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static DockerImage EMPTY  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String asString()  
      boolean equals​(java.lang.Object o)  
      static DockerImage fromString​(java.lang.String name)  
      int hashCode()  
      java.lang.String repository()  
      java.util.Optional<java.lang.String> tag()  
      com.yahoo.component.Version tagAsVersion()
      Returns the tag as Version, Version.emptyVersion if tag is not set
      java.lang.String toString()  
      DockerImage withTag​(com.yahoo.component.Version version)
      Returns the Docker image tagged with the given version
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • repository

        public java.lang.String repository()
      • tag

        public java.util.Optional<java.lang.String> tag()
      • tagAsVersion

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

        public DockerImage withTag​(com.yahoo.component.Version version)
        Returns the Docker image tagged with the given version
      • asString

        public java.lang.String asString()
      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

        public static DockerImage fromString​(java.lang.String name)