snyk-go-plugin

  • Version 1.28.0
  • Published
  • 123 kB
  • 8 dependencies
  • Apache-2.0 license

Install

npm i snyk-go-plugin
yarn add snyk-go-plugin
pnpm add snyk-go-plugin

Overview

Snyk CLI Golang plugin

Index

Functions

function buildDepGraphFromImportsAndModules

buildDepGraphFromImportsAndModules: (
root?: string,
targetFile?: string,
options?: GraphOptions
) => Promise<DepGraph>;

    function buildGraph

    buildGraph: (
    depGraphBuilder: DepGraphBuilder,
    depPackages: string[],
    packagesByName: { [name: string]: GoPackage },
    currentParent: string,
    childrenChain: Map<string, string[]>,
    ancestorsChain: Map<string, string[]>,
    options: GraphOptions,
    visited?: Set<string>
    ) => void;

      function inspect

      inspect: (
      root: string,
      targetFile: string,
      options?: Options
      ) => Promise<DepGraphResult | DepTreeResult>;

        function jsonParse

        jsonParse: <T = any>(s: string) => T;

          Interfaces

          interface DepDict

          interface DepDict {}

            index signature

            [name: string]: DepTree;

              interface DepTree

              interface DepTree {}

                property dependencies

                dependencies?: DepDict;

                  property name

                  name: string;

                    property packageFormatVersion

                    packageFormatVersion?: string;

                      property version

                      version?: string;

                        Package Files (4)

                        Dependencies (8)

                        Dev Dependencies (13)

                        Peer Dependencies (0)

                        No peer dependencies.

                        Badge

                        To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                        You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/snyk-go-plugin.

                        • Markdown
                          [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/snyk-go-plugin)
                        • HTML
                          <a href="https://www.jsdocs.io/package/snyk-go-plugin"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>