gost

package
v0.13.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2020 License: AGPL-3.0 Imports: 14 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
}

Base is a base struct

func (Base) CheckHTTPHealth

func (b Base) CheckHTTPHealth() error

CheckHTTPHealth do health check

func (Base) CheckIfGostFetched

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

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

func (Base) CheckIfGostFresh

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

CheckIfGostFresh checks if oval entries are fresh enough

func (Base) FillCVEsWithRedHat added in v0.9.1

func (b Base) FillCVEsWithRedHat(driver db.DB, r *models.ScanResult) error

FillCVEsWithRedHat fills cve information that has in Gost

type Client

type Client interface {
	DetectUnfixed(db.DB, *models.ScanResult, bool) (int, error)
	FillCVEsWithRedHat(db.DB, *models.ScanResult) error
}

Client is the interface of OVAL client.

func NewClient

func NewClient(family string) Client

NewClient make Client by family

type Debian

type Debian struct {
	Base
}

Debian is Gost client for Debian GNU/Linux

func (Debian) ConvertToModel

func (deb Debian) ConvertToModel(cve *gostmodels.DebianCVE) *models.CveContent

ConvertToModel converts gost model to vuls model

func (Debian) DetectUnfixed added in v0.9.1

func (deb Debian) DetectUnfixed(driver db.DB, r *models.ScanResult, _ bool) (nCVEs int, err error)

DetectUnfixed fills cve information that has in Gost

func (Debian) Supported added in v0.11.1

func (deb Debian) Supported(major string) bool

type Microsoft added in v0.6.0

type Microsoft struct {
	Base
}

Microsoft is Gost client for windows

func (Microsoft) ConvertToModel added in v0.6.0

func (ms Microsoft) ConvertToModel(cve *gostmodels.MicrosoftCVE) *models.CveContent

ConvertToModel converts gost model to vuls model

func (Microsoft) DetectUnfixed added in v0.9.1

func (ms Microsoft) DetectUnfixed(driver db.DB, r *models.ScanResult, _ bool) (nCVEs int, err error)

DetectUnfixed fills cve information that has in Gost

type Pseudo

type Pseudo struct {
	Base
}

Pseudo is Gost client except for RedHat family and Debian

func (Pseudo) DetectUnfixed added in v0.9.1

func (pse Pseudo) DetectUnfixed(driver db.DB, r *models.ScanResult, _ bool) (int, error)

DetectUnfixed fills cve information that has in Gost

type RedHat

type RedHat struct {
	Base
}

RedHat is Gost client for RedHat family linux

func (RedHat) ConvertToModel

func (red RedHat) ConvertToModel(cve *gostmodels.RedhatCVE) *models.CveContent

ConvertToModel converts gost model to vuls model

func (RedHat) DetectUnfixed added in v0.9.1

func (red RedHat) DetectUnfixed(driver db.DB, r *models.ScanResult, ignoreWillNotFix bool) (nCVEs int, err error)

DetectUnfixed fills cve information that has in Gost

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL