gost

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2024 License: GPL-3.0 Imports: 21 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FillCVEsWithRedHat added in v0.15.10

func FillCVEsWithRedHat(r *models.ScanResult, cnf config.GostConf, o logging.LogOpts) error

FillCVEsWithRedHat fills CVE detailed with Red Hat Security

Types

type Base

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

Base is a base struct

func (Base) CloseDB added in v0.15.12

func (b Base) CloseDB() error

CloseDB close a DB connection

type Client

type Client interface {
	DetectCVEs(*models.ScanResult, bool) (int, error)
	CloseDB() error
}

Client is the interface of Gost client.

func NewGostClient added in v0.19.5

func NewGostClient(cnf config.GostConf, family string, o logging.LogOpts) (Client, error)

NewGostClient 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) DetectCVEs added in v0.15.13

func (deb Debian) DetectCVEs(r *models.ScanResult, _ bool) (nCVEs int, err error)

DetectCVEs fills cve information that has in Gost

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, []models.Mitigation)

ConvertToModel converts gost model to vuls model

func (Microsoft) DetectCVEs added in v0.15.13

func (ms Microsoft) DetectCVEs(r *models.ScanResult, _ bool) (nCVEs int, err error)

DetectCVEs fills cve information that has in Gost

type Pseudo

type Pseudo struct {
	Base
}

Pseudo is Gost client except for RedHat family, Debian, Ubuntu and Windows

func (Pseudo) DetectCVEs added in v0.15.13

func (pse Pseudo) DetectCVEs(_ *models.ScanResult, _ bool) (int, error)

DetectCVEs 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, []models.Mitigation)

ConvertToModel converts gost model to vuls model

func (RedHat) DetectCVEs added in v0.15.13

func (red RedHat) DetectCVEs(r *models.ScanResult, ignoreWillNotFix bool) (nCVEs int, err error)

DetectCVEs fills cve information that has in Gost

type Ubuntu added in v0.15.13

type Ubuntu struct {
	Base
}

Ubuntu is Gost client for Ubuntu

func (Ubuntu) ConvertToModel added in v0.15.13

func (ubu Ubuntu) ConvertToModel(cve *gostmodels.UbuntuCVE) *models.CveContent

ConvertToModel converts gost model to vuls model

func (Ubuntu) DetectCVEs added in v0.15.13

func (ubu Ubuntu) DetectCVEs(r *models.ScanResult, _ bool) (nCVEs int, err error)

DetectCVEs 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