Documentation ¶
Index ¶
Constants ¶
View Source
const ( CapabilityTypeSBOM = "sbom" CapabilityTypeVulnerability = "vulnerability" VulnerabilityDatabaseUpdatedAt = "harbor.scanner-adapter/vulnerability-database-updated-at" MimeTypeOCIArtifact = "application/vnd.oci.image.manifest.v1+json" MimeTypeDockerArtifact = "application/vnd.docker.distribution.manifest.v2+json" MimeTypeNativeReport = "application/vnd.scanner.adapter.vuln.report.harbor+json; version=1.0" MimeTypeGenericVulnerabilityReport = "application/vnd.security.vulnerability.report; version=1.1" MimeTypeSbomReport = "application/vnd.security.sbom.report+json; version=1.0" )
Variables ¶
View Source
var (
ErrReportNotFound = errors.New("report not found")
)
Functions ¶
This section is empty.
Types ¶
type Scanner ¶
type Scanner struct {
// contains filtered or unexported fields
}
func (*Scanner) GetReport ¶
func (s *Scanner) GetReport(scanRequestId api.ScanRequestId) (*api.HarborVulnerabilityReport, *api.HarborSbomReport, error)
func (*Scanner) Metadata ¶
func (s *Scanner) Metadata() *api.ScannerAdapterMetadata
func (*Scanner) Scan ¶
func (s *Scanner) Scan(scanRequest *api.ScanRequest) (api.ScanRequestId, error)
Click to show internal directories.
Click to hide internal directories.