filetree

package
v1.28.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL