Documentation ¶
Index ¶
- type CyclondexAffectedPackage
- type CyclonedxAdvisory
- type CyclonedxComponent
- type CyclonedxRating
- type CyclonedxReportMin
- type CyclonedxSource
- type CyclonedxVulnerability
- type GitLeaksReportMin
- type GitleaksFinding
- type GrypeArtifact
- type GrypeDescriptor
- type GrypeMatch
- type GrypeReportMin
- type GrypeVulnerability
- type SemgrepExtra
- type SemgrepMetadata
- type SemgrepReportMin
- type SemgrepResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CyclondexAffectedPackage ¶
type CyclondexAffectedPackage struct {
Ref string `json:"ref"`
}
type CyclonedxAdvisory ¶
type CyclonedxAdvisory struct {
URL string `json:"url"`
}
type CyclonedxComponent ¶
type CyclonedxRating ¶
type CyclonedxRating struct { Source CyclonedxSource `json:"source"` Severity string `json:"severity"` }
type CyclonedxReportMin ¶
type CyclonedxReportMin struct { Components []CyclonedxComponent `json:"components"` Vulnerabilities []CyclonedxVulnerability `json:"vulnerabilities"` }
CyclonedxReportMin is a minimum representation of an Cyclonedx scan report
It contains only the necessary fields for validation and listing
func (CyclonedxReportMin) AffectedPackages ¶
func (r CyclonedxReportMin) AffectedPackages(vulnerabilityIndex int) string
func (*CyclonedxReportMin) SelectBySeverity ¶
func (r *CyclonedxReportMin) SelectBySeverity(severity string) []CyclonedxVulnerability
type CyclonedxSource ¶
type CyclonedxSource struct {
Name string `json:"name"`
}
type CyclonedxVulnerability ¶
type CyclonedxVulnerability struct { ID string `json:"id"` Advisories []CyclonedxAdvisory `json:"advisories"` Affects []CyclondexAffectedPackage `json:"affects"` Ratings []CyclonedxRating `json:"ratings"` }
func (*CyclonedxVulnerability) HighestSeverity ¶
func (r *CyclonedxVulnerability) HighestSeverity() string
type GitLeaksReportMin ¶
type GitLeaksReportMin []GitleaksFinding
func (*GitLeaksReportMin) Count ¶
func (r *GitLeaksReportMin) Count() int
type GitleaksFinding ¶
type GitleaksFinding struct { RuleID string `json:"RuleID"` File string `json:"File"` Commit string `json:"Commit"` StartLine int `json:"StartLine"` }
func (*GitleaksFinding) CommitShort ¶
func (f *GitleaksFinding) CommitShort() string
func (*GitleaksFinding) FileShort ¶
func (f *GitleaksFinding) FileShort() string
type GrypeArtifact ¶
type GrypeDescriptor ¶
type GrypeMatch ¶
type GrypeMatch struct { Artifact GrypeArtifact `json:"artifact"` Vulnerability GrypeVulnerability `json:"vulnerability"` }
type GrypeReportMin ¶
type GrypeReportMin struct { Descriptor GrypeDescriptor `json:"descriptor"` Matches []GrypeMatch `json:"matches"` }
GrypeReportMin is a minimum representation of an Anchore Grype scan report
It contains only the necessary fields for validation and listing
func (*GrypeReportMin) SelectBySeverity ¶
func (g *GrypeReportMin) SelectBySeverity(severity string) []GrypeMatch
type GrypeVulnerability ¶
type SemgrepExtra ¶
type SemgrepExtra struct { Severity string `json:"severity"` Metadata SemgrepMetadata `json:"metadata"` Message string `json:"message"` }
type SemgrepMetadata ¶
type SemgrepMetadata struct { Category string `json:"category"` Confidence string `json:"confidence"` CWE any `json:"cwe"` Impact string `json:"impact"` Likelihood string `json:"likelihood"` Shortlink string `json:"shortlink"` Owasp any `json:"owasp"` }
func (*SemgrepMetadata) OwaspIDs ¶
func (s *SemgrepMetadata) OwaspIDs() string
type SemgrepReportMin ¶
type SemgrepReportMin struct { Version string `json:"version"` Errors []semgrepError `json:"errors"` Results []SemgrepResults `json:"results"` }
func (*SemgrepReportMin) SelectBySeverity ¶
func (s *SemgrepReportMin) SelectBySeverity(severity string) []SemgrepResults
type SemgrepResults ¶
type SemgrepResults struct { Extra SemgrepExtra `json:"extra"` CheckID string `json:"check_id"` }
func (*SemgrepResults) ShortCheckID ¶
func (s *SemgrepResults) ShortCheckID() string
Click to show internal directories.
Click to hide internal directories.