Documentation ¶
Index ¶
- func Affects1604(entry *goquery.Selection) bool
- func Affects1804(entry *goquery.Selection) bool
- func ExtractUsnTitle(s string) string
- func GetCveURL(cve string) string
- func GetCves(entry *goquery.Selection) []string
- func GetHigherPriority(p1 string, p2 string) string
- func GetID(entry *goquery.Selection) string
- func GetPackageName(entry *goquery.Selection) string
- func GetPriority(cve string) string
- func GetPriorityFromReader(r io.Reader) string
- func GetPublished(entry *goquery.Selection) time.Time
- func GetUpdated(entry *goquery.Selection) time.Time
- type Notice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Affects1604 ¶
Affects1604 is a function to evaluate Ubuntu 16.04 LTS is affected.
func Affects1804 ¶
Affects1804 is a function to evaluate Ubuntu 18.04 LTS is affected.
func ExtractUsnTitle ¶
ExtractUsnTitle is a function to get USN-XXXX-X string.
func GetHigherPriority ¶
GetHigherPriority returns a higher priority. https://people.canonical.com/~ubuntu-security/cve/priority.html
func GetPackageName ¶
GetPackageName is a function to get vulnerable package name.
func GetPriority ¶
GetPriority is a function to get priority (severity) for specific CVE.
func GetPriorityFromReader ¶
GetPriorityFromReader is a function to extract priority (severity) from document.
func GetPublished ¶
GetPublished is a function to get USN published 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
Click to show internal directories.
Click to hide internal directories.