ecrscan

package
v0.0.0-...-c56a0e5 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Evaluator

type Evaluator struct {
	MaxScanAge int
	Logger     *zap.Logger
	ECRClient  ecriface.ECRAPI
}

Evaluator orchestrates the retrieval and analysis of image scan findings

func (*Evaluator) Evaluate

func (e *Evaluator) Evaluate(target *Target) (Report, error)

Evaluate returns vulnerability scan information for a specified ECR image.

type Report

type Report struct {
	TotalFindings int `json:"totalFindings"`
}

Report contains scan finding information to be returned to the caller

type Target

type Target struct {
	Repository string `json:"repository" validate:"required"`
	ImageTag   string `json:"imageTag" validate:"required"`
}

Target specifies the ECR image to retrieve scan findings for

Jump to

Keyboard shortcuts

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