Class Helper
- java.lang.Object
-
- com.qualys.plugins.containerSecurity.util.Helper
-
public class Helper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static String
CVE_REGEX
static String
GET_IMAGE_LIST_API_PATH_FORMAT
static String
GET_SCAN_RESULT_API_PATH_FORMAT
static String
IMAGE_ENV_VAR
static String
IMAGE_ID_REGEX
static String
IMAGE_NAME_REGEX
static Map<String,Map<String,String>>
platformsList
-
Constructor Summary
Constructors Constructor Description Helper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
createNewFile(String rootDir, String filename, String content, PrintStream buildLogger)
static void
createZip(String zipFile, String srcDir, PrintStream buildLogger)
static boolean
isRuntimeDocker(String url)
static boolean
isValidCVEList(String cveList)
-
-
-
Field Detail
-
GET_IMAGE_LIST_API_PATH_FORMAT
public static final String GET_IMAGE_LIST_API_PATH_FORMAT
- See Also:
- Constant Field Values
-
GET_SCAN_RESULT_API_PATH_FORMAT
public static final String GET_SCAN_RESULT_API_PATH_FORMAT
- See Also:
- Constant Field Values
-
CVE_REGEX
public static final String CVE_REGEX
- See Also:
- Constant Field Values
-
IMAGE_ID_REGEX
public static final String IMAGE_ID_REGEX
- See Also:
- Constant Field Values
-
IMAGE_NAME_REGEX
public static final String IMAGE_NAME_REGEX
- See Also:
- Constant Field Values
-
IMAGE_ENV_VAR
public static final String IMAGE_ENV_VAR
- See Also:
- Constant Field Values
-
-
Method Detail
-
isRuntimeDocker
public static boolean isRuntimeDocker(String url)
-
isValidCVEList
public static boolean isValidCVEList(String cveList)
-
createNewFile
public static void createNewFile(String rootDir, String filename, String content, PrintStream buildLogger)
-
createZip
public static void createZip(String zipFile, String srcDir, PrintStream buildLogger)
-
-