Documentation ¶
Index ¶
Constants ¶
View Source
const ( Outside = iota Header = iota Content = iota )
state
Variables ¶
View Source
var Log *logrus.Entry
Log for localhsot
Functions ¶
func GetScanResults ¶
func GetScanResults() (results models.ScanResults, err error)
GetScanResults returns Scan Resutls
func InitServers ¶
InitServers detect the kind of OS distribution of target servers
Types ¶
type CvePacksInfo ¶
type CvePacksInfo struct { CveID string CveDetail cve.CveDetail Packs []models.PackageInfo DistroAdvisories []models.DistroAdvisory // for Aamazon, RHEL CpeNames []string }
CvePacksInfo hold the CVE information.
type CvePacksList ¶
type CvePacksList []CvePacksInfo
CvePacksList have CvePacksInfo list, getter/setter, sortable methods.
func (CvePacksList) FindByCveID ¶
func (s CvePacksList) FindByCveID(cveID string) (pi CvePacksInfo, found bool)
FindByCveID find by CVEID
Click to show internal directories.
Click to hide internal directories.