Help us shape the future of Go! Take the 2026 Go Developer Survey

model

package
v0.0.0-...-1797cfc Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ColorDefault = "\x1b[39m"

	ColorRed    = "\x1b[91m"
	ColorYellow = "\x1b[93m"
	ColorGreen  = "\x1b[32m"
	ColorBlue   = "\x1b[94m"
	ColorGray   = "\x1b[90m"
)

https://github.com/shiena/ansicolor/blob/master/README.md

Variables

This section is empty.

Functions

This section is empty.

Types

type Affected

type Affected struct {
	Package          Package          `json:"package,omitempty"`
	Ranges           []Ranges         `json:"ranges,omitempty"`
	Versions         []string         `json:"versions,omitempty"`
	DatabaseSpecific DatabaseSpecific `json:"database_specific,omitempty"`
}

type DatabaseSpecific

type DatabaseSpecific struct {
	CweIds                        []string  `json:"cwe_ids,omitempty"`
	GithubReviewed                bool      `json:"github_reviewed,omitempty"`
	GithubReviewedAt              time.Time `json:"github_reviewed_at,omitempty"`
	NvdPublishedAt                time.Time `json:"nvd_published_at,omitempty"`
	Severity                      string    `json:"severity,omitempty"`
	LastKnownAffectedVersionRange string    `json:"last_known_affected_version_range,omitempty"`
	Source                        string    `json:"source,omitempty"`
}

type Events

type Events struct {
	Introduced string `json:"introduced,omitempty"`
	Fixed      string `json:"fixed,omitempty"`
}

type Groups

type Groups struct {
	Ids []string `json:"ids,omitempty"`
}

type OSVData

type OSVData struct {
	Results []Results `json:"results,omitempty"`
}

func (*OSVData) Load

func (t *OSVData) Load(filename string) error

func (*OSVData) PrintVuls

func (s *OSVData) PrintVuls()

type Package

type Package struct {
	Name      string `json:"name,omitempty"`
	Version   string `json:"version,omitempty"`
	Ecosystem string `json:"ecosystem,omitempty"`
	Purl      string `json:"purl,omitempty"`
}

type Packages

type Packages struct {
	Package         Package           `json:"package,omitempty"`
	Vulnerabilities []Vulnerabilities `json:"vulnerabilities,omitempty"`
	Groups          []Groups          `json:"groups,omitempty"`
}

type Ranges

type Ranges struct {
	Type   string   `json:"type,omitempty"`
	Events []Events `json:"events,omitempty"`
}

type References

type References struct {
	Type string `json:"type,omitempty"`
	URL  string `json:"url,omitempty"`
}

type Results

type Results struct {
	Source   Source     `json:"source,omitempty"`
	Packages []Packages `json:"packages,omitempty"`
}

type Source

type Source struct {
	Path string `json:"path,omitempty"`
	Type string `json:"type,omitempty"`
}

type Vulnerabilities

type Vulnerabilities struct {
	SchemaVersion    string           `json:"schema_version,omitempty"`
	ID               string           `json:"id,omitempty"`
	Modified         time.Time        `json:"modified,omitempty"`
	Published        time.Time        `json:"published,omitempty"`
	Aliases          []string         `json:"aliases,omitempty"`
	Summary          string           `json:"summary,omitempty"`
	Details          string           `json:"details,omitempty"`
	Affected         []Affected       `json:"affected,omitempty"`
	References       []References     `json:"references,omitempty"`
	DatabaseSpecific DatabaseSpecific `json:"database_specific,omitempty"`
}

Jump to

Keyboard shortcuts

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