redhatoval

package
v0.0.0-...-0e2e07d Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory

type Advisory struct {
	From            string
	Severity        string
	Rights          string
	Issued          Issued
	Updated         Updated
	Cves            []Cve
	Bugzilla        []Bugzilla
	AffectedCpeList []string
}

type Affected

type Affected struct {
	Family    string
	Platforms []string
}

type Arch

type Arch struct {
	Text      string
	Datatype  string
	Operation string
}

type Bugzilla

type Bugzilla struct {
	ID   string
	Href string
}

type Criteria

type Criteria struct {
	Operator   string
	Criterias  []Criteria
	Criterions []Criterion
}

type Criterion

type Criterion struct {
	TestRef string
	Comment string
}

type Cve

type Cve struct {
	CveID  string
	Cvss2  string
	Cvss3  string
	Cwe    string
	Impact string
	Href   string
	Public string
}

type Evr

type Evr struct {
	Text      string
	Datatype  string
	Operation string
}

type Issued

type Issued struct {
	Date string
}

type Metadata

type Metadata struct {
	Title        string
	AffectedList []Affected
	References   []Reference
	Description  string
	Advisory     Advisory
}

type Object

type Object struct {
	Text      string
	ObjectRef string
}

type Objects

type Objects struct {
	RpminfoObjects []RpminfoObject
}

type Package

type Package struct {
	Name         string
	FixedVersion string
}

type RedhatOVAL

type RedhatOVAL struct {
	Class    string
	ID       string
	Version  string
	Metadata Metadata
	Criteria Criteria
}

type Reference

type Reference struct {
	Source string
	RefID  string
	RefURL string
}

type RpminfoObject

type RpminfoObject struct {
	ID      string
	Version string
	Name    string
}

type RpminfoState

type RpminfoState struct {
	ID             string
	Version        string
	Arch           Arch
	Evr            Evr
	SignatureKeyID SignatureKeyID
}

type RpminfoTest

type RpminfoTest struct {
	Check          string
	Comment        string
	ID             string
	Version        string
	CheckExistence string
	Object         Object
	State          State
}

type SignatureKeyID

type SignatureKeyID struct {
	Text      string
	Operation string
}

type State

type State struct {
	Text     string
	StateRef string
}

type States

type States struct {
	RpminfoState []RpminfoState
}

type Tests

type Tests struct {
	RpminfoTests []RpminfoTest
}

type Updated

type Updated struct {
	Date string
}

type VulnSrc

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

func NewVulnSrc

func NewVulnSrc() VulnSrc

func (VulnSrc) Get

func (vs VulnSrc) Get(release string, pkgName string) ([]types.Advisory, error)

func (VulnSrc) Name

func (vs VulnSrc) Name() string

func (VulnSrc) Update

func (vs VulnSrc) Update(dir string) error

Jump to

Keyboard shortcuts

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