store

package
v0.0.0-...-7dfc719 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type ReportOrError

type ReportOrError struct {
	Error      error
	VulnReport *api.HarborVulnerabilityReport
	SbomReport *api.HarborSbomReport
}

type Store

type Store interface {
	SetRequest(api.ScanRequestId, *api.ScanRequest)
	GetRequest(api.ScanRequestId) (*api.ScanRequest, error)
	SetReportOrError(api.ScanRequestId, *ReportOrError)
	GetReportOrError(api.ScanRequestId) (*ReportOrError, error)
}

func New

func New() Store

Jump to

Keyboard shortcuts

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