UNPKG

snyk-go-plugin

Version:
15 lines (14 loc) 827 B
import { DepGraph, DepGraphBuilder } from '@snyk/dep-graph'; import { GoPackage, Options } from './types'; export declare function getDepGraph(root: string, targetFile: string, options?: Options): Promise<DepGraph>; interface GraphOptions { stdlibVersion?: string; additionalArgs?: string[]; includeGoStandardLibraryDeps?: boolean; includePackageUrls?: boolean; } export declare function buildDepGraphFromImportsAndModules(root?: string, targetFile?: string, options?: GraphOptions): Promise<DepGraph>; export declare function 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; export {};