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.JsonObject
executeHttpRequest(String action, String path)
qshaded.com.google.gson.JsonObject
executeSocketRequest(String method, String api)
String
fetchImageSha(String image, String dockerCert)
boolean
isCICDSensorUp()
boolean
tagImage(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:
AbortException
IOException
-
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:
AbortException
IOException
-
fetchImageSha
public String fetchImageSha(String image, String dockerCert) throws AbortException
- Throws:
AbortException
-
isCICDSensorUp
public boolean isCICDSensorUp() throws IOException, AbortException
- Throws:
IOException
AbortException
-
-