ubuntu

package
v0.0.0-...-0acda02 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	UbuntuReleasesMapping = map[string]string{
		"precise":  "12.04",
		"quantal":  "12.10",
		"raring":   "13.04",
		"saucy":    "13.10",
		"trusty":   "14.04",
		"utopic":   "14.10",
		"vivid":    "15.04",
		"wily":     "15.10",
		"xenial":   "16.04",
		"yakkety":  "16.10",
		"zesty":    "17.04",
		"artful":   "17.10",
		"bionic":   "18.04",
		"cosmic":   "18.10",
		"disco":    "19.04",
		"eoan":     "19.10",
		"focal":    "20.04",
		"groovy":   "20.10",
		"hirsute":  "21.04",
		"impish":   "21.10",
		"jammy":    "22.04",
		"kinetic":  "22.10",
		"lunar":    "23.04",
		"mantic":   "23.10",
		"noble":    "24.04",
		"oracular": "24.10",

		"precise/esm":      "12.04-ESM",
		"trusty/esm":       "14.04-ESM",
		"esm-infra/xenial": "16.04-ESM",
	}
)

Functions

func SeverityFromPriority

func SeverityFromPriority(priority string) types.Severity

SeverityFromPriority converts Ubuntu priority into Tunnel severity

Types

type Option

type Option func(src *VulnSrc)

func WithCustomPut

func WithCustomPut(put db.CustomPut) Option

type PackageName

type PackageName string

type Patch

type Patch map[Release]Status

type Release

type Release string

type Status

type Status struct {
	Status string
	Note   string
}

type UbuntuCVE

type UbuntuCVE struct {
	Description string `json:"description"`
	Candidate   string
	Priority    string
	Patches     map[PackageName]Patch
	References  []string
	PublicDate  string // for extensibility, not used in tunnel-db
}

type VulnSrc

type VulnSrc struct {
	// contains filtered or unexported fields
}

func NewVulnSrc

func NewVulnSrc(opts ...Option) VulnSrc

func (VulnSrc) Get

func (vs VulnSrc) Get(release string, pkgName string) ([]types.Advisory, error)

func (VulnSrc) Name

func (vs VulnSrc) Name() types.SourceID

func (VulnSrc) Update

func (vs VulnSrc) Update(dir string) error

Jump to

Keyboard shortcuts

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