scanner

package
v1.2.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseScanner

type BaseScanner struct {
	ResultsFile string
	MetaTag     string
	Vulns       []trivy.ScanFailedReport
}

type OpenStackScannerClient

type OpenStackScannerClient struct {
	BaseScanner
	Img *images.Image
	// contains filtered or unexported fields
}

func NewOpenStackScanner

NewOpenStackScanner returns new scanner client.

func (*OpenStackScannerClient) CheckResults

func (s *OpenStackScannerClient) CheckResults() error

CheckResults checks the results file for vulnerabilitie-s and parses it into a more friendly format.

func (*OpenStackScannerClient) FetchScanResults

func (s *OpenStackScannerClient) FetchScanResults() error

func (*OpenStackScannerClient) RunScan

RunScan builds the server for scanning and starts the scan

func (*OpenStackScannerClient) TagImage

func (s *OpenStackScannerClient) TagImage(metadataPrefix string) error

TagImage Tags the image with the passed or failed property.

func (*OpenStackScannerClient) UploadResultsToS3

func (s *OpenStackScannerClient) UploadResultsToS3() error

UploadResultsToS3 uploads the scan results to S3.

Jump to

Keyboard shortcuts

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