Class GoModProcessor
- java.lang.Object
-
- org.owasp.dependencycheck.utils.processing.Processor<java.io.InputStream>
-
- org.owasp.dependencycheck.processing.GoModProcessor
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Runnable
public class GoModProcessor extends Processor<java.io.InputStream>
Processor for the output of `go list -m -json all`.- Author:
- Jeremy Long
-
-
Constructor Summary
Constructors Constructor Description GoModProcessor(Dependency goDependency, Engine engine)Constructs a new processor to consume the output of `go list -m -json all`.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Throws any exceptions that occurred during processing.voidrun()-
Methods inherited from class org.owasp.dependencycheck.utils.processing.Processor
addSuppressedExceptions, getInput, setInput
-
-
-
-
Constructor Detail
-
GoModProcessor
public GoModProcessor(Dependency goDependency, Engine engine)
Constructs a new processor to consume the output of `go list -m -json all`.- Parameters:
goDependency- a reference to `go.mod` dependencyengine- a reference to the dependency-check engine
-
-
Method Detail
-
run
public void run()
-
close
public void close() throws AnalysisExceptionThrows any exceptions that occurred during processing.- Throws:
AnalysisException- thrown if an AnalysisException occurred
-
-