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

package gost

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

Index

Package Files

debian.go gost.go microsoft.go redhat.go util.go

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) CheckIfGostFetched Uses

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 Uses

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

CheckIfGostFresh checks if oval entries are fresh enough

type Client Uses

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

Client is the interface of OVAL client.

func NewClient Uses

func NewClient(family string) Client

NewClient make Client by family

type Debian Uses

type Debian struct {
    Base
}

Debian is Gost client for Debian GNU/Linux

func (Debian) ConvertToModel Uses

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

ConvertToModel converts gost model to vuls model

func (Debian) FillWithGost Uses

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

FillWithGost fills cve information that has in Gost

type Microsoft Uses

type Microsoft struct {
    Base
}

Microsoft is Gost client for windows

func (Microsoft) ConvertToModel Uses

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

ConvertToModel converts gost model to vuls model

func (Microsoft) FillWithGost Uses

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

FillWithGost fills cve information that has in Gost

type Pseudo Uses

type Pseudo struct {
    Base
}

Pseudo is Gost client except for RedHat family and Debian

func (Pseudo) FillWithGost Uses

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

FillWithGost fills cve information that has in Gost

type RedHat Uses

type RedHat struct {
    Base
}

RedHat is Gost client for RedHat family linux

func (RedHat) ConvertToModel Uses

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

ConvertToModel converts gost model to vuls model

func (RedHat) FillWithGost Uses

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

FillWithGost fills cve information that has in Gost

Package gost imports 14 packages (graph) and is imported by 6 packages. Updated 2019-09-28. Refresh now. Tools for package owners.