Documentation
¶
Index ¶
- func SetResolutionRepoInParamsIfExists(params *technologies.BuildInfoBomGeneratorParams, tech techutils.Technology) (serverDetails *config.ServerDetails, err error)
- func WithDescriptors(descriptors []string) bom.SbomGeneratorOption
- func WithParams(params technologies.BuildInfoBomGeneratorParams) bom.SbomGeneratorOption
- type BuildInfoBomGenerator
- func (b *BuildInfoBomGenerator) CleanUp() error
- func (b *BuildInfoBomGenerator) GenerateSbom(target results.ScanTarget) (sbom *cyclonedx.BOM, err error)
- func (b *BuildInfoBomGenerator) PrepareGenerator() error
- func (b *BuildInfoBomGenerator) WithOptions(options ...bom.SbomGeneratorOption) bom.SbomGenerator
- type DependencyTreeResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetResolutionRepoInParamsIfExists ¶
func SetResolutionRepoInParamsIfExists(params *technologies.BuildInfoBomGeneratorParams, tech techutils.Technology) (serverDetails *config.ServerDetails, err error)
func WithDescriptors ¶
func WithDescriptors(descriptors []string) bom.SbomGeneratorOption
func WithParams ¶
func WithParams(params technologies.BuildInfoBomGeneratorParams) bom.SbomGeneratorOption
Types ¶
type BuildInfoBomGenerator ¶
type BuildInfoBomGenerator struct {
// contains filtered or unexported fields
}
func NewBuildInfoBomGenerator ¶
func NewBuildInfoBomGenerator() *BuildInfoBomGenerator
func (*BuildInfoBomGenerator) CleanUp ¶
func (b *BuildInfoBomGenerator) CleanUp() error
func (*BuildInfoBomGenerator) GenerateSbom ¶
func (b *BuildInfoBomGenerator) GenerateSbom(target results.ScanTarget) (sbom *cyclonedx.BOM, err error)
func (*BuildInfoBomGenerator) PrepareGenerator ¶
func (b *BuildInfoBomGenerator) PrepareGenerator() error
func (*BuildInfoBomGenerator) WithOptions ¶
func (b *BuildInfoBomGenerator) WithOptions(options ...bom.SbomGeneratorOption) bom.SbomGenerator
type DependencyTreeResult ¶
type DependencyTreeResult struct {
FlatTree *xrayUtils.GraphNode
FullDepTrees []*xrayUtils.GraphNode
DownloadUrls map[string]string
}
func GetDiffDependencyTree ¶
func GetDiffDependencyTree(scanResults *results.TargetResults, resultsToCompare *results.TargetResults, fullDepTrees ...*xrayUtils.GraphNode) (*DependencyTreeResult, error)
Collect dependencies exists in target and not in resultsToCompare
func GetTechDependencyTree ¶
func GetTechDependencyTree(params technologies.BuildInfoBomGeneratorParams, artifactoryServerDetails *config.ServerDetails, tech techutils.Technology) (depTreeResult DependencyTreeResult, err error)
Click to show internal directories.
Click to hide internal directories.