salsa

package
v0.0.0-...-8957c1d Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 24 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 Bug

type Bug struct {
	Header      *Header       `json:"header,omitempty"`
	Annotations []interface{} `json:"annotations,omitempty"`
}

type CPE

type CPE struct {
	Line    string `json:"line,omitempty"`
	Package string `json:"package,omitempty"`
	CPE     string `json:"cpe,omitempty"`
}

type FlagAnnotation

type FlagAnnotation struct {
	Line string `json:"line,omitempty"`
	Type string `json:"type,omitempty"`
}
type Header struct {
	Line        string `json:"line,omitempty"`
	Name        string `json:"name,omitempty"`
	Description string `json:"description,omitempty"`
}

type Mirror

type Mirror struct {
	ReleaseMain     string
	ReleaseSecurity string
	ReleaseBackport string
	ArchiveMain     string
	ArchiveSecurity string
	ArchiveBackport string
}

type Option

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

func WithDataURL

func WithDataURL(url string) Option

func WithDir

func WithDir(dir string) Option

func WithMirror

func WithMirror(m Mirror) Option

func WithRetry

func WithRetry(retry int) Option

type PackageAnnotation

type PackageAnnotation struct {
	Line        string        `json:"line,omitempty"`
	Type        string        `json:"type,omitempty"`
	Release     string        `json:"release,omitempty"`
	Package     string        `json:"package,omitempty"`
	Kind        string        `json:"kind,omitempty"`
	Version     string        `json:"version,omitempty"`
	Description string        `json:"description,omitempty"`
	Flags       []interface{} `json:"flags,omitempty"`
}

type PackageBugAnnotation

type PackageBugAnnotation struct {
	Bug int `json:"bug,omitempty"`
}

type PackageUrgencyAnnotation

type PackageUrgencyAnnotation struct {
	Severity string `json:"severity,omitempty"`
}

type StringAnnotation

type StringAnnotation struct {
	Line        string `json:"line,omitempty"`
	Type        string `json:"type,omitempty"`
	Description string `json:"description,omitempty"`
}

type XrefAnnotation

type XrefAnnotation struct {
	Line string   `json:"line,omitempty"`
	Type string   `json:"type,omitempty"`
	Bugs []string `json:"bugs,omitempty"`
}

Jump to

Keyboard shortcuts

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