Class DockerClientHelper
- java.lang.Object
-
- com.qualys.plugins.containerSecurity.util.DockerClientHelper
-
public class DockerClientHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description DockerClientHelper()DockerClientHelper(PrintStream buildLogger, String dockerURL, String dockerCert)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description qshaded.com.google.gson.JsonObjectexecuteHttpRequest(String action, String path)qshaded.com.google.gson.JsonObjectexecuteSocketRequest(String method, String api)StringfetchImageSha(String image, String dockerCert)booleanisCICDSensorUp()booleantagImage(String imageIdOrName, String imageSha)
-
-
-
Constructor Detail
-
DockerClientHelper
public DockerClientHelper()
-
DockerClientHelper
public DockerClientHelper(PrintStream buildLogger, String dockerURL, String dockerCert)
-
-
Method Detail
-
executeSocketRequest
public qshaded.com.google.gson.JsonObject executeSocketRequest(String method, String api) throws AbortException, IOException
- Throws:
AbortExceptionIOException
-
executeHttpRequest
public qshaded.com.google.gson.JsonObject executeHttpRequest(String action, String path) throws AbortException
- Throws:
AbortException
-
tagImage
public boolean tagImage(String imageIdOrName, String imageSha) throws AbortException, IOException
- Throws:
AbortExceptionIOException
-
fetchImageSha
public String fetchImageSha(String image, String dockerCert) throws AbortException
- Throws:
AbortException
-
isCICDSensorUp
public boolean isCICDSensorUp() throws IOException, AbortException- Throws:
IOExceptionAbortException
-
-