Class GoModProcessor

java.lang.Object
org.owasp.dependencycheck.utils.processing.Processor<InputStream>
org.owasp.dependencycheck.processing.GoModProcessor
All Implemented Interfaces:
AutoCloseable, Runnable

public class GoModProcessor extends Processor<InputStream>
Processor for the output of `go list -m -json all`.
Author:
Jeremy Long
  • Constructor Details

    • 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` dependency
      engine - a reference to the dependency-check engine
  • Method Details

    • run

      public void run()
    • close

      public void close() throws AnalysisException
      Throws any exceptions that occurred during processing.
      Throws:
      AnalysisException - thrown if an AnalysisException occurred