rss

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const (
	//MaxItems is max of items for "getVulnOverviewList" API
	MaxItems = 50
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JVNRSS

type JVNRSS struct {
	Channel struct {
		Title       string      `xml:"title" json:"title"`
		Description string      `xml:"description" json:"description"`
		Link        string      `xml:"link" json:"link"`
		Date        values.Time `xml:"date" json:"date"`
		Modified    values.Time `xml:"modified" json:"modified"`
	} `xml:"channel" json:"channel"`
	Items []struct {
		Title       string      `xml:"title" json:"title"`
		Description string      `xml:"description" json:"description"`
		Link        string      `xml:"link" json:"link"`
		Date        values.Time `xml:"date" json:"date"`
		Issued      values.Time `xml:"issued" json:"issued"`
		Modified    values.Time `xml:"modified" json:"modified"`
		Creator     string      `xml:"creator" json:"creator"`
		Identifier  string      `xml:"identifier" json:"identifier"`
		References  []struct {
			ID     string `xml:"id,attr" json:"id"`
			Title  string `xml:"title,attr,omitempty" json:"title,omitempty"`
			Source string `xml:"source,attr,omitempty" json:"source,omitempty"`
			Value  string `xml:",chardata" json:"value"`
		} `xml:"references" json:"references"`
		Cpe []struct {
			Version string `xml:"version,attr" json:"version"`
			Vendor  string `xml:"vendor,attr" json:"vendor"`
			Product string `xml:"product,attr" json:"product"`
			Value   string `xml:",chardata" json:"value"`
		} `xml:"cpe" json:"cpe"`
		CVSS []struct {
			Version  string `xml:"version,attr" json:"version"`
			Type     string `xml:"type,attr" json:"type"`
			Vector   string `xml:"vector,attr" json:"vector"`
			Score    string `xml:"score,attr" json:"score"`
			Severity string `xml:"severity,attr" json:"severity"`
		} `xml:"cvss" json:"cvss"`
	} `xml:"item" json:"item"`
}

JVNRSS is structure of JVNRSS

func Unmarshal

func Unmarshal(data []byte) (*JVNRSS, error)

Unmarshal returns JVNRSS value, unmarshalling XML data

func (*JVNRSS) Append added in v0.2.1

func (rss *JVNRSS) Append(appnd *JVNRSS)

Append appends Items data

func (*JVNRSS) JSON

func (rss *JVNRSS) JSON(indent string) ([]byte, error)

JSON returns JSON string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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