vuls: github.com/future-architect/vuls/oval Index | Files

package oval

import "github.com/future-architect/vuls/oval"

Index

Package Files

alpine.go debian.go oval.go redhat.go suse.go util.go

type Alpine Uses

type Alpine struct {
    Base
}

Alpine is the struct of Alpine Linux

func NewAlpine Uses

func NewAlpine() Alpine

NewAlpine creates OVAL client for SUSE

func (Alpine) FillWithOval Uses

func (o Alpine) FillWithOval(driver db.DB, r *models.ScanResult) (nCVEs int, err error)

FillWithOval returns scan result after updating CVE info by OVAL

type Amazon Uses

type Amazon struct {
    // Base
    RedHatBase
}

Amazon is the interface for RedhatBase OVAL

func NewAmazon Uses

func NewAmazon() Amazon

NewAmazon creates OVAL client for Amazon Linux

type Base Uses

type Base struct {
    // contains filtered or unexported fields
}

Base is a base struct

func (Base) CheckHTTPHealth Uses

func (b Base) CheckHTTPHealth() error

CheckHTTPHealth do health check

func (Base) CheckIfOvalFetched Uses

func (b Base) CheckIfOvalFetched(driver db.DB, osFamily, release string) (fetched bool, err error)

CheckIfOvalFetched checks if oval entries are in DB by family, release.

func (Base) CheckIfOvalFresh Uses

func (b Base) CheckIfOvalFresh(driver db.DB, osFamily, release string) (ok bool, err error)

CheckIfOvalFresh checks if oval entries are fresh enough

type CentOS Uses

type CentOS struct {
    RedHatBase
}

CentOS is the interface for CentOS OVAL

func NewCentOS Uses

func NewCentOS() CentOS

NewCentOS creates OVAL client for CentOS

type Client Uses

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 Uses

type Debian struct {
    DebianBase
}

Debian is the interface for Debian OVAL

func NewDebian Uses

func NewDebian() Debian

NewDebian creates OVAL client for Debian

func (Debian) FillWithOval Uses

func (o Debian) FillWithOval(driver db.DB, r *models.ScanResult) (nCVEs int, err error)

FillWithOval returns scan result after updating CVE info by OVAL

type DebianBase Uses

type DebianBase struct {
    Base
}

DebianBase is the base struct of Debian and Ubuntu

type Oracle Uses

type Oracle struct {
    RedHatBase
}

Oracle is the interface for Oracle OVAL

func NewOracle Uses

func NewOracle() Oracle

NewOracle creates OVAL client for Oracle

type RedHat Uses

type RedHat struct {
    RedHatBase
}

RedHat is the interface for RedhatBase OVAL

func NewRedhat Uses

func NewRedhat() RedHat

NewRedhat creates OVAL client for Redhat

type RedHatBase Uses

type RedHatBase struct {
    Base
}

RedHatBase is the base struct for RedHat and CentOS

func (RedHatBase) FillWithOval Uses

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 Uses

type SUSE struct {
    Base
}

SUSE is the struct of SUSE Linux

func NewSUSE Uses

func NewSUSE() SUSE

NewSUSE creates OVAL client for SUSE

func (SUSE) FillWithOval Uses

func (o SUSE) FillWithOval(driver db.DB, r *models.ScanResult) (nCVEs int, err error)

FillWithOval returns scan result after updating CVE info by OVAL

type Ubuntu Uses

type Ubuntu struct {
    DebianBase
}

Ubuntu is the interface for Debian OVAL

func NewUbuntu Uses

func NewUbuntu() Ubuntu

NewUbuntu creates OVAL client for Debian

func (Ubuntu) FillWithOval Uses

func (o Ubuntu) FillWithOval(driver db.DB, r *models.ScanResult) (nCVEs int, err error)

FillWithOval returns scan result after updating CVE info by OVAL

Package oval imports 17 packages (graph) and is imported by 12 packages. Updated 2019-09-15. Refresh now. Tools for package owners.