ubuntu

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

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 11 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",
	}
)

Functions

This section is empty.

Types

type Option

type Option func(src *VulnSrc)

func WithStatuses

func WithStatuses(statuses []string) 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
}

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() string

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