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
Types ¶
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 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 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