Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultOptions = options.Options{ OS: options.OSInfo{ ID: "alpine", Name: "Alpine Linux", Version: "Unknown", }, ImageInfo: options.ImageInfo{ Images: []options.ArchImageInfo{}, }, FileName: "sbom", Formats: []string{"spdx", "cyclonedx"}, }
Functions ¶
This section is empty.
Types ¶
type SBOM ¶
type SBOM struct { Generators map[string]generator.Generator Options options.Options // contains filtered or unexported fields }
func NewWithWorkDir ¶
func NewWithWorkDir(path string, a types.Architecture) *SBOM
NewWithWorkDir returns a new sbom object with a working dir preset
func (*SBOM) GenerateIndex ¶ added in v0.5.0
Generate creates the sboms according to the options set
func (*SBOM) ReadLayerTarball ¶ added in v0.5.0
ReadLayerTarball reads an apko layer tarball and adds its metadata to the SBOM options
func (*SBOM) ReadPackageIndex ¶
ReadPackageIndex parses the package index in the working directory and returns a slice of the installed packages
func (*SBOM) ReadReleaseData ¶
func (*SBOM) SetImplementation ¶
func (s *SBOM) SetImplementation(impl sbomImplementation)
Click to show internal directories.
Click to hide internal directories.