Documentation
¶
Index ¶
Constants ¶
View Source
const ( // PropertyImage names the container image a component was found in (the reference it was analyzed under). PropertyImage = "altshift:sbom:image" // PropertyImageId carries the image ID (the config digest) of a container component. PropertyImageId = "altshift:sbom:image:id" // PropertyPath is the absolute path inside the image (or the local path given) a component was read from; a // component found in several places carries one property per path. PropertyPath = "altshift:sbom:path" // PropertyLayer is the diff ID ("sha256:...") of the image layer that last wrote the file a component was read // from — the layer that introduced (or last changed) it; a component found in several places carries one // property per layer. PropertyLayer = "altshift:sbom:layer" )
The properties this generator writes on components.
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,omitzero"`
Scope Scope `json:"scope,omitzero"`
Purl string `json:"purl,omitzero"`
BomRef string `json:"bom-ref,omitzero"`
Hashes []*Hash `json:"hashes,omitzero"`
Licenses []*LicenseChoice `json:"licenses,omitzero"`
ExternalReferences []*ExternalReference `json:"externalReferences,omitzero"`
Properties []*Property `json:"properties,omitzero"`
// Components nested in this one, e.g. the packages inside a container image.
Components []*Component `json:"components,omitzero"`
}
type ComponentType ¶
type ComponentType string
const ( ComponentTypeLibrary ComponentType = "library" ComponentTypeApplication ComponentType = "application" ComponentTypeFramework ComponentType = "framework" ComponentTypeContainer ComponentType = "container" ComponentTypeOperatingSystem ComponentType = "operating-system" )
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.