tracker

package
v0.0.0-...-e1af42c Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: Apache-2.0 Imports: 15 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 Advisory

type Advisory struct {
	Candidate         string                        `json:"candidate"`
	Description       string                        `json:"description"`
	UbuntuDescription string                        `json:"ubuntu_description,omitempty"`
	Notes             map[string]string             `json:"notes,omitempty"`
	Priority          string                        `json:"priority"`
	CVSS              map[string]string             `json:"cvss,omitempty"`
	Mitigation        string                        `json:"mitigation,omitempty"`
	Bugs              []string                      `json:"bugs,omitempty"`
	References        []string                      `json:"references"`
	AssignedTo        string                        `json:"assigned_to,omitempty"`
	DiscoveredBy      string                        `json:"discovered_by,omitempty"`
	PublicDate        string                        `json:"public_date,omitempty"`
	PublicDateAtUSN   string                        `json:"public_date_at_usn,omitempty"`
	CRD               string                        `json:"crd,omitempty"`
	Packages          map[string]map[string]Package `json:"packages"`
}

type Option

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

func WithDir

func WithDir(dir string) Option

func WithRepoURL

func WithRepoURL(repoURL string) Option

func WithRetry

func WithRetry(retry int) Option

type Package

type Package struct {
	Name     string   `json:"name"`
	Status   string   `json:"status"`
	Note     string   `json:"note,omitempty"`
	Priority string   `json:"priority,omitempty"`
	Tags     []string `json:"tags,omitempty"`
	Patches  []Patch  `json:"patches,omitempty"`
}

type Patch

type Patch struct {
	Source string `json:"source"`
	Text   string `json:"text,omitempty"`
}

Jump to

Keyboard shortcuts

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