mirror of
https://github.com/anchore/syft.git
synced 2025-11-19 09:23:15 +01:00
18 lines
674 B
Go
18 lines
674 B
Go
package artifact
|
|
|
|
const (
|
|
// OwnershipByFileOverlapRelationship indicates that the parent package claims ownership of a child package since
|
|
// the parent metadata indicates overlap with a location that a cataloger found the child package by. This is
|
|
// by definition a package-to-package relationship and is created only after all package cataloging has been completed.
|
|
OwnershipByFileOverlapRelationship RelationshipType = "ownership-by-file-overlap"
|
|
)
|
|
|
|
type RelationshipType string
|
|
|
|
type Relationship struct {
|
|
From Identifiable `json:"from"`
|
|
To Identifiable `json:"to"`
|
|
Type RelationshipType `json:"type"`
|
|
Data interface{} `json:"data,omitempty"`
|
|
}
|