cargo

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: 12 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"`
	PatchedVersions    []string `json:",omitempty"`
	UnaffectedVersions []string `json:",omitempty"`
}

type Lockfile

type Lockfile struct {
	RawAdvisory `toml:"advisory"`
	RawVersion  `toml:"versions"`
}

type RawAdvisory

type RawAdvisory struct {
	Id          string
	Package     string
	Title       string `toml:"title"`
	Url         string
	Date        string
	Description string
	Keywords    []string
}

type RawVersion

type RawVersion struct {
	PatchedVersions    []string `toml:"patched"`
	UnaffectedVersions []string `toml:"unaffected"`
}

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