Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetFamilyInOval ¶ added in v0.15.10
GetFamilyInOval returns the OS family name in OVAL For example, CentOS/Alma/Rocky uses Red Hat's OVAL, so return 'redhat'
Types ¶
type Alma ¶ added in v0.15.14
type Alma struct { // Base RedHatBase }
Alma is the interface for RedhatBase OVAL
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
func (o Alpine) FillWithOval(r *models.ScanResult) (nCVEs int, err error)
FillWithOval returns scan result after updating CVE info by OVAL
type Amazon ¶ added in v0.8.0
type Amazon struct { // Base RedHatBase }
Amazon is the interface for RedhatBase 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.
func (Base) CheckIfOvalFresh ¶
CheckIfOvalFresh checks if oval entries are fresh enough
type Client ¶
type Client interface { FillWithOval(*models.ScanResult) (int, error) CheckIfOvalFetched(string, string) (bool, error) CheckIfOvalFresh(string, string) (bool, error) CloseDB() error }
Client is the interface of OVAL client.
func NewOVALClient ¶ added in v0.15.10
NewOVALClient returns a client for OVAL database
type Debian ¶
type Debian struct {
DebianBase
}
Debian is the interface for Debian OVAL
func (Debian) FillWithOval ¶
func (o Debian) FillWithOval(r *models.ScanResult) (nCVEs int, 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 Fedora ¶ added in v0.19.3
type Fedora struct { // Base RedHatBase }
Fedora is the interface for RedhatBase OVAL
type Pseudo ¶ added in v0.19.5
type Pseudo struct {
Base
}
Pseudo is OVAL client for Windows, FreeBSD and Pseudo
func (Pseudo) FillWithOval ¶ added in v0.19.5
func (pse Pseudo) FillWithOval(_ *models.ScanResult) (int, error)
FillWithOval is a mock function for operating systems that do not use OVAL
type RedHatBase ¶
type RedHatBase struct {
Base
}
RedHatBase is the base struct for RedHat, CentOS, Alma, Rocky and Fedora
func (RedHatBase) FillWithOval ¶
func (o RedHatBase) FillWithOval(r *models.ScanResult) (nCVEs int, err error)
FillWithOval returns scan result after updating CVE info by OVAL
type Rocky ¶ added in v0.15.13
type Rocky struct { // Base RedHatBase }
Rocky is the interface for RedhatBase 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
func (o SUSE) FillWithOval(r *models.ScanResult) (nCVEs int, 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) (nCVEs int, err error)
FillWithOval returns scan result after updating CVE info by OVAL