mirror of
https://github.com/anchore/syft.git
synced 2026-11-01 23:16:30 +01:00
rename Identity() to ID()
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
@@ -71,7 +71,7 @@ func toPackageModel(p pkg.Package) model.Package {
|
||||
|
||||
return model.Package{
|
||||
PackageBasicData: model.PackageBasicData{
|
||||
ID: string(p.Identity()),
|
||||
ID: string(p.ID()),
|
||||
Name: p.Name,
|
||||
Version: p.Version,
|
||||
Type: p.Type,
|
||||
@@ -93,8 +93,8 @@ func toRelationshipModel(relationships []artifact.Relationship) []model.Relation
|
||||
result := make([]model.Relationship, len(relationships))
|
||||
for i, r := range relationships {
|
||||
result[i] = model.Relationship{
|
||||
Parent: string(r.From.Identity()),
|
||||
Child: string(r.To.Identity()),
|
||||
Parent: string(r.From.ID()),
|
||||
Child: string(r.To.ID()),
|
||||
Type: string(r.Type),
|
||||
Metadata: r.Data,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user