Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
Type ComponentType `json:"type"`
Name string `json:"name"`
Version string `json:"version,omitempty"`
Purl string `json:"purl,omitempty"`
BomRef string `json:"bom-ref,omitempty"`
Hashes []Hash `json:"hashes,omitzero"`
Licenses []LicenseChoice `json:"licenses,omitzero"`
ExternalReferences []ExternalReference `json:"externalReferences,omitzero"`
}
type ComponentType ¶
type ComponentType string
const ( ComponentTypeLibrary ComponentType = "library" ComponentTypeApplication ComponentType = "application" ComponentTypeFramework ComponentType = "framework" ComponentTypeContainer ComponentType = "container" )
type Dependency ¶
type ExternalReference ¶
type Hash ¶
type Hash struct {
Algorithm HashAlgorithm `json:"alg"`
Content string `json:"content"`
}
type HashAlgorithm ¶
type HashAlgorithm string
const ( HashAlgorithmSHA256 HashAlgorithm = "SHA-256" HashAlgorithmSHA512 HashAlgorithm = "SHA-512" )
type LicenseChoice ¶
type LicenseChoice struct {
License *License `json:"license,omitzero"`
}
Click to show internal directories.
Click to hide internal directories.