Documentation ¶
Index ¶
- Constants
- type Converter
- func (c *Converter) ToIdentifiers(proto []*prototool.Identifier) []report.Identifier
- func (c *Converter) ToKubernetesResource(proto *prototool.KubernetesResource) *report.KubernetesResource
- func (c *Converter) ToLinks(proto []*prototool.Link) []report.Link
- func (c *Converter) ToLocation(proto *prototool.Location) report.Location
- func (c *Converter) ToSeverity(severity string) report.SeverityLevel
Constants ¶
View Source
const ( SeverityCritical = "CRITICAL" SeverityHigh = "HIGH" SeverityMedium = "MEDIUM" SeverityLow = "LOW" SeverityNone = "NONE" // Kept for legacy reasons since starboard contains this severity level SeverityUnknown = "UNKNOWN" )
Adapted from severityNames in Trivy-db https://gitlab.com/gitlab-org/security-products/dependencies/trivy-db/-/blob/2bd1364579ec652f8f595c4a61595fd9575e8496/pkg/types/types.go#L35
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Converter ¶
type Converter struct{}
Converter translate prototool packages to report packages
func (*Converter) ToIdentifiers ¶
func (c *Converter) ToIdentifiers(proto []*prototool.Identifier) []report.Identifier
func (*Converter) ToKubernetesResource ¶
func (c *Converter) ToKubernetesResource(proto *prototool.KubernetesResource) *report.KubernetesResource
func (*Converter) ToLocation ¶
func (*Converter) ToSeverity ¶
func (c *Converter) ToSeverity(severity string) report.SeverityLevel
Click to show internal directories.
Click to hide internal directories.