entities

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 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

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