yarn

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finding

type Finding struct {
	Version string `json:"version"`
}

type Issue

type Issue struct {
	Findings           []Finding `json:"findings"`
	ID                 int       `json:"id"`
	ModuleName         string    `json:"module_name"`
	VulnerableVersions string    `json:"vulnerable_versions"`
	Severity           string    `json:"severity"`
	Overview           string    `json:"overview"`
}

func (*Issue) GetSeverity

func (i *Issue) GetSeverity() severity.Severity

func (*Issue) GetVersion

func (i *Issue) GetVersion() string

func (*Issue) IsHighSeverity

func (i *Issue) IsHighSeverity() bool

func (*Issue) IsLowSeverity

func (i *Issue) IsLowSeverity() bool

func (*Issue) IsMediumSeverity

func (i *Issue) IsMediumSeverity() bool

type Metadata

type Metadata struct {
	Vulnerabilities Vulnerabilities `json:"vulnerabilities"`
}

type Output

type Output struct {
	Advisories []Issue  `json:"advisories"`
	Metadata   Metadata `json:"metadata"`
}

type Vulnerabilities

type Vulnerabilities struct {
	Info     int `json:"info"`
	Low      int `json:"low"`
	Moderate int `json:"moderate"`
	High     int `json:"high"`
	Critical int `json:"critical"`
}

Jump to

Keyboard shortcuts

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