alt

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 12 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          `xml:"from,attr" json:",omitempty"`
	Severity        string          `xml:"severity" json:",omitempty"`
	Rights          string          `xml:"rights" json:",omitempty"`
	Issued          Issued          `xml:"issued" json:",omitempty"`
	Updated         Updated         `xml:"updated" json:",omitempty"`
	BDUs            []CVE           `xml:"bdu" json:"bdu"`
	Cves            []CVE           `xml:"cve" json:",omitempty"`
	Bugzilla        []Bugzilla      `xml:"bugzilla" json:",omitempty"`
	AffectedCpeList AffectedCpeList `xml:"affected_cpe_list" json:",omitempty"`
}

type AdvisorySpecial

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

type Affected

type Affected struct {
	Family    string   `xml:"family,attr" json:",omitempty"`
	Platforms []string `xml:"platform" json:",omitempty"`
	Products  []string `xml:"product" json:",omitempty"`
}

type AffectedCpeList

type AffectedCpeList struct {
	Cpe []string `xml:"cpe" json:",omitempty"`
}

type Arch

type Arch struct {
	Text      string `xml:",chardata" json:",omitempty"`
	Datatype  string `xml:"datatype,attr" json:",omitempty"`
	Operation string `xml:"operation,attr" json:",omitempty"`
}

type Bugzilla

type Bugzilla struct {
	Id   string `xml:"id,attr" json:",omitempty"`
	Href string `xml:"href,attr" json:",omitempty"`
	Data string `json:",chardata" json:",omitempty"`
}

type CVE

type CVE struct {
	Cvss   string `xml:"cvss,attr" json:",omitempty"`
	Cvss3  string `xml:"cvss3,attr" json:",omitempty"`
	Cwe    string `xml:"cwe,attr"   json:",omitempty"`
	Href   string `xml:"href,attr"   json:",omitempty"`
	Impact string `xml:"impact,attr" json:",omitempty"`
	Public string `xml:"public,attr" json:",omitempty"`
	CveID  string `xml:",chardata"  json:",omitempty"`
}

type Criteria

type Criteria struct {
	Operator   string      `xml:"operator,attr" json:",omitempty"`
	Criterions []Criterion `xml:"criterion" json:",omitempty"`
	Criterias  []Criteria  `xml:"criteria" json:",omitempty"`
}

type Criterion

type Criterion struct {
	TestRef string `xml:"test_ref,attr"`
	Comment string `xml:"comment,attr"`
}

type CveEntry

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

	Severity types.Severity `json:",omitempty"`
}

type CveVendor

type CveVendor struct {
	Title       string
	Description string
	References  []string
	CVE         CveEntry
}

type Definition

type Definition struct {
	ID       string   `xml:"id,attr" json:",omitempty"`
	Version  string   `xml:"version,attr" json:",omitempty"`
	Class    string   `xml:"class,attr" json:",omitempty"`
	Metadata Metadata `xml:"metadata" json:",omitempty"`
	Criteria Criteria `xml:"criteria" json:",omitempty"`
}

type DefinitionSpecial

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

type Definitions

type Definitions struct {
	Definition []Definition `xml:"definition" json:",omitempty"`
}

type Entry

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

	AffectedCPEList []string `json:"Affected,omitempty"`
}

type Evr

type Evr struct {
	Text      string `xml:",chardata" json:",omitempty"`
	Datatype  string `xml:"datatype,attr" json:",omitempty"`
	Operation string `xml:"operation,attr" json:",omitempty"`
}

type Filepath

type Filepath struct {
	Datatype string `xml:"datatype,attr" json:",omitempty"`
	Text     string `xml:",chardata" json:",omitempty"`
}

type Instance

type Instance struct {
	Datatype string `xml:"datatype,attr" json:",omitempty"`
	Text     string `xml:",chardata" json:",omitempty"`
}

type Issued

type Issued struct {
	Date string `xml:"date,attr" json:",omitempty"`
}

type Metadata

type Metadata struct {
	Title        string      `xml:"title" json:",omitempty"`
	AffectedList []Affected  `xml:"affected" json:",omitempty"`
	References   []Reference `xml:"reference" json:",omitempty"`
	Description  string      `xml:"description" json:",omitempty"`
	Advisory     Advisory    `xml:"advisory" json:",omitempty"`
}

type Name

type Name struct {
	Text      string `xml:",chardata" json:",omitempty"`
	Operation string `xml:"operation,attr" json:",omitempty"`
}

type Object

type Object struct {
	ObjectRef string `xml:"object_ref,attr" json:",omitempty"`
	Text      string `xml:"object" json:",omitempty"`
}

type Objects

type Objects struct {
	TextFileContent54Objects []TextFileContent54Object `xml:"textfilecontent54_object" json:",omitempty"`
	RpmInfoObjects           []RpmInfoObject           `xml:"rpminfo_object" json:",omitempty"`
}

