openscap

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CPE             = "oval:org.open-scap.cpe.rhel:def:"
	CPEDict         = "/usr/share/openscap/cpe/openscap-cpe-oval.xml"
	CVEUrl          = "https://www.redhat.com/security/data/metrics/ds/"
	DistCVENameFmt  = "com.redhat.rhsa-RHEL%d.ds.xml.bz2"
	ArfResultFile   = "results-arf.xml"
	TmpDir          = "/tmp"
	Linux           = "Linux"
	OpenSCAP        = "OpenSCAP"
	ImageShortIDLen = 11
)

Variables

View Source
var (
	RHELDistNumbers = [...]int{5, 6, 7}
)

Functions

This section is empty.

Types

type Scanner

type Scanner interface {
	// Scan will scan the image
	Scan(string, *docker.Image) error
	// ScannerName is the scanner's name
	ScannerName() string
	// ResultFileName returns the name of the results file
	ResultsFileName() string
}

Scanner is the interface of OpenSCAP scanner

func NewDefaultScanner

func NewDefaultScanner(cveDir string, resultsDir string) Scanner

NewDefaultScanner returns a new OpenSCAP scanner

Jump to

Keyboard shortcuts

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