Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alpine ¶ added in v0.4.2
type Alpine struct {
Base
}
Alpine is the struct of Alpine Linux
func (Alpine) FillWithOval ¶ added in v0.4.2
FillWithOval returns scan result after updating CVE info by OVAL
type Base ¶
type Base struct {
// contains filtered or unexported fields
}
Base is a base struct
func (Base) CheckIfOvalFetched ¶
CheckIfOvalFetched checks if oval entries are in DB by family, release.
type Client ¶
type Client interface { CheckHTTPHealth() error FillWithOval(db.DB, *models.ScanResult) (int, error) // CheckIfOvalFetched checks if oval entries are in DB by family, release. CheckIfOvalFetched(db.DB, string, string) (bool, error) CheckIfOvalFresh(db.DB, string, string) (bool, error) }
Client is the interface of OVAL client.
type Debian ¶
type Debian struct {
DebianBase
}
Debian is the interface for Debian OVAL
func (Debian) FillWithOval ¶
FillWithOval returns scan result after updating CVE info by OVAL
type DebianBase ¶
type DebianBase struct {
Base
}
DebianBase is the base struct of Debian and Ubuntu
type RedHatBase ¶
type RedHatBase struct {
Base
}
RedHatBase is the base struct for RedHat and CentOS
func (RedHatBase) FillWithOval ¶
func (o RedHatBase) FillWithOval(driver db.DB, r *models.ScanResult) (nCVEs int, err error)
FillWithOval returns scan result after updating CVE info by OVAL
type SUSE ¶ added in v0.4.1
type SUSE struct {
Base
}
SUSE is the struct of SUSE Linux
func (SUSE) FillWithOval ¶ added in v0.4.1
FillWithOval returns scan result after updating CVE info by OVAL
type Ubuntu ¶
type Ubuntu struct {
DebianBase
}
Ubuntu is the interface for Debian OVAL
func (Ubuntu) FillWithOval ¶
FillWithOval returns scan result after updating CVE info by OVAL