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, scaResponse services.ScanResponse, ...) ([]formats.VulnerabilityOrViolationRow, []formats.LicenseRow, ...)
- func PrepareSimpleJsonVulnerabilities(target results.ScanTarget, scaResponse services.ScanResponse, ...) ([]formats.VulnerabilityOrViolationRow, error)
- type CmdResultsSimpleJsonConverter
- func (sjc *CmdResultsSimpleJsonConverter) Get() (formats.SimpleJsonResults, error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseIacs(_ results.ScanTarget, iacs ...*sarif.Run) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseLicenses(target results.ScanTarget, licenses []services.License) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseNewTargetResults(target results.ScanTarget, errors ...error) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseSast(_ results.ScanTarget, sast ...*sarif.Run) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseSecrets(_ results.ScanTarget, secrets ...*sarif.Run) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseViolations(target results.ScanTarget, scaResponse services.ScanResponse, ...) (err error)
- func (sjc *CmdResultsSimpleJsonConverter) ParseVulnerabilities(target results.ScanTarget, scaResponse services.ScanResponse, ...) (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, scaResponse services.ScanResponse, pretty, jasEntitled bool, applicabilityRuns ...*sarif.Run) ([]formats.VulnerabilityOrViolationRow, []formats.LicenseRow, []formats.OperationalRiskViolationRow, error)
func PrepareSimpleJsonVulnerabilities ¶
func PrepareSimpleJsonVulnerabilities(target results.ScanTarget, 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) Get ¶
func (sjc *CmdResultsSimpleJsonConverter) Get() (formats.SimpleJsonResults, error)
func (*CmdResultsSimpleJsonConverter) ParseIacs ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseIacs(_ results.ScanTarget, iacs ...*sarif.Run) (err error)
func (*CmdResultsSimpleJsonConverter) ParseLicenses ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseLicenses(target results.ScanTarget, licenses []services.License) (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, sast ...*sarif.Run) (err error)
func (*CmdResultsSimpleJsonConverter) ParseSecrets ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseSecrets(_ results.ScanTarget, secrets ...*sarif.Run) (err error)
func (*CmdResultsSimpleJsonConverter) ParseViolations ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseViolations(target results.ScanTarget, scaResponse services.ScanResponse, applicabilityRuns ...*sarif.Run) (err error)
func (*CmdResultsSimpleJsonConverter) ParseVulnerabilities ¶
func (sjc *CmdResultsSimpleJsonConverter) ParseVulnerabilities(target results.ScanTarget, scaResponse services.ScanResponse, applicabilityRuns ...*sarif.Run) (err error)
func (*CmdResultsSimpleJsonConverter) Reset ¶
func (sjc *CmdResultsSimpleJsonConverter) Reset(_ utils.CommandType, multiScanId, _ string, entitledForJas, multipleTargets bool, generalError error) (err error)
Click to show internal directories.
Click to hide internal directories.