python

package
v0.0.0-...-0e2e07d Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToLowerCasePythonPackage

func ToLowerCasePythonPackage(pkg string) string

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) Name

func (vs VulnSrc) Name() string

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