severity

package
v0.0.0-...-d070639 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(x, y Severity) int

Types

type Severity

type Severity struct {
	Type    SeverityType      `json:"type,omitempty"`
	Source  string            `json:"source,omitempty"`
	Vendor  *string           `json:"vendor,omitempty"`
	CVSSv2  *v2Types.CVSSv2   `json:"cvss_v2,omitempty"`
	CVSSv30 *v30Types.CVSSv30 `json:"cvss_v30,omitempty"`
	CVSSv31 *v31Types.CVSSv31 `json:"cvss_v31,omitempty"`
	CVSSv40 *v40Types.CVSSv40 `json:"cvss_v40,omitempty"`
}

type SeverityType

type SeverityType int
const (
	SeverityTypeVendor SeverityType
	SeverityTypeCVSSv2
	SeverityTypeCVSSv30
	SeverityTypeCVSSv31
	SeverityTypeCVSSv40
)

func (SeverityType) MarshalJSON

func (t SeverityType) MarshalJSON() ([]byte, error)

func (SeverityType) String

func (t SeverityType) String() string

func (*SeverityType) UnmarshalJSON

func (t *SeverityType) UnmarshalJSON(data []byte) error

Directories

Path Synopsis
cvss
v2
v30
v31
v40

Jump to

Keyboard shortcuts

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