mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
add new package-of relationship
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
4d5997981c
commit
f8a874a3de
@ -1,17 +1,22 @@
|
|||||||
package artifact
|
package artifact
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// OwnershipByFileOverlapRelationship indicates that the parent package claims ownership of a child package since
|
// OwnershipByFileOverlapRelationship (supports package-to-package linkages) indicates that the parent package
|
||||||
// the parent metadata indicates overlap with a location that a cataloger found the child package by. This is
|
// claims ownership of a child package since the parent metadata indicates overlap with a location that a
|
||||||
// by definition a package-to-package relationship and is created only after all package cataloging has been completed.
|
// cataloger found the child package by. This relationship must be created only after all package cataloging
|
||||||
|
// has been completed.
|
||||||
OwnershipByFileOverlapRelationship RelationshipType = "ownership-by-file-overlap"
|
OwnershipByFileOverlapRelationship RelationshipType = "ownership-by-file-overlap"
|
||||||
|
|
||||||
|
// PackageOfRelationship (supports any-to-package linkages) is a proxy for the SPDX 2.2 PACKAGE_OF
|
||||||
|
// relationship which is defined as: "to be used when artifact X is used as a package as part of package Y"
|
||||||
|
PackageOfRelationship RelationshipType = "package-of"
|
||||||
)
|
)
|
||||||
|
|
||||||
type RelationshipType string
|
type RelationshipType string
|
||||||
|
|
||||||
type Relationship struct {
|
type Relationship struct {
|
||||||
From Identifiable `json:"from"`
|
From Identifiable
|
||||||
To Identifiable `json:"to"`
|
To Identifiable
|
||||||
Type RelationshipType `json:"type"`
|
Type RelationshipType
|
||||||
Data interface{} `json:"data,omitempty"`
|
Data interface{}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user