Package com.yahoo.config.provision
Class DockerImage
java.lang.Object
com.yahoo.config.provision.DockerImage
A container image.
- Author:
- mpolden
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
boolean
static DockerImage
static DockerImage
fromString
(String s) int
hashCode()
registry()
Returns the registry-part of this, i.e.Returns the repository-part of thistag()
Returns this image's tag, if anycom.yahoo.component.Version
Returns the tag as aVersion
,Version.emptyVersion
if tag is not settoString()
untagged()
Returns the registry and repository for this image, excluding its tagwithRegistry
(String registry) Returns a copy of this with registry set to given valuewithRepository
(String repository) Returns a copy of this with repository set to given valuewithTag
(com.yahoo.component.Version version) Returns a copy of this tagged with the given versionReturns a copy of this tagged with the given tag
-
Field Details
-
EMPTY
-
-
Method Details
-
registry
Returns the registry-part of this, i.e. the host/port of the registry. -
repository
Returns the repository-part of this -
untagged
Returns the registry and repository for this image, excluding its tag -
tag
Returns this image's tag, if any -
tagAsVersion
public com.yahoo.component.Version tagAsVersion()Returns the tag as aVersion
,Version.emptyVersion
if tag is not set -
withTag
Returns a copy of this tagged with the given version -
withTag
Returns a copy of this tagged with the given tag -
withRegistry
Returns a copy of this with registry set to given value -
withRepository
Returns a copy of this with repository set to given value -
asString
-
toString
-
equals
-
hashCode
public int hashCode() -
from
-
fromString
-