snyk-go-plugin

  • Version 1.18.0
  • Published
  • 87.4 kB
  • 6 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
) => Promise<DepGraph>;

    function inspect

    inspect: (
    root: any,
    targetFile: any,
    options?: Options
    ) => Promise<
    | {
    plugin: { name: string; runtime: string | undefined; targetFile: any };
    dependencyGraph: DepGraph | undefined;
    package?: undefined;
    }
    | {
    plugin: { name: string; runtime: string | undefined; targetFile: any };
    package: DepTree | undefined;
    dependencyGraph?: undefined;
    }
    >;

      function jsonParse

      jsonParse: (s: string) => any;

        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 (1)

                      Dependencies (6)

                      Dev Dependencies (8)

                      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>