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

      • run

        public void run()
      • close

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