Documentation
¶
Index ¶
- func Fetch(opts ...Option) error
- type Match
- type MatchCriteria
- 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 time.Duration) Option
- func WithRetryWaitMin(wait time.Duration) Option
- func WithWait(wait time.Duration) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MatchCriteria ¶
type MatchCriteria struct {
Criteria string `json:"criteria"`
MatchCriteriaID string `json:"matchCriteriaId"`
VersionStartExcluding string `json:"versionStartExcluding,omitempty"`
VersionStartIncluding string `json:"versionStartIncluding,omitempty"`
VersionEndExcluding string `json:"versionEndExcluding,omitempty"`
VersionEndIncluding string `json:"versionEndIncluding,omitempty"`
Created string `json:"created"`
LastModified string `json:"lastModified"`
CPELastModified string `json:"cpeLastModified,omitempty"`
Status string `json:"status"`
Matches []Match `json:"matches,omitempty"`
}
CPE match string or range Top level structure that fetch command stores CPE match json files
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.