redhatoval

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory

type Advisory struct {
	Entries []Entry `json:",omitempty"`
}

type CPEList

type CPEList []string

func (CPEList) Index

func (l CPEList) Index(cpe string) int

func (CPEList) Indices

func (l CPEList) Indices(cpes []string) []int

type CPEMap

type CPEMap map[string]struct{}

func (CPEMap) Add

func (m CPEMap) Add(cpe string)

func (CPEMap) List

func (m CPEMap) List() CPEList

type CveEntry

type CveEntry struct {
	ID string `json:",omitempty"`

	// Severity may differ depending on platform even though the advisories resolve the same CVE-ID.
	Severity types.Severity `json:",omitempty"`
}

type Definition

type Definition struct {
	Entry Entry `json:",omitempty"`
}

type Entry

type Entry struct {
	FixedVersion string `json:",omitempty"`
	Cves         []CveEntry
	Arches       []string     `json:",omitempty"`
	Status       types.Status `json:"-"`

	// For DB size optimization, CPE names will not be stored.
	// CPE indices are stored instead.
	AffectedCPEList    []string `json:"-"`
	AffectedCPEIndices []int    `json:"Affected,omitempty"`
}

Entry holds the unique advisory information per platform.

func (*Entry) MarshalJSON

func (e *Entry) MarshalJSON() ([]byte, error)

MarshalJSON customizes how an Entry is marshaled to JSON.

func (*Entry) UnmarshalJSON

func (e *Entry) UnmarshalJSON(data []byte) error

type VulnSrc

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

func NewVulnSrc

func NewVulnSrc() VulnSrc

func (VulnSrc) Get

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

func (VulnSrc) Name

func (vs VulnSrc) Name() types.SourceID

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