scan

package
v0.0.3-bd88b09 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: GPL-3.0, GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const CacheLifeTime = 600
View Source
const CachePurgeTime = 610

Variables

This section is empty.

Functions

func DetectOS

func DetectOS() (osType osTypeInterface, err error)

func FilterResolvCVEs

func FilterResolvCVEs(cves1 []string, fixCVEs []string) []string

Types

type Alert

type Alert struct {
	CVEs        []string
	PackageName string
	Version     string
}

type Alerts

type Alerts []Alert

type Kernel

type Kernel struct {
	Release        string
	Version        string
	RebootRequired bool
}

type Package

type Package struct {
	Name       string
	Version    string
	Release    string
	NewVersion string
	NewRelease string
	Arch       string
}

type Packages

type Packages map[string]Package

func (Packages) MergeNewVersion

func (ps Packages) MergeNewVersion(as Packages)

type ScanResult

type ScanResult struct {
	ScannedAt time.Time
	Family    string
	Release   string
	Packages  Packages
	Kernel    Kernel
}

func (*ScanResult) GetPackages

func (l *ScanResult) GetPackages() *Packages

func (*ScanResult) GetScanResult

func (l *ScanResult) GetScanResult() *ScanResult

func (*ScanResult) MajorVersion

func (l *ScanResult) MajorVersion() (ver int, err error)

MajorVersion returns Major version

Jump to

Keyboard shortcuts

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