Documentation ¶
Index ¶
Constants ¶
View Source
const ( DocumentNamespace = "https://deepfactor.io" CreatorOrganization = "Deepfactor" CreatorTool = "dfctl" DocumentSPDXIdentifier = "DOCUMENT" )
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" PropertyPkgIsDev = "PkgIsDev" // 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
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.