Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ScannerClient ¶ added in v1.0.0
type ScannerClient struct {
// contains filtered or unexported fields
}
func NewScanner ¶ added in v1.0.0
func NewScanner(c *ostack.ComputeClient, i *ostack.ImageClient, n *ostack.NetworkClient, s3Conn *s3.S3) *ScannerClient
func (*ScannerClient) CheckResultsTagImageAndUploadToS3 ¶ added in v1.0.0
func (s *ScannerClient) CheckResultsTagImageAndUploadToS3(img *images.Image, autoDelete, skipCVECheck bool) error
CheckResultsTagImageAndUploadToS3 checks the results file for vulns and parses it into a more friendly format. Then it tags the image with the passed or failed property, and then it uploads to S3 - horrible.
func (*ScannerClient) FetchScanResults ¶ added in v1.0.0
func (s *ScannerClient) FetchScanResults(imgID string) error
func (*ScannerClient) RunScan ¶ added in v1.0.0
func (s *ScannerClient) RunScan(o *flags.ScanOptions, severity trivy.Severity, img *images.Image) error
Click to show internal directories.
Click to hide internal directories.