import "github.com/future-architect/vuls/oval"
alpine.go debian.go empty.go oval.go redhat.go suse.go util.go
Alpine is the struct of Alpine Linux
NewAlpine creates OVAL client for SUSE
FillWithOval returns scan result after updating CVE info by OVAL
type Amazon struct { // Base RedHatBase }
Amazon is the interface for RedhatBase OVAL
NewAmazon creates OVAL client for Amazon Linux
type Base struct {
// contains filtered or unexported fields
}
Base is a base struct
CheckIfOvalFetched checks if oval entries are in DB by family, release.
CheckIfOvalFresh checks if oval entries are fresh enough
type CentOS struct { RedHatBase }
CentOS is the interface for CentOS OVAL
NewCentOS creates OVAL client for CentOS
type Client interface { 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 struct { DebianBase }
Debian is the interface for Debian OVAL
NewDebian creates OVAL client for Debian
FillWithOval returns scan result after updating CVE info by OVAL
DebianBase is the base struct of Debian and Ubuntu
type Oracle struct { RedHatBase }
Oracle is the interface for Oracle OVAL
NewOracle creates OVAL client for Oracle
type RedHat struct { RedHatBase }
RedHat is the interface for RedhatBase OVAL
NewRedhat creates OVAL client for Redhat
RedHatBase is the base struct for RedHat and CentOS
func (o RedHatBase) FillWithOval(driver db.DB, r *models.ScanResult) (nCVEs int, err error)
FillWithOval returns scan result after updating CVE info by OVAL
SUSE is the struct of SUSE Linux
NewSUSE creates OVAL client for SUSE
FillWithOval returns scan result after updating CVE info by OVAL
type Ubuntu struct { DebianBase }
Ubuntu is the interface for Debian OVAL
NewUbuntu creates OVAL client for Debian
FillWithOval returns scan result after updating CVE info by OVAL
Package oval imports 18 packages (graph) and is imported by 19 packages. Updated 2021-01-21. Refresh now. Tools for package owners.