Documentation ¶
Index ¶
Constants ¶
View Source
const ( DocumentSPDXIdentifier = "DOCUMENT" DocumentNamespace = "http://khulnasoft.github.io/tunnel" CreatorOrganization = "khulnasoft" CreatorTool = "tunnel" )
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 ¶
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.