Documentation ¶
Index ¶
- type BaseScanner
- type OpenStackScannerClient
- func (s *OpenStackScannerClient) CheckResults() error
- func (s *OpenStackScannerClient) FetchScanResults() error
- func (s *OpenStackScannerClient) RunScan(o *flags.ScanOptions) error
- func (s *OpenStackScannerClient) TagImage(metadataPrefix string) error
- func (s *OpenStackScannerClient) UploadResultsToS3() error
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 ¶
func NewOpenStackScanner(c interfaces.OpenStackComputeClient, i interfaces.OpenStackImageClient, n interfaces.OpenStackNetworkClient, s3Conn *simple_s3.S3, severity trivy.Severity, img *images.Image) *OpenStackScannerClient
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 ¶
func (s *OpenStackScannerClient) RunScan(o *flags.ScanOptions) error
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.
Click to show internal directories.
Click to hide internal directories.