cve

package
v0.0.0-...-f2e513f Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 13 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 CVE

type CVE struct {
	Name           string  `json:"name"`
	ThreatSeverity *string `json:"threat_severity,omitempty"`
	PublicDate     string  `json:"public_date"`
	Bugzilla       struct {
		Description string `json:"description"`
		ID          string `json:"id"`
		URL         string `json:"url"`
	} `json:"bugzilla"`
	Cvss *struct {
		CvssBaseScore     string `json:"cvss_base_score"`
		CvssScoringVector string `json:"cvss_scoring_vector"`
		Status            string `json:"status"`
	} `json:"cvss,omitempty"`
	Cvss3 *struct {
		Cvss3BaseScore     string `json:"cvss3_base_score"`
		Cvss3ScoringVector string `json:"cvss3_scoring_vector"`
		Status             string `json:"status"`
	} `json:"cvss3,omitempty"`
	Cwe             *string  `json:"cwe,omitempty"`
	Details         []string `json:"details"`
	Statement       *string  `json:"statement,omitempty"`
	References      []string `json:"references,omitempty"`
	Acknowledgement *string  `json:"acknowledgement,omitempty"`
	Mitigation      *struct {
		Lang  string `json:"lang"`
		Value string `json:"value"`
	} `json:"mitigation,omitempty"`
	AffectedRelease []struct {
		Advisory    string  `json:"advisory"`
		Cpe         string  `json:"cpe"`
		Impact      *string `json:"impact,omitempty"`
		Package     *string `json:"package,omitempty"`
		ProductName string  `json:"product_name"`
		ReleaseDate string  `json:"release_date"`
	} `json:"affected_release,omitempty"`
	PackageState []map[string]string `json:"package_state,omitempty"`
	UpstreamFix  *string             `json:"upstream_fix,omitempty"`
	CSAw         bool                `json:"csaw"`
}

type Option

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

func WithConcurrency

func WithConcurrency(concurrency int) Option

func WithDataURL

func WithDataURL(url string) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

func WithWait

func WithWait(wait int) Option

Jump to

Keyboard shortcuts

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