public class HelpfulSuggestions extends Object
| Constructor and Description |
|---|
HelpfulSuggestions(String messagePrefix,
String clearCacheCommand,
String baseImageCredHelperConfiguration,
Function<String,String> baseImageAuthConfiguration,
String targetImageCredHelperConfiguration,
Function<String,String> targetImageAuthConfiguration)
Creates a new
HelpfulSuggestions with frontend-specific texts. |
| Modifier and Type | Method and Description |
|---|---|
String |
forCacheDirectoryNotOwned(Path cacheDirectory) |
String |
forCacheNeedsClean() |
String |
forCredentialsNotCorrect(String registry) |
String |
forDockerContextInsecureRecursiveDelete(String directory) |
String |
forDockerNotInstalled() |
String |
forHttpHostConnect() |
String |
forHttpStatusCodeForbidden(String imageReference) |
String |
forInsecureRegistry() |
String |
forMainClassNotFound(String pluginName) |
String |
forNoCredentialHelpersDefinedForBaseImage(String registry) |
String |
forNoCredentialHelpersDefinedForTargetImage(String registry) |
String |
forToNotConfigured(String parameter,
String buildConfigFilename,
String command) |
String |
forUnknownHost() |
String |
none() |
String |
suggest(String suggestion) |
public HelpfulSuggestions(String messagePrefix, String clearCacheCommand, String baseImageCredHelperConfiguration, Function<String,String> baseImageAuthConfiguration, String targetImageCredHelperConfiguration, Function<String,String> targetImageAuthConfiguration)
HelpfulSuggestions with frontend-specific texts.messagePrefix - the initial message textclearCacheCommand - the command for clearing the cachebaseImageCredHelperConfiguration - 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 argumenttargetImageCredHelperConfiguration - 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 argumentpublic String forHttpHostConnect()
public String forUnknownHost()
public String forCacheNeedsClean()
public String forNoCredentialHelpersDefinedForBaseImage(String registry)
public String forNoCredentialHelpersDefinedForTargetImage(String registry)
public String forDockerContextInsecureRecursiveDelete(String directory)
public String forDockerNotInstalled()
public String forToNotConfigured(String parameter, String buildConfigFilename, String command)
parameter - 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 String none()
public String suggest(String suggestion)
suggestion - a suggested fix for the problem described by messagePrefixpublic String forInsecureRegistry()
Copyright © 2018. All rights reserved.