Documentation
¶
Index ¶
- func CreateTargetEmptySbom(target results.ScanTarget) *cyclonedx.BOM
- func DownloadIndexerIfNeeded(xrayManager *xray.XrayServicesManager, xrayVersionStr string) (indexerPath string, err error)
- func WithBypassArchiveLimits(bypass bool) bom.SbomGeneratorOption
- func WithXray(manager *xray.XrayServicesManager, xrayVersion string) bom.SbomGeneratorOption
- type IndexerBomGenerator
- func (ibg *IndexerBomGenerator) CleanUp() error
- func (ibg *IndexerBomGenerator) GenerateSbom(target results.ScanTarget) (sbom *cyclonedx.BOM, err error)
- func (ibg *IndexerBomGenerator) IndexFile(filePath string) (*xrayClientUtils.BinaryGraphNode, error)
- func (ibg *IndexerBomGenerator) PrepareGenerator() (err error)
- func (ibg *IndexerBomGenerator) WithOptions(options ...bom.SbomGeneratorOption) bom.SbomGenerator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTargetEmptySbom ¶
func CreateTargetEmptySbom(target results.ScanTarget) *cyclonedx.BOM
func DownloadIndexerIfNeeded ¶
func DownloadIndexerIfNeeded(xrayManager *xray.XrayServicesManager, xrayVersionStr string) (indexerPath string, err error)
func WithBypassArchiveLimits ¶
func WithBypassArchiveLimits(bypass bool) bom.SbomGeneratorOption
func WithXray ¶
func WithXray(manager *xray.XrayServicesManager, xrayVersion string) bom.SbomGeneratorOption
Types ¶
type IndexerBomGenerator ¶
type IndexerBomGenerator struct {
// contains filtered or unexported fields
}
IndexerBomGenerator is a BomGenerator that uses the Xray Indexer to generate a CycloneDX SBOM. It indexes a file and converts the resulting component graph to a CycloneDX SBOM.
func NewIndexerBomGenerator ¶
func NewIndexerBomGenerator() *IndexerBomGenerator
func (*IndexerBomGenerator) CleanUp ¶
func (ibg *IndexerBomGenerator) CleanUp() error
func (*IndexerBomGenerator) GenerateSbom ¶
func (ibg *IndexerBomGenerator) GenerateSbom(target results.ScanTarget) (sbom *cyclonedx.BOM, err error)
func (*IndexerBomGenerator) IndexFile ¶
func (ibg *IndexerBomGenerator) IndexFile(filePath string) (*xrayClientUtils.BinaryGraphNode, error)
func (*IndexerBomGenerator) PrepareGenerator ¶
func (ibg *IndexerBomGenerator) PrepareGenerator() (err error)
func (*IndexerBomGenerator) WithOptions ¶
func (ibg *IndexerBomGenerator) WithOptions(options ...bom.SbomGeneratorOption) bom.SbomGenerator
Click to show internal directories.
Click to hide internal directories.