sensiolabs

package
v0.0.0-...-24bde57 Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Layout = "Mon, 2 Jan 2006 15:04:05 +0000"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisories

type Advisories struct {
	Source      string
	LastBuildAt time.Time
	Items       []Advisory
}

func GetAdvisories

func GetAdvisories() (*Advisories, error)

func (*Advisories) GetVulnerabilities

func (advs *Advisories) GetVulnerabilities(packageName string, packageVersion string) []Advisory

type Advisory

type Advisory struct {
	Title              string
	Link               string
	CveIdentifier      string
	PublishedAt        time.Time
	PackageName        string
	VulnerableVersions [][]string
}

type Item

type Item struct {
	Title       string `xml:"title"`
	Description string `xml:"description"`
	Link        string `xml:"link"`
	PublishedAt string `xml:"pubDate"`
}

type Items

type Items []Item

type Xml

type Xml struct {
	XMLName     xml.Name `xml:"rss"`
	LastBuildAt string   `xml:"channel>lastBuildDate"`
	Items       Items    `xml:"channel>item"`
}

Jump to

Keyboard shortcuts

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