feed

package
v0.0.0-...-8841820 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Affects1604

func Affects1604(entry *goquery.Selection) bool

Affects1604 is a function to evaluate Ubuntu 16.04 LTS is affected.

func Affects1804

func Affects1804(entry *goquery.Selection) bool

Affects1804 is a function to evaluate Ubuntu 18.04 LTS is affected.

func ExtractUsnTitle

func ExtractUsnTitle(s string) string

ExtractUsnTitle is a function to get USN-XXXX-X string.

func GetCveURL

func GetCveURL(cve string) string

GetCveURL is a function to convert CVE number to ubuntu-security URL.

func GetCves

func GetCves(entry *goquery.Selection) []string

GetCves is a function to get CVE list related to a specific USN.

func GetHigherPriority

func GetHigherPriority(p1 string, p2 string) string

GetHigherPriority returns a higher priority. https://people.canonical.com/~ubuntu-security/cve/priority.html

func GetID

func GetID(entry *goquery.Selection) string

GetID is a function to get USN-XXXX-X string.

func GetPackageName

func GetPackageName(entry *goquery.Selection) string

GetPackageName is a function to get vulnerable package name.

func GetPriority

func GetPriority(cve string) string

GetPriority is a function to get priority (severity) for specific CVE.

func GetPriorityFromReader

func GetPriorityFromReader(r io.Reader) string

GetPriorityFromReader is a function to extract priority (severity) from document.

func GetPublished

func GetPublished(entry *goquery.Selection) time.Time

GetPublished is a function to get USN published time.

func GetUpdated

func GetUpdated(entry *goquery.Selection) time.Time

GetUpdated is a function to get USN updated time.

Types

type Notice

type Notice struct {
	ID          string `dynamo:"usn_id"`
	Pkg         string `dynamo:"name"`
	CVEs        []string
	Priority    string    `dynamo:"severity"`
	Affects1604 bool      `dynamo:"affects_1604"`
	Affects1804 bool      `dynamo:"affects_1804"`
	Published   time.Time `dynamo:"published"`
	Updated     time.Time `dynamo:"updated"`
}

Notice is a class of each USN

func GetNotice

func GetNotice(entry *goquery.Selection) Notice

GetNotice returns an instance of Notice type.

Jump to

Keyboard shortcuts

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