cpe

package
v0.0.0-...-bef7b93 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 15 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 CPEDictCpe23Item

type CPEDictCpe23Item struct {
	Name        string              `json:"name,omitempty"`
	Deprecation *CPEDictDeprecation `json:"deprecation,omitempty"`
}

type CPEDictDeprecation

type CPEDictDeprecation struct {
	Date         string             `json:"date,omitempty"`
	DeprecatedBy CPEDictDeprectedBy `json:"deprecated_by,omitempty"`
}

type CPEDictDeprectedBy

type CPEDictDeprectedBy struct {
	Name string `json:"name,omitempty"`
	Type string `json:"type,omitempty"`
}

type CPEDictItem

type CPEDictItem struct {
	Name            string             `json:"name,omitempty"`
	Deprecated      bool               `json:"deprecated,omitempty"`
	DeprecationDate string             `json:"deprecation_date,omitempty"`
	Title           []CPEDictTitle     `json:"title,omitempty"`
	References      []CPEDictReference `json:"references,omitempty"`
	Cpe23Item       CPEDictCpe23Item   `json:"cpe_23_item,omitempty"`
}

type CPEDictReference

type CPEDictReference struct {
	Text string `xml:",chardata" json:"text,omitempty"`
	Href string `xml:"href,attr" json:"href,omitempty"`
}

type CPEDictTitle

type CPEDictTitle struct {
	Text string `xml:",chardata" json:"text,omitempty"`
	Lang string `xml:"lang,attr" json:"lang,omitempty"`
}

type Option

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

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

func WithURL

func WithURL(url string) Option

Jump to

Keyboard shortcuts

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