Documentation
¶
Index ¶
- func AppendComponentIfUnique(target []formats.ComponentRow, source []formats.ComponentRow) []formats.ComponentRow
- func AppendImpactPathsIfUnique(original [][]formats.ComponentRow, toAdd [][]formats.ComponentRow, ...) [][]formats.ComponentRow
- func AppendImpactPathsIfUniqueForMultipleRoots(original [][]formats.ComponentRow, toAdd [][]formats.ComponentRow) [][]formats.ComponentRow
- func PrepareSimpleJsonJasIssues(entitledForJas, pretty bool, jasIssues ...*sarif.Run) ([]formats.SourceCodeRow, error)
- func PrepareSimpleJsonLicenses(target results.ScanTarget, licenses []services.License) ([]formats.LicenseRow, error)
- func PrepareSimpleJsonViolations(target results.ScanTarget, descriptors []string, ...) ([]formats.VulnerabilityOrViolationRow, []formats.LicenseViolationRow, ...)
- func PrepareSimpleJsonVulnerabilities(target results.ScanTarget, descriptors []string, ...) ([]formats.VulnerabilityOrViolationRow, error)
- type CmdResultsSimpleJsonConverter
- func (sjc *CmdResultsSimpleJsonConverter) DeprecatedParseLicenses(target results.ScanTarget, ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) DeprecatedParseScaIssues(target results.ScanTarget, descriptors []string, violations bool, ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) Get() (formats.SimpleJsonResults, error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseCVEs(target results.ScanTarget, enrichedSbom results.ScanResult[*cyclonedx.BOM], ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseIacs(_ results.ScanTarget, isViolationsResults bool, ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseNewTargetResults(target results.ScanTarget, errors ...error) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseSast(_ results.ScanTarget, isViolationsResults bool, ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseSbom(_ results.ScanTarget, _ *cyclonedx.BOM) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseSbomLicenses(target results.ScanTarget, components []cyclonedx.Component, ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseSecrets(_ results.ScanTarget, isViolationsResults bool, ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseViolations(target results.ScanTarget, descriptors []string, ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) Reset(_ utils.CommandType, multiScanId, _ string, ...) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendComponentIfUnique ¶
func AppendComponentIfUnique(target []formats.ComponentRow, source []formats.ComponentRow) []formats.ComponentRow
AppendComponentIfUnique checks if the component exists in the components (not based on location) Removing location information for all entries as well to combine the same components from different locations
func AppendImpactPathsIfUnique ¶
func AppendImpactPathsIfUnique(original [][]formats.ComponentRow, toAdd [][]formats.ComponentRow, multipleRoots bool) [][]formats.ComponentRow
func AppendImpactPathsIfUniqueForMultipleRoots ¶
func AppendImpactPathsIfUniqueForMultipleRoots(original [][]formats.ComponentRow, toAdd [][]formats.ComponentRow) [][]formats.ComponentRow
getImpactPathKey return a key that is used as a key to identify and deduplicate impact paths. If an impact path length is equal to directDependencyPathLength, then the direct dependency is the key, and it's in the directDependencyIndex place.
func PrepareSimpleJsonLicenses ¶
func PrepareSimpleJsonLicenses(target results.ScanTarget, licenses []services.License) ([]formats.LicenseRow, error)
func PrepareSimpleJsonViolations ¶
func PrepareSimpleJsonViolations(target results.ScanTarget, descriptors []string, scaResponse services.ScanResponse, pretty, jasEntitled bool, applicabilityRuns ...*sarif.Run) ([]formats.VulnerabilityOrViolationRow, []formats.LicenseViolationRow, []formats.OperationalRiskViolationRow, error)
func PrepareSimpleJsonVulnerabilities ¶
func PrepareSimpleJsonVulnerabilities(target results.ScanTarget, descriptors []string, scaResponse services.ScanResponse, pretty, entitledForJas bool, applicabilityRuns ...*sarif.Run) ([]formats.VulnerabilityOrViolationRow, error)
Types ¶
type CmdResultsSimpleJsonConverter ¶
type CmdResultsSimpleJsonConverter struct {
// contains filtered or unexported fields
}
func NewCmdResultsSimpleJsonConverter ¶
func NewCmdResultsSimpleJsonConverter(pretty, uniqueScaIssues bool) *CmdResultsSimpleJsonConverter
func (*CmdResultsSimpleJsonConverter) DeprecatedParseLicenses ¶ added in v1.20.0
func (sjc *CmdResultsSimpleJsonConverter) DeprecatedParseLicenses(target results.ScanTarget, scaResponse results.ScanResult[services.ScanResponse]) (err error)
func (*CmdResultsSimpleJsonConverter) DeprecatedParseScaIssues ¶ added in v1.20.0
func (sjc *CmdResultsSimpleJsonConverter) DeprecatedParseScaIssues(target results.ScanTarget, descriptors []string, violations bool, scaResponse results.ScanResult[services.ScanResponse], applicableScan ...results.ScanResult[[]*sarif.Run]) (err error)
func (*CmdResultsSimpleJsonConverter) Get ¶
func (sjc *CmdResultsSimpleJsonConverter) Get() (formats.SimpleJsonResults, error)
func (*CmdResultsSimpleJsonConverter) ParseCVEs ¶ added in v1.20.0
func (sjc *CmdResultsSimpleJsonConverter) ParseCVEs(target results.ScanTarget, enrichedSbom results.ScanResult[*cyclonedx.BOM], applicableScan ...results.ScanResult[[]*sarif.Run]) (err error)
func (*CmdResultsSimpleJsonConverter) ParseIacs ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseIacs(_ results.ScanTarget, isViolationsResults bool, iacs []results.ScanResult[[]*sarif.Run]) (err error)
func (*CmdResultsSimpleJsonConverter) ParseNewTargetResults ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseNewTargetResults(target results.ScanTarget, errors ...error) (err error)
func (*CmdResultsSimpleJsonConverter) ParseSast ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseSast(_ results.ScanTarget, isViolationsResults bool, sast []results.ScanResult[[]*sarif.Run]) (err error)
func (*CmdResultsSimpleJsonConverter) ParseSbom ¶ added in v1.16.0
func (sjc *CmdResultsSimpleJsonConverter) ParseSbom(_ results.ScanTarget, _ *cyclonedx.BOM) (err error)
func (*CmdResultsSimpleJsonConverter) ParseSbomLicenses ¶ added in v1.20.0
func (sjc *CmdResultsSimpleJsonConverter) ParseSbomLicenses(target results.ScanTarget, components []cyclonedx.Component, dependencies ...cyclonedx.Dependency) (err error)
func (*CmdResultsSimpleJsonConverter) ParseSecrets ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseSecrets(_ results.ScanTarget, isViolationsResults bool, secrets []results.ScanResult[[]*sarif.Run]) (err error)
func (*CmdResultsSimpleJsonConverter) ParseViolations ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseViolations(target results.ScanTarget, descriptors []string, violations []services.Violation, applicableScan ...results.ScanResult[[]*sarif.Run]) (err error)
func (*CmdResultsSimpleJsonConverter) Reset ¶
func (sjc *CmdResultsSimpleJsonConverter) Reset(_ utils.CommandType, multiScanId, _ string, entitledForJas, multipleTargets bool, _ *xscServices.XscGitInfoContext, generalError error) (err error)
Click to show internal directories.
Click to hide internal directories.