Merge "Add deps tracking for SBOMs"

This commit is contained in:
Ibrahim Kanouche
2023-01-18 16:11:49 +00:00
committed by Gerrit Code Review
3 changed files with 152 additions and 9 deletions

View File

@@ -88,6 +88,15 @@ func (lg *LicenseGraph) Targets() TargetNodeList {
return targets
}
// TargetNames returns the list of target node names in the graph. (unordered)
func (lg *LicenseGraph) TargetNames() []string {
targets := make([]string, 0, len(lg.targets))
for target := range lg.targets {
targets = append(targets, target)
}
return targets
}
// compliance-only LicenseGraph methods
// newLicenseGraph constructs a new, empty instance of LicenseGraph.