cvrf

package
v0.0.0-...-d070639 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 12 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 Note

type Note struct {
	Title string `xml:"Title,attr" json:"title,omitempty"`
	Type  string `xml:"Type,attr" json:"type,omitempty"`
	Text  string `xml:",chardata" json:"text,omitempty"`
}

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 Reference

type Reference struct {
	URL         string `xml:"URL" json:"url,omitempty"`
	Description string `xml:"Description" json:"description,omitempty"`
}

type Vulnerability

type Vulnerability struct {
	Title      string      `xml:"Title" json:"title,omitempty"`
	CVE        string      `xml:"CVE" json:"cve,omitempty"`
	Notes      []Note      `xml:"Notes>Note" json:"notes,omitempty"`
	References []Reference `xml:"References>Reference" json:"references,omitempty"`
}

Jump to

Keyboard shortcuts

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