models

package
v0.0.0-...-9ef7b20 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CVE

type CVE struct {
	Id          bson.ObjectId `bson:"_id"`
	CveId       string        `bson:"cve_id"`
	Description string        `bson:"description"`
	Severity    string        `bson:"severity"`
	Product     string        `bson:"product"`
	Vendor      string        `bson:"vendor"`
	Links       []string      `bson:"links"`
	Published   time.Time     `bson:"published"`
	Modified    time.Time     `bson:"modified"`
}

CVE model represents a Common Vulnerabilities and Exposures entry

func (*CVE) FromProto

func (cve *CVE) FromProto(proto *pb.CVE)

FromProto converts the Protobuf message to the corresponding CVE model.

func (*CVE) ToProto

func (cve *CVE) ToProto() *pb.CVE

ToProto converts the CVE model to the corresponding Protobuf message.

Jump to

Keyboard shortcuts

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