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" PropertySchemaVersion = "SchemaVersion" // Image properties PropertySize = "Size" PropertyImageID = "ImageID" PropertyRepoDigest = "RepoDigest" PropertyDiffID = "DiffID" PropertyRepoTag = "RepoTag" // Package properties PropertyPkgID = "PkgID" PropertyLayerDiffID = "LayerDiffID" PropertyLayerDigest = "LayerDigest" // Package Purpose fields PackagePurposeOS = "OPERATING-SYSTEM" PackagePurposeContainer = "CONTAINER" PackagePurposeSource = "SOURCE" PackagePurposeApplication = "APPLICATION" PackagePurposeLibrary = "LIBRARY" PackageSupplierNoAssertion = "NOASSERTION" PackageSupplierOrganization = "Organization" 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"
)
Functions ¶
func GetLicense ¶ added in v0.38.3
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.