python

package
v0.0.0-...-b09c308 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Advisory

type Advisory struct {
	VulnerabilityID string   `json:",omitempty"`
	Specs           []string `json:",omitempty"`
}

type AdvisoryDB

type AdvisoryDB map[string][]RawAdvisory

func (AdvisoryDB) UnmarshalJSON

func (ad AdvisoryDB) UnmarshalJSON(data []byte) error

type RawAdvisory

type RawAdvisory struct {
	ID       string
	Advisory string
	Cve      string
	Specs    []string
	Version  string `json:"v"`
}

type VulnSrc

type VulnSrc struct {
	// contains filtered or unexported fields
}

func NewVulnSrc

func NewVulnSrc() VulnSrc

func (VulnSrc) Get

func (vs VulnSrc) Get(pkgName string) ([]Advisory, error)

func (VulnSrc) Update

func (vs VulnSrc) Update(dir string) (err error)

Jump to

Keyboard shortcuts

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