securitydataapi

package
v0.0.0-...-378edf0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Update

func Update(years []int) error

Types

type RedhatAffectedRelease

type RedhatAffectedRelease struct {
	RedhatCVEID int64  `json:",omitempty"`
	ProductName string `json:"product_name"`
	ReleaseDate string `json:"release_date"`
	Advisory    string `json:"advisory"`
	Package     string `json:"package"`
	Cpe         string `json:"cpe"`
}

type RedhatBugzilla

type RedhatBugzilla struct {
	RedhatCVEID int64  `json:",omitempty"`
	Description string `json:"description"`

	BugzillaID string `json:"id"`
	URL        string `json:"url"`
}

type RedhatCVEJSON

type RedhatCVEJSON struct {
	ThreatSeverity       string                  `json:"threat_severity"`
	PublicDate           string                  `json:"public_date"`
	Bugzilla             RedhatBugzilla          `json:"bugzilla"`
	Cvss                 RedhatCvss              `json:"cvss"`
	Cvss3                RedhatCvss3             `json:"cvss3"`
	Iava                 string                  `json:"iava"`
	Cwe                  string                  `json:"cwe"`
	Statement            string                  `json:"statement"`
	Acknowledgement      string                  `json:"acknowledgement"`
	Mitigation           string                  `json:"-"`
	AffectedRelease      []RedhatAffectedRelease `json:"-"`
	PackageState         []RedhatPackageState    `json:"-"`
	Name                 string                  `json:"name"`
	DocumentDistribution string                  `json:"document_distribution"`

	Details    []string `json:"details"`
	References []string `json:"references"`
}

func (*RedhatCVEJSON) MarshalJSON

func (r *RedhatCVEJSON) MarshalJSON() ([]byte, error)

func (*RedhatCVEJSON) UnmarshalJSON

func (r *RedhatCVEJSON) UnmarshalJSON(data []byte) error

type RedhatCVEJSONAffectedReleaseArray

type RedhatCVEJSONAffectedReleaseArray struct {
	AffectedRelease []RedhatAffectedRelease `json:"affected_release"`
}

type RedhatCVEJSONAffectedReleaseObject

type RedhatCVEJSONAffectedReleaseObject struct {
	AffectedRelease RedhatAffectedRelease `json:"affected_release"`
}

type RedhatCVEJSONMitigationObject

type RedhatCVEJSONMitigationObject struct {
	Value string
	Lang  string
}

type RedhatCVEJSONPackageStateArray

type RedhatCVEJSONPackageStateArray struct {
	PackageState []RedhatPackageState `json:"package_state"`
}

type RedhatCVEJSONPackageStateObject

type RedhatCVEJSONPackageStateObject struct {
	PackageState RedhatPackageState `json:"package_state"`
}

type RedhatCvss

type RedhatCvss struct {
	RedhatCVEID       int64  `json:",omitempty"`
	CvssBaseScore     string `json:"cvss_base_score"`
	CvssScoringVector string `json:"cvss_scoring_vector"`
	Status            string `json:"status"`
}

type RedhatCvss3

type RedhatCvss3 struct {
	RedhatCVEID        int64  `json:",omitempty"`
	Cvss3BaseScore     string `json:"cvss3_base_score"`
	Cvss3ScoringVector string `json:"cvss3_scoring_vector"`
	Status             string `json:"status"`
}

type RedhatDetail

type RedhatDetail struct {
	RedhatCVEID int64 `json:",omitempty"`
	Detail      string
}

type RedhatEntry

type RedhatEntry struct {
	CveID string `json:"CVE"`
}

type RedhatPackageState

type RedhatPackageState struct {
	RedhatCVEID int64  `json:",omitempty"`
	ProductName string `json:"product_name"`
	FixState    string `json:"fix_state"`
	PackageName string `json:"package_name"`
	Cpe         string `json:"cpe"`
}

type RedhatReference

type RedhatReference struct {
	RedhatCVEID int64 `json:",omitempty"`
	Reference   string
}

Jump to

Keyboard shortcuts

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