Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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(r *models.ScanResult) error
// CheckIfOvalFetched checks if oval entries are in DB by family, release.
CheckIfOvalFetched(string, string) (bool, error)
CheckIfOvalFresh(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 ¶
func (o Debian) FillWithOval(r *models.ScanResult) (err error)
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(r *models.ScanResult) (err error)
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 ¶
func (o Ubuntu) FillWithOval(r *models.ScanResult) (err error)
FillWithOval returns scan result after updating CVE info by OVAL
Click to show internal directories.
Click to hide internal directories.