postprocessors

package
v0.0.0-...-e4b6a09 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Converter is the global native scan report converter
	Converter = NewNativeToRelationalSchemaConverter()
)

Functions

This section is empty.

Types

type CVS

type CVS struct {
	CVSS map[string]map[string]interface{} `json:"CVSS"`
}

CVS ...

type NativeScanReportConverter

type NativeScanReportConverter interface {
	ToRelationalSchema(ctx context.Context, reportUUID string, registrationUUID string, digest string, reportData string) (string, string, error)
	FromRelationalSchema(ctx context.Context, reportUUID string, artifactDigest string, reportSummary string) (string, error)
}

NativeScanReportConverter is an interface that establishes the contract for the conversion process of a harbor native vulnerability report It is the responsibility of the implementation to store the report in a manner easily retrievable using the report UUID

func NewNativeToRelationalSchemaConverter

func NewNativeToRelationalSchemaConverter() NativeScanReportConverter

NewNativeToRelationalSchemaConverter returns a new instance of a V1 report to V2 report converter

Jump to

Keyboard shortcuts

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