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. |
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 forIncompatibleBaseImageJavaVesionForGradle(int baseImageMajorJavaVersion, int projectMajorJavaVersion)
public static String forIncompatibleBaseImageJavaVesionForMaven(int baseImageMajorJavaVersion, int projectMajorJavaVersion)
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 © 2019. All rights reserved.