@UnstableAPI public abstract class ImageNameSubstitutor extends java.lang.Object implements java.util.function.Function<DockerImageName,DockerImageName>
This is marked as @UnstableAPI as this API is new. While we do not think major changes will be required, we
will react to feedback if necessary.
| Constructor and Description |
|---|
ImageNameSubstitutor() |
| Modifier and Type | Method and Description |
|---|---|
abstract DockerImageName |
apply(DockerImageName original)
Substitute a
DockerImageName for another, for example to replace a generic Docker Hub image name with a
private registry copy of the image. |
protected abstract java.lang.String |
getDescription() |
static ImageNameSubstitutor |
instance() |
static ImageNameSubstitutor |
noop() |
public static ImageNameSubstitutor instance()
public static ImageNameSubstitutor noop()
public abstract DockerImageName apply(DockerImageName original)
DockerImageName for another, for example to replace a generic Docker Hub image name with a
private registry copy of the image.apply in interface java.util.function.Function<DockerImageName,DockerImageName>original - original name to be replacedprotected abstract java.lang.String getDescription()