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 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
Click to show internal directories.
Click to hide internal directories.