repository2cpe

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: 8 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 Option

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

func WithDir

func WithDir(dir string) Option

func WithRepositoryToCPEURL

func WithRepositoryToCPEURL(u string) Option

func WithRetry

func WithRetry(retry int) Option

type RepositoryToCPE

type RepositoryToCPE struct {
	Data map[string]struct {
		Cpes             []string `json:"cpes,omitempty"`
		RepoRelativeURLs []string `json:"repo_relative_urls,omitempty"`
	} `json:"data,omitempty"`
	LastUpdated string `json:"last_updated,omitempty"`
}

Jump to

Keyboard shortcuts

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