Documentation ¶
Index ¶
Constants ¶
View Source
const ( SPDXVersion = "SPDX-2.2" DataLicense = "CC0-1.0" SPDXIdentifier = "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" RelationShipContains = "CONTAINS" RelationShipDescribe = "DESCRIBES" RelationShipDependsOn = "DEPENDS_ON" ElementOperatingSystem = "OperatingSystem" ElementApplication = "Application" ElementPackage = "Package" ElementFile = "File" )
Variables ¶
View Source
var (
SourcePackagePrefix = "built package from"
)
Functions ¶
func WithHasher ¶
func WithHasher(hasher Hash) marshalOption
func WithNewUUID ¶
func WithNewUUID(newUUID newUUID) marshalOption
Types ¶
type Marshaler ¶
type Marshaler struct {
// contains filtered or unexported fields
}
func NewMarshaler ¶
func NewMarshaler(opts ...marshalOption) *Marshaler
type SPDX ¶
func (*SPDX) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.