type Path

type Path struct {
	Datatype string `xml:"datatype,attr" json:"dataType"`
	Text     string `xml:",chardata" json:",omitempty"`
}

type Pattern

type Pattern struct {
	Datatype  string `xml:"datatype,attr" json:",omitempty"`
	Operation string `xml:"operation,attr" json:",omitempty"`
	Text      string `xml:",chardata" json:",omitempty"`
}

type Reference

type Reference struct {
	RefID  string `xml:"ref_id,attr" json:",omitempty"`
	RefURL string `xml:"ref_url,attr" json:",omitempty"`
	Source string `xml:"source,attr" json:",omitempty"`
}

type RpmInfoObject

type RpmInfoObject struct {
	ID      string `xml:"id,attr" json:",omitempty"`
	Version string `xml:"version,attr" json:",omitempty"`
	Comment string `xml:"comment,attr" json:"comment"`
	Name    string `xml:"name" json:",omitempty"`
}

type RpmInfoState

type RpmInfoState struct {
	ID            string        `xml:"id,attr" json:",omitempty"`
	Version       string        `xml:"version,attr" json:",omitempty"`
	Comment       string        `xml:"comment,attr" json:",omitempty"`
	Arch          Arch          `xml:"arch" json:",omitempty"`
	Evr           Evr           `xml:"evr" json:",omitempty"`
	Subexpression Subexpression `xml:"subexpression" json:",omitempty"`
}

type RpmInfoTest

type RpmInfoTest struct {
	ID      string `xml:"id,attr" json:",omitempty"`
	Version string `xml:"version,attr" json:",omitempty"`
	Check   string `xml:"check,attr" json:",omitempty"`
	Comment string `xml:"comment,attr" json:",omitempty"`
	Object  Object `xml:"object" json:",omitempty"`
	State   State  `xml:"state" json:",omitempty"`
}

type RpmInfoTestSpecial

type RpmInfoTestSpecial struct {
	Name string
	//SignatureKeyID signatureKeyID
	FixedVersion string
	Arch         string
}

type State

type State struct {
	StateRef string `xml:"state_ref,attr" json:",omitempty"`
	Text     string `xml:"state" json:",omitempty"`
}

type States

type States struct {
	TextFileContent54State []TextFileContent54State `xml:"textfilecontent54_state" json:",omitempty"`
	RpmInfoState           []RpmInfoState           `xml:"rpminfo_state" json:",omitempty"`
}

type Subexpression

type Subexpression struct {
	Operation string `xml:"operation,attr" json:",omitempty"`
	Text      string `xml:",chardata" json:",omitempty"`
}

type Tests

type Tests struct {
	TextFileContent54Tests []TextFileContent54Test `xml:"textfilecontent54_test" json:",omitempty"`
	RPMInfoTests           []RpmInfoTest           `xml:"rpminfo_test" json:",omitempty"`
}

type Text

type Text struct {
	Text      string `xml:",chardata" json:",omitempty"`
	Operation string `xml:"operation,attr" json:",omitempty"`
}

type TextFileContent54Object

type TextFileContent54Object struct {
	ID       string   `xml:"id,attr" json:",omitempty"`
	Version  string   `xml:"version,attr" json:",omitempty"`
	Comment  string   `xml:"comment,attr" json:"comment"`
	Path     Path     `xml:"path" json:",omitempty"`
	Filepath Filepath `xml:"filepath" json:",omitempty"`
	Pattern  Pattern  `xml:"pattern" json:",omitempty"`
	Instance Instance `xml:"instance" json:",omitempty"`
}

type TextFileContent54State

type TextFileContent54State struct {
	ID      string `xml:"id,attr" json:",omitempty"`
	Version string `xml:"version,attr" json:",omitempty"`
	Text    Text   `xml:"text" json:",omitempty"`
}

type TextFileContent54Test

type TextFileContent54Test struct {
	ID      string `xml:"id,attr" json:",omitempty"`
	Version string `xml:"version,attr" json:",omitempty"`
	Check   string `xml:"check,attr" json:",omitempty"`
	Comment string `xml:"comment,attr" json:",omitempty"`
	Object  Object `xml:"object" json:",omitempty"`
	State   State  `xml:"state" json:",omitempty"`
}

type Updated

type Updated struct {
	Date string `xml:"date,attr" json:",omitempty"`
}

type Version

type Version struct {
	Text      string `xml:",chardata" json:",omitempty"`
	Operation string `xml:"operation,attr" json:",omitempty"`
}

type VulnSrc

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

func NewVulnSrc

func NewVulnSrc() VulnSrc

func (VulnSrc) Get

func (vs VulnSrc) Get(pkgName, cpe 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