scan

package
v0.1.0-beta.6 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func FetchResultsFromServer(freeIP string, kp *keypairs.KeyPair) error

FetchResultsFromServer pulls the results.json from the remote scanning server.

func NewScanCommand

func NewScanCommand() *cobra.Command

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.

Jump to

Keyboard shortcuts

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