converter

package
v16.11.2 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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 (c *Converter) ToLinks(proto []*prototool.Link) []report.Link

func (*Converter) ToLocation

func (c *Converter) ToLocation(proto *prototool.Location) report.Location

func (*Converter) ToSeverity

func (c *Converter) ToSeverity(severity string) report.SeverityLevel

Jump to

Keyboard shortcuts

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