public class HelpfulSuggestions extends Object
| Constructor and Description |
|---|
HelpfulSuggestions(String messagePrefix,
String clearCacheCommand,
ImageReference baseImageReference,
boolean noCredentialsDefinedForBaseImage,
String baseImageCredHelperConfiguration,
Function<String,String> baseImageAuthConfiguration,
ImageReference targetImageReference,
boolean noCredentialsDefinedForTargetImage,
String targetImageCredHelperConfiguration,
Function<String,String> targetImageAuthConfiguration,
String toImageConfiguration,
String toImageFlag,
String buildConfigurationFilename)
Creates a new
HelpfulSuggestions with frontend-specific texts. |
| Modifier and Type | Method and Description |
|---|---|
String |
forCacheDirectoryNotOwned(Path cacheDirectory) |
String |
forCacheNeedsClean() |
String |
forCredentialsNotSent() |
static String |
forDockerContextInsecureRecursiveDelete(String messagePrefix,
String directory) |
static String |
forDockerNotInstalled(String messagePrefix) |
String |
forGeneratedTag(String projectName,
String projectVersion) |
String |
forHttpHostConnect() |
String |
forHttpStatusCodeForbidden(String imageReference) |
String |
forInsecureRegistry() |
static String |
forMainClassNotFound(String messagePrefix,
String pluginName) |
String |
forNoCredentialsDefined(String registry,
String repository) |
static String |
forToNotConfigured(String messagePrefix,
String parameter,
String buildConfigFilename,
String command) |
String |
forUnknownHost() |
String |
none() |
String |
suggest(String suggestion) |
static String |
suggest(String messagePrefix,
String suggestion) |
public HelpfulSuggestions(String messagePrefix, String clearCacheCommand, @Nullable ImageReference baseImageReference, boolean noCredentialsDefinedForBaseImage, String baseImageCredHelperConfiguration, Function<String,String> baseImageAuthConfiguration, @Nullable ImageReference targetImageReference, boolean noCredentialsDefinedForTargetImage, String targetImageCredHelperConfiguration, Function<String,String> targetImageAuthConfiguration, String toImageConfiguration, String toImageFlag, String buildConfigurationFilename)
HelpfulSuggestions with frontend-specific texts.messagePrefix - the initial message textclearCacheCommand - the command for clearing the cachebaseImageReference - the base image referencenoCredentialsDefinedForBaseImage - true if no credentials were defined for the
base image; false otherwisebaseImageCredHelperConfiguration - the configuration defining the credential helper name
for the base imagebaseImageAuthConfiguration - the way to define raw credentials for the base image - takes
the base image registry as an argumenttargetImageReference - the target image referencenoCredentialsDefinedForTargetImage - true if no credentials were defined for the
base image; false otherwisetargetImageCredHelperConfiguration - the configuration defining the credential helper name
for the target imagetargetImageAuthConfiguration - the way to define raw credentials for the target image -
takes the target image registry as an argumenttoImageConfiguration - the configuration defining the target imagetoImageFlag - the commandline flag used to set the target imagebuildConfigurationFilename - the filename of the build configurationpublic static String forToNotConfigured(String messagePrefix, String parameter, String buildConfigFilename, String command)
messagePrefix - the initial message textparameter - the parameter name (e.g. 'to.image' or <to><image>)buildConfigFilename - the name of the build config (build.gradle or pom.xml)command - an example command for passing the parameter via commandlinepublic static String forMainClassNotFound(String messagePrefix, String pluginName)
public static String forDockerContextInsecureRecursiveDelete(String messagePrefix, String directory)
public static String suggest(String messagePrefix, String suggestion)
messagePrefix - the initial message textsuggestion - a suggested fix for the problem described by messagePrefixpublic String forHttpHostConnect()
public String forUnknownHost()
public String forCacheNeedsClean()
public String forCredentialsNotSent()
public String forInsecureRegistry()
public String none()
public String suggest(String suggestion)
suggestion - a suggested fix for the problem described by messagePrefixCopyright © 2018. All rights reserved.