Documentation
¶
Index ¶
- func CheckForVulnerabilities(checkScore float64, checkSeverity string) []trivy.ScanFailedReport
- func FetchResultsFromServer(freeIP string, kp *keypairs.KeyPair) error
- func NewScanCommand() *cobra.Command
- func RemoveScanningResources(serverID, keyName string, fip *floatingips.FloatingIP, os *ostack.Client)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForVulnerabilities ¶
func CheckForVulnerabilities(checkScore float64, checkSeverity string) []trivy.ScanFailedReport
CheckForVulnerabilities will scan the results file for any 7+ CVE scores and if so will delete the image from Openstack and bail out here.
func FetchResultsFromServer ¶
FetchResultsFromServer pulls the results.json from the remote scanning server.
func NewScanCommand ¶
NewScanCommand creates a command that allows the scanning of an image.
func RemoveScanningResources ¶
func RemoveScanningResources(serverID, keyName string, fip *floatingips.FloatingIP, os *ostack.Client)
RemoveScanningResources cleans up the server and keypair from Openstack to ensure nothing is left lying around.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.