Documentation ¶
Index ¶
Constants ¶
View Source
const ( DocumentSPDXIdentifier = "DOCUMENT" DocumentNamespace = "http://aquasecurity.github.io/trivy" CreatorOrganization = "aquasecurity" CreatorTool = "trivy" )
View Source
const ( CategoryPackageManager = "PACKAGE-MANAGER" RefTypePurl = "purl" // Package Purpose fields PackagePurposeOS = "OPERATING-SYSTEM" PackagePurposeContainer = "CONTAINER" PackagePurposeSource = "SOURCE" PackagePurposeApplication = "APPLICATION" PackagePurposeLibrary = "LIBRARY" PackageSupplierNoAssertion = "NOASSERTION" PackageSupplierOrganization = "Organization" PackageAnnotatorToolField = "Tool" RelationShipContains = common.TypeRelationshipContains RelationShipDescribe = common.TypeRelationshipDescribe RelationShipDependsOn = common.TypeRelationshipDependsOn ElementOperatingSystem = "OperatingSystem" ElementApplication = "Application" ElementPackage = "Package" ElementFile = "File" )
Variables ¶
View Source
var ( SourcePackagePrefix = "built package from" SourceFilePrefix = "package found in" )
Functions ¶
func NormalizeLicense ¶ added in v0.50.0
func WithHasher ¶
func WithHasher(hasher Hash) marshalOption
Types ¶
type Marshaler ¶
type Marshaler struct {
// contains filtered or unexported fields
}
func NewMarshaler ¶
type SPDX ¶
func (*SPDX) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.