detail

package
v0.0.0-...-c6bf9ee Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(opts ...Option) error

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithDataURL

func WithDataURL(url string) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

type Vulinfo

type Vulinfo struct {
	VulinfoID   string `xml:"VulinfoID" json:"vulinfoid,omitempty"`
	VulinfoData struct {
		Title              string `xml:"Title" json:"title,omitempty"`
		VulinfoDescription struct {
			Overview string `xml:"Overview" json:"overview,omitempty"`
		} `xml:"VulinfoDescription" json:"vulinfodescription,omitempty"`
		Affected struct {
			AffectedItem []struct {
				Name        string `xml:"Name" json:"name,omitempty"`
				ProductName string `xml:"ProductName" json:"productname,omitempty"`
				Cpe         *struct {
					Text    string `xml:",chardata" json:"text,omitempty"`
					Version string `xml:"version,attr" json:"version,omitempty"`
				} `xml:"Cpe" json:"cpe,omitempty"`
				VersionNumber []string `xml:"VersionNumber" json:"versionnumber,omitempty"`
			} `xml:"AffectedItem" json:"affecteditem,omitempty"`
		} `xml:"Affected" json:"affected,omitempty"`
		Impact struct {
			Cvss []struct {
				Version  string `xml:"version,attr" json:"version,omitempty"`
				Severity struct {
					Text string `xml:",chardata" json:"text,omitempty"`
					Type string `xml:"type,attr" json:"type,omitempty"`
				} `xml:"Severity" json:"severity,omitempty"`
				Base   string `xml:"Base" json:"base,omitempty"`
				Vector string `xml:"Vector" json:"vector,omitempty"`
			} `xml:"Cvss" json:"cvss,omitempty"`
			ImpactItem struct {
				Description string `xml:"Description" json:"description,omitempty"`
			} `xml:"ImpactItem" json:"impactitem,omitempty"`
		} `xml:"Impact" json:"impact,omitempty"`
		Solution struct {
			SolutionItem struct {
				Description string `xml:"Description" json:"description,omitempty"`
			} `xml:"SolutionItem" json:"solutionitem,omitempty"`
		} `xml:"Solution" json:"solution,omitempty"`
		Related struct {
			RelatedItem []struct {
				Type      string `xml:"type,attr" json:"type,omitempty"`
				Name      string `xml:"Name" json:"name,omitempty"`
				VulinfoID string `xml:"VulinfoID" json:"vulinfoid,omitempty"`
				URL       string `xml:"URL" json:"url,omitempty"`
				Title     string `xml:"Title" json:"title,omitempty"`
			} `xml:"RelatedItem" json:"relateditem,omitempty"`
		} `xml:"Related" json:"related,omitempty"`
		History struct {
			HistoryItem []struct {
				HistoryNo   string `xml:"HistoryNo" json:"historyno,omitempty"`
				DateTime    string `xml:"DateTime" json:"datetime,omitempty"`
				Description string `xml:"Description" json:"description,omitempty"`
			} `xml:"HistoryItem" json:"historyitem,omitempty"`
		} `xml:"History" json:"history,omitempty"`
		DateFirstPublished string `xml:"DateFirstPublished" json:"datefirstpublished,omitempty"`
		DateLastUpdated    string `xml:"DateLastUpdated" json:"datelastupdated,omitempty"`
		DatePublic         string `xml:"DatePublic" json:"datepublic,omitempty"`
	} `xml:"VulinfoData" json:"vulinfodata,omitempty"`
}

Jump to

Keyboard shortcuts

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