simplejsonparser

package
v1.25.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 31, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 PrepareSimpleJsonJasIssues

func PrepareSimpleJsonJasIssues(entitledForJas, pretty bool, jasIssues ...*sarif.Run) ([]formats.SourceCodeRow, error)

func PrepareSimpleJsonLicenses

func PrepareSimpleJsonLicenses(target results.ScanTarget, licenses []services.License) ([]formats.LicenseRow, 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(scaResponse services.ScanResponse) (err error)

func (*CmdResultsSimpleJsonConverter) DeprecatedParseScaVulnerabilities added in v1.23.0

func (sjc *CmdResultsSimpleJsonConverter) DeprecatedParseScaVulnerabilities(descriptors []string, scaResponse services.ScanResponse, applicableScan ...[]*sarif.Run) (err error)

func (*CmdResultsSimpleJsonConverter) Get

func (*CmdResultsSimpleJsonConverter) ParseCVEs added in v1.20.0

func (sjc *CmdResultsSimpleJsonConverter) ParseCVEs(enrichedSbom *cyclonedx.BOM, applicableScan ...[]*sarif.Run) (err error)

func (*CmdResultsSimpleJsonConverter) ParseIacs

func (sjc *CmdResultsSimpleJsonConverter) ParseIacs(iacs ...[]*sarif.Run) (err error)

func (*CmdResultsSimpleJsonConverter) ParseMalicious added in v1.25.0

func (sjc *CmdResultsSimpleJsonConverter) ParseMalicious(malicious ...[]*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(sast ...[]*sarif.Run) (err error)

func (*CmdResultsSimpleJsonConverter) ParseSbom added in v1.16.0

func (sjc *CmdResultsSimpleJsonConverter) ParseSbom(_ *cyclonedx.BOM) (err error)

func (*CmdResultsSimpleJsonConverter) ParseSbomLicenses added in v1.20.0

func (sjc *CmdResultsSimpleJsonConverter) ParseSbomLicenses(components []cyclonedx.Component, dependencies ...cyclonedx.Dependency) (err error)

func (*CmdResultsSimpleJsonConverter) ParseSecrets

func (sjc *CmdResultsSimpleJsonConverter) ParseSecrets(secrets ...[]*sarif.Run) (err error)

func (*CmdResultsSimpleJsonConverter) ParseViolations

func (sjc *CmdResultsSimpleJsonConverter) ParseViolations(violationsScanResults violationutils.Violations) (err error)

func (*CmdResultsSimpleJsonConverter) Reset

func (sjc *CmdResultsSimpleJsonConverter) Reset(metadata results.ResultsMetaData, statusCodes results.ResultsStatus, multipleTargets bool) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL