Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
InvalidFormat = errors.New("invalid format")
)
View Source
var ( Providers = []SBOMReader{ &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
type Identifier ¶
type Identifier struct {
PURL string
}
Identifier is the identifier extracted from the SBOM.
type SBOMReader ¶
type SBOMReader interface { Name() string GetPackages(io.ReadSeeker, func(Identifier) error) error }
SBOMReader 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
Click to show internal directories.
Click to hide internal directories.