cpematch

package
v0.0.0-...-b33991e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 14 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 Match

type Match struct {
	CPEName   string `json:"cpeName"`
	CPENameID string `json:"cpeNameId"`
}

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 WithAPIKey(apiKey string) Option

func WithBaseURL

func WithBaseURL(url string) Option

func WithConcurrency

func WithConcurrency(concurrency int) Option

func WithDir

func WithDir(dir string) Option

func WithLastModEndDate

func WithLastModEndDate(lastModEndDate *time.Time) Option

func WithLastModStartDate

func WithLastModStartDate(lastModStartDate *time.Time) Option

func WithResultsPerPage

func WithResultsPerPage(resultsPerPage int) Option

func WithRetry

func WithRetry(retry int) Option

func WithRetryWaitMax

func WithRetryWaitMax(wait int) Option

func WithRetryWaitMin

func WithRetryWaitMin(wait 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