Documentation ¶
Index ¶
Constants ¶
View Source
const ( DocumentSPDXIdentifier = "DOCUMENT" DocumentNamespace = "http://khulnasoft.github.io/vul" CreatorOrganization = "khulnasoft" CreatorTool = "vul" )
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 ¶
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 ¶
type SPDX ¶
func (*SPDX) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.