Documentation
¶
Index ¶
- func GetGolangDeps(path string) (map[string]GoPkg, error)
- func GetJarDeps(path string) (map[string]string, error)
- func GetMvnDeps(path string) (map[string]string, error)
- func GetNodeJSDeps(path string) (map[string]NodeJSGather, error)
- func GetPythonDeps(path string) (map[string]string, error)
- func GetRubyDeps(path string) (map[string]string, error)
- type GlideDeps
- type GoListDeps
- type GoPkg
- type GoPkgLockDeps
- type NodeJSGather
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGolangDeps ¶
GetGolangDeps uses `go list` gather a list of dependencies located at `path` returning an array of `GoPkg` structs
func GetJarDeps ¶
GetJarDeps uses github.com/mcoops/jargo retrieve the java dependencies
func GetMvnDeps ¶
GetMvnDeps uses the mvn command to attempt to list the dependencies for a given project located at `path`
func GetNodeJSDeps ¶
func GetNodeJSDeps(path string) (map[string]NodeJSGather, error)
GetNodeJSDeps scans the path for either `yarn.lock` or `package-lock.json`, then use the appropriate pkg managers to produce depencies lists of type `NodeJSGather`
func GetPythonDeps ¶
GetPythonDeps scans path for python deps using the `requirements.txt` file
Types ¶
type GlideDeps ¶ added in v1.0.15
func GetGlideDeps ¶ added in v1.0.15
type GoListDeps ¶
type GoListDeps struct { ImportPath string `json:"ImportPath"` Module struct { Version string `json:"Version"` Replace struct { Version string `json:"Version"` } `json:"Replace"` } `json:"Module"` GoFiles []string `json:"GoFiles"` }
GoListDeps holds the import path, version and gofiles for a given go dependency
type GoPkgLockDeps ¶ added in v1.0.14
func GetGoPkgDeps ¶ added in v1.0.14
func GetGoPkgDeps(path string) ([]GoPkgLockDeps, error)
type NodeJSGather ¶
NodeJSGather dependencies found, name and version