Package com.yahoo.config.provision
Class DockerImage
- java.lang.Object
-
- com.yahoo.config.provision.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 setjava.lang.String
toString()
DockerImage
withTag(com.yahoo.component.Version version)
Returns the Docker image tagged with the given version
-
-
-
Field Detail
-
EMPTY
public static final DockerImage EMPTY
-
-
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 classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
fromString
public static DockerImage fromString(java.lang.String name)
-
-