Modifier and Type | Field and Description |
---|---|
protected PrefixedLogger |
log |
Constructor and Description |
---|
BaseGenerator(GeneratorContext context,
String name) |
BaseGenerator(GeneratorContext context,
String name,
FromSelector fromSelector) |
Modifier and Type | Method and Description |
---|---|
protected void |
addFrom(io.fabric8.maven.docker.config.BuildImageConfiguration.Builder builder)
Add the base image either from configuration or from a given selector
|
protected void |
addLatestTagIfSnapshot(io.fabric8.maven.docker.config.BuildImageConfiguration.Builder buildBuilder) |
protected String |
getAlias()
Get alias name with the generator name as default
|
protected String |
getConfig(Configs.Key key) |
protected String |
getConfig(Configs.Key key,
String defaultVal) |
protected String |
getConfigWithSystemFallbackAndDefault(io.fabric8.maven.generator.api.support.BaseGenerator.Config name,
String key,
String defaultVal) |
GeneratorContext |
getContext() |
protected String |
getFromAsConfigured() |
protected String |
getImageName()
Get Image name with a standard default
|
String |
getName() |
protected org.apache.maven.project.MavenProject |
getProject() |
protected String |
getRegistry()
Get the docker registry where the image should be located.
|
protected boolean |
shouldAddImageConfiguration(List<io.fabric8.maven.docker.config.ImageConfiguration> configs) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
customize, isApplicable
protected final PrefixedLogger log
public BaseGenerator(GeneratorContext context, String name)
public BaseGenerator(GeneratorContext context, String name, FromSelector fromSelector)
protected org.apache.maven.project.MavenProject getProject()
public GeneratorContext getContext()
protected String getConfig(Configs.Key key)
protected String getConfig(Configs.Key key, String defaultVal)
protected String getFromAsConfigured()
protected void addFrom(io.fabric8.maven.docker.config.BuildImageConfiguration.Builder builder)
builder
- for the build image configuration to add the from to.protected String getImageName()
protected String getRegistry()
protected String getAlias()
protected boolean shouldAddImageConfiguration(List<io.fabric8.maven.docker.config.ImageConfiguration> configs)
protected String getConfigWithSystemFallbackAndDefault(io.fabric8.maven.generator.api.support.BaseGenerator.Config name, String key, String defaultVal)
protected void addLatestTagIfSnapshot(io.fabric8.maven.docker.config.BuildImageConfiguration.Builder buildBuilder)
Copyright © 2018. All rights reserved.