scan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2016 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Outside = iota
	Header  = iota
	Content = iota
)

state

Variables

Log for localhsot

Functions

func GetScanResults

func GetScanResults() (results models.ScanResults, err error)

GetScanResults returns Scan Resutls

func InitServers

func InitServers(localLogger *logrus.Entry) (err error)

InitServers detect the kind of OS distribution of target servers

func Prepare

func Prepare() []error

Prepare installs requred packages to scan vulnerabilities.

func Scan

func Scan() []error

Scan scan

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

func (CvePacksList) Len

func (s CvePacksList) Len() int

Len implement Sort Interface

func (CvePacksList) Less

func (s CvePacksList) Less(i, j int) bool

Less implement Sort Interface

func (CvePacksList) Swap

func (s CvePacksList) Swap(i, j int)

Swap implement Sort Interface

Jump to

Keyboard shortcuts

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