api

package
v0.0.0-...-6aebb94 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 12 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 {
	ID          string    `json:"id"`
	Description string    `json:"description,omitempty"`
	DebianBug   *int      `json:"debian_bug,omitempty"`
	Scope       string    `json:"scope,omitempty"`
	Packages    []Package `json:"packages"`
}

type Option

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

func WithAdvisoryURL

func WithAdvisoryURL(advisoryURL string) Option

func WithDir

func WithDir(dir string) Option

func WithRetry

func WithRetry(retry int) Option

type Package

type Package struct {
	Name         string       `json:"name"`
	Status       string       `json:"status"`
	NoDSA        string       `json:"nodsa,omitempty"`
	NoDSAReason  string       `json:"nodsa_reason,omitempty"`
	Urgency      string       `json:"urgency"`
	FixedVersion string       `json:"fixed_version,omitempty"`
	Repository   []Repository `json:"repository"`
}

type Repository

type Repository struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

Jump to

Keyboard shortcuts

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