Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileTreeContext ¶
type FileTreeContext struct {
NodeModulesTree []string `json:"nodeModulesTree,omitempty"`
GitignoreContent string `json:"gitignoreContent,omitempty"`
LockfileMap map[string]string `json:"lockfileMap"`
MonorepoInfo *MonorepoInfo `json:"monorepoInfo,omitempty"`
ManifestRelPath string `json:"manifestRelPath"`
}
FileTreeContext holds SCA-relevant filesystem metadata for a manifest file.
func Collect ¶
func Collect(manifestPath, repoRoot, ecosystem string) *FileTreeContext
Collect gathers filesystem metadata for a manifest file. repoRoot may be empty if not in a git repo.
type MonorepoInfo ¶
type MonorepoInfo struct {
IsMonorepo bool `json:"isMonorepo"`
WorkspaceType string `json:"workspaceType"`
WorkspacePaths []string `json:"workspacePaths,omitempty"`
}
MonorepoInfo describes workspace/monorepo configuration.
Click to show internal directories.
Click to hide internal directories.