Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Providers = []Reader{ &SPDX{}, &CycloneDX{}, } )
Functions ¶
This section is empty.
Types ¶
type CycloneDX ¶
type CycloneDX struct{}
func (*CycloneDX) GetPackages ¶
func (c *CycloneDX) GetPackages(r io.ReadSeeker, callback func(Identifier) error) error
func (*CycloneDX) MatchesRecognizedFileNames ¶ added in v1.3.0
type Identifier ¶
type Identifier struct {
PURL string
}
Identifier is the identifier extracted from the SBOM.
type InvalidFormatError ¶ added in v1.3.2
func (InvalidFormatError) Error ¶ added in v1.3.2
func (e InvalidFormatError) Error() string
type Reader ¶ added in v1.5.0
type Reader interface { Name() string // MatchesRecognizedFileNames checks if the file path is a standard recognized file name MatchesRecognizedFileNames(path string) bool GetPackages(r io.ReadSeeker, callback func(Identifier) error) error }
Reader is an interface for all SBOM providers.
type SPDX ¶
type SPDX struct{}
func (*SPDX) GetPackages ¶
func (s *SPDX) GetPackages(r io.ReadSeeker, callback func(Identifier) error) error
func (*SPDX) MatchesRecognizedFileNames ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.