Documentation ¶
Index ¶
- func Fetch(opts ...Option) error
- type CPE
- type DefReference
- type Deprecate
- type DeprecatedBy
- type Option
- func WithAPIKey(apiKey string) Option
- func WithBaseURL(url string) Option
- func WithConcurrency(concurrency int) Option
- func WithDir(dir string) Option
- func WithLastModEndDate(lastModEndDate *time.Time) Option
- func WithLastModStartDate(lastModStartDate *time.Time) Option
- func WithResultsPerPage(resultsPerPage int) Option
- func WithRetry(retry int) Option
- func WithRetryWaitMax(wait int) Option
- func WithRetryWaitMin(wait int) Option
- func WithWait(wait int) Option
- type Title
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CPE ¶
type CPE struct { Deprecated bool `json:"deprecated"` Name string `json:"cpeName"` NameID string `json:"cpeNameId"` Created string `json:"created"` LastModified string `json:"lastModified"` Titles []Title `json:"titles,omitempty"` Refs []DefReference `json:"refs,omitempty"` DeprecatedBy []DeprecatedBy `json:"deprecatedBy,omitempty"` Deprecates []Deprecate `json:"deprecates,omitempty"` }
Top level structure that fetch command stores CPE json files
type DefReference ¶
Internet resource for CPE
type DeprecatedBy ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithAPIKey ¶
func WithBaseURL ¶
func WithConcurrency ¶
func WithLastModEndDate ¶
func WithLastModStartDate ¶
func WithResultsPerPage ¶
func WithRetryWaitMax ¶
func WithRetryWaitMin ¶
Click to show internal directories.
Click to hide internal directories.