json

package
v0.0.0-...-04fe85e Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fetch

func Fetch(id, secret string, opts ...Option) error

Types

type Advisory

type Advisory struct {
	AdvisoryID     string   `json:"advisoryId"`
	AdvisoryTitle  string   `json:"advisoryTitle"`
	BugIDs         []string `json:"bugIDs"`
	CsafURL        string   `json:"csafUrl"`
	Cves           []string `json:"cves"`
	CvrfURL        string   `json:"cvrfUrl"`
	CvssBaseScore  string   `json:"cvssBaseScore"`
	Cwe            []string `json:"cwe"`
	FirstPublished string   `json:"firstPublished"`
	IpsSignatures  any      `json:"ipsSignatures"`
	LastUpdated    string   `json:"lastUpdated"`
	ProductNames   []string `json:"productNames"`
	PublicationURL string   `json:"publicationUrl"`
	Sir            string   `json:"sir"`
	Status         string   `json:"status"`
	Summary        string   `json:"summary"`
	Version        string   `json:"version"`
}

type Option

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

func WithAPIURL

func WithAPIURL(url string) Option

func WithAccessTokenURL

func WithAccessTokenURL(url string) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

Jump to

Keyboard shortcuts

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