depsgraph

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DepsNode

type DepsNode struct {
	ParentKey  string
	Deps       []models.Dependency
	AnalyzedAt *time.Time
}

type DepsTreeEdge

type DepsTreeEdge struct {
	models.DepsTreeEdge
	ChildAnalyzedAt *time.Time `json:"analyzed_at,omitempty"`
}

type PathInfo

type PathInfo = types.PathInfo

type SBOMNode

type SBOMNode struct {
	Key            string
	Deps           []string
	AnalyzedAt     *time.Time
	Ecosystem      *string
	PackageName    *string
	PackageVersion *string
	Violations     []violations.Violation
	// Location is the manifest file + line that declared this dep, populated
	// from parsers that record source positions (npm/yarn/pnpm/bun
	// package.json, pip requirements.txt, ruby Gemfile, etc.).
	//
	// Only set on nodes that the parser-built dep tree treats as direct (edge
	// from rootKey). Transitives and the root are nil. Lockfile-resolved
	// versioned keys (e.g. "package/npm/lodash?version=4.17.20") are also nil
	// even when logically direct: locations come from the manifest, not the
	// lockfile, so they attach to the unversioned key the parser produced.
	Location *models.LocationInfo
}

Jump to

Keyboard shortcuts

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