Package tech.orla
Class TrivyProcess
- java.lang.Object
-
- tech.orla.AbstractOSProcess
-
- tech.orla.TrivyProcess
-
public class TrivyProcess extends AbstractOSProcess
-
-
Constructor Summary
Constructors Constructor Description TrivyProcess(GithubTrivyReleaseApi githubTrivyReleaseApi)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PathdecompressTarGz(Path pathFile)PathdownloadBinaryFromGithubAssets(String downloadUrl, String file)FileextractExecutableFromJar(String executable)FilegetLocationTrivyBin(String trivyTag)StringresolveBinaryName(String tag)IntegerscanImage(String dockerImageName, String trivyParams, String trivyTag)-
Methods inherited from class tech.orla.AbstractOSProcess
execProcess
-
-
-
-
Field Detail
-
LOG
public static final Logger LOG
-
-
Constructor Detail
-
TrivyProcess
public TrivyProcess(GithubTrivyReleaseApi githubTrivyReleaseApi)
-
-
Method Detail
-
downloadBinaryFromGithubAssets
public Path downloadBinaryFromGithubAssets(String downloadUrl, String file)
-
getLocationTrivyBin
public File getLocationTrivyBin(String trivyTag) throws Exception
- Throws:
Exception
-
extractExecutableFromJar
public File extractExecutableFromJar(String executable) throws IOException
- Throws:
IOException
-
-