mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
662 lines
22 KiB
Go
662 lines
22 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: rpc/common/service.proto
|
|
|
|
package common
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type Severity int32
|
|
|
|
const (
|
|
Severity_UNKNOWN Severity = 0
|
|
Severity_LOW Severity = 1
|
|
Severity_MEDIUM Severity = 2
|
|
Severity_HIGH Severity = 3
|
|
Severity_CRITICAL Severity = 4
|
|
)
|
|
|
|
var Severity_name = map[int32]string{
|
|
0: "UNKNOWN",
|
|
1: "LOW",
|
|
2: "MEDIUM",
|
|
3: "HIGH",
|
|
4: "CRITICAL",
|
|
}
|
|
|
|
var Severity_value = map[string]int32{
|
|
"UNKNOWN": 0,
|
|
"LOW": 1,
|
|
"MEDIUM": 2,
|
|
"HIGH": 3,
|
|
"CRITICAL": 4,
|
|
}
|
|
|
|
func (x Severity) String() string {
|
|
return proto.EnumName(Severity_name, int32(x))
|
|
}
|
|
|
|
func (Severity) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{0}
|
|
}
|
|
|
|
type OS struct {
|
|
Family string `protobuf:"bytes,1,opt,name=family,proto3" json:"family,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *OS) Reset() { *m = OS{} }
|
|
func (m *OS) String() string { return proto.CompactTextString(m) }
|
|
func (*OS) ProtoMessage() {}
|
|
func (*OS) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{0}
|
|
}
|
|
|
|
func (m *OS) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_OS.Unmarshal(m, b)
|
|
}
|
|
func (m *OS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_OS.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *OS) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_OS.Merge(m, src)
|
|
}
|
|
func (m *OS) XXX_Size() int {
|
|
return xxx_messageInfo_OS.Size(m)
|
|
}
|
|
func (m *OS) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_OS.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_OS proto.InternalMessageInfo
|
|
|
|
func (m *OS) GetFamily() string {
|
|
if m != nil {
|
|
return m.Family
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *OS) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PackageInfo struct {
|
|
FilePath string `protobuf:"bytes,1,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
|
|
Packages []*Package `protobuf:"bytes,2,rep,name=packages,proto3" json:"packages,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PackageInfo) Reset() { *m = PackageInfo{} }
|
|
func (m *PackageInfo) String() string { return proto.CompactTextString(m) }
|
|
func (*PackageInfo) ProtoMessage() {}
|
|
func (*PackageInfo) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{1}
|
|
}
|
|
|
|
func (m *PackageInfo) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PackageInfo.Unmarshal(m, b)
|
|
}
|
|
func (m *PackageInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PackageInfo.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PackageInfo) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PackageInfo.Merge(m, src)
|
|
}
|
|
func (m *PackageInfo) XXX_Size() int {
|
|
return xxx_messageInfo_PackageInfo.Size(m)
|
|
}
|
|
func (m *PackageInfo) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PackageInfo.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PackageInfo proto.InternalMessageInfo
|
|
|
|
func (m *PackageInfo) GetFilePath() string {
|
|
if m != nil {
|
|
return m.FilePath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PackageInfo) GetPackages() []*Package {
|
|
if m != nil {
|
|
return m.Packages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Application struct {
|
|
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
|
FilePath string `protobuf:"bytes,2,opt,name=file_path,json=filePath,proto3" json:"file_path,omitempty"`
|
|
Libraries []*Library `protobuf:"bytes,3,rep,name=libraries,proto3" json:"libraries,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Application) Reset() { *m = Application{} }
|
|
func (m *Application) String() string { return proto.CompactTextString(m) }
|
|
func (*Application) ProtoMessage() {}
|
|
func (*Application) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{2}
|
|
}
|
|
|
|
func (m *Application) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Application.Unmarshal(m, b)
|
|
}
|
|
func (m *Application) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Application.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Application) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Application.Merge(m, src)
|
|
}
|
|
func (m *Application) XXX_Size() int {
|
|
return xxx_messageInfo_Application.Size(m)
|
|
}
|
|
func (m *Application) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Application.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Application proto.InternalMessageInfo
|
|
|
|
func (m *Application) GetType() string {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Application) GetFilePath() string {
|
|
if m != nil {
|
|
return m.FilePath
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Application) GetLibraries() []*Library {
|
|
if m != nil {
|
|
return m.Libraries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Package struct {
|
|
// binary package
|
|
// e.g. bind-utils
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
Release string `protobuf:"bytes,3,opt,name=release,proto3" json:"release,omitempty"`
|
|
Epoch int32 `protobuf:"varint,4,opt,name=epoch,proto3" json:"epoch,omitempty"`
|
|
Arch string `protobuf:"bytes,5,opt,name=arch,proto3" json:"arch,omitempty"`
|
|
// src package containing some binary packages
|
|
// e.g. bind
|
|
SrcName string `protobuf:"bytes,6,opt,name=src_name,json=srcName,proto3" json:"src_name,omitempty"`
|
|
SrcVersion string `protobuf:"bytes,7,opt,name=src_version,json=srcVersion,proto3" json:"src_version,omitempty"`
|
|
SrcRelease string `protobuf:"bytes,8,opt,name=src_release,json=srcRelease,proto3" json:"src_release,omitempty"`
|
|
SrcEpoch int32 `protobuf:"varint,9,opt,name=src_epoch,json=srcEpoch,proto3" json:"src_epoch,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Package) Reset() { *m = Package{} }
|
|
func (m *Package) String() string { return proto.CompactTextString(m) }
|
|
func (*Package) ProtoMessage() {}
|
|
func (*Package) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{3}
|
|
}
|
|
|
|
func (m *Package) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Package.Unmarshal(m, b)
|
|
}
|
|
func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Package.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Package) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Package.Merge(m, src)
|
|
}
|
|
func (m *Package) XXX_Size() int {
|
|
return xxx_messageInfo_Package.Size(m)
|
|
}
|
|
func (m *Package) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Package.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Package proto.InternalMessageInfo
|
|
|
|
func (m *Package) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Package) GetVersion() string {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Package) GetRelease() string {
|
|
if m != nil {
|
|
return m.Release
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Package) GetEpoch() int32 {
|
|
if m != nil {
|
|
return m.Epoch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Package) GetArch() string {
|
|
if m != nil {
|
|
return m.Arch
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Package) GetSrcName() string {
|
|
if m != nil {
|
|
return m.SrcName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Package) GetSrcVersion() string {
|
|
if m != nil {
|
|
return m.SrcVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Package) GetSrcRelease() string {
|
|
if m != nil {
|
|
return m.SrcRelease
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Package) GetSrcEpoch() int32 {
|
|
if m != nil {
|
|
return m.SrcEpoch
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type Library struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Library) Reset() { *m = Library{} }
|
|
func (m *Library) String() string { return proto.CompactTextString(m) }
|
|
func (*Library) ProtoMessage() {}
|
|
func (*Library) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{4}
|
|
}
|
|
|
|
func (m *Library) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Library.Unmarshal(m, b)
|
|
}
|
|
func (m *Library) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Library.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Library) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Library.Merge(m, src)
|
|
}
|
|
func (m *Library) XXX_Size() int {
|
|
return xxx_messageInfo_Library.Size(m)
|
|
}
|
|
func (m *Library) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Library.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Library proto.InternalMessageInfo
|
|
|
|
func (m *Library) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Library) GetVersion() string {
|
|
if m != nil {
|
|
return m.Version
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Vulnerability struct {
|
|
VulnerabilityId string `protobuf:"bytes,1,opt,name=vulnerability_id,json=vulnerabilityId,proto3" json:"vulnerability_id,omitempty"`
|
|
PkgName string `protobuf:"bytes,2,opt,name=pkg_name,json=pkgName,proto3" json:"pkg_name,omitempty"`
|
|
InstalledVersion string `protobuf:"bytes,3,opt,name=installed_version,json=installedVersion,proto3" json:"installed_version,omitempty"`
|
|
FixedVersion string `protobuf:"bytes,4,opt,name=fixed_version,json=fixedVersion,proto3" json:"fixed_version,omitempty"`
|
|
Title string `protobuf:"bytes,5,opt,name=title,proto3" json:"title,omitempty"`
|
|
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
|
Severity Severity `protobuf:"varint,7,opt,name=severity,proto3,enum=trivy.common.Severity" json:"severity,omitempty"`
|
|
References []string `protobuf:"bytes,8,rep,name=references,proto3" json:"references,omitempty"`
|
|
Layer *Layer `protobuf:"bytes,10,opt,name=layer,proto3" json:"layer,omitempty"`
|
|
SeveritySource string `protobuf:"bytes,11,opt,name=severity_source,json=severitySource,proto3" json:"severity_source,omitempty"`
|
|
Cvss map[string]*CVSS `protobuf:"bytes,12,rep,name=cvss,proto3" json:"cvss,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
|
CweIds []string `protobuf:"bytes,13,rep,name=cwe_ids,json=cweIds,proto3" json:"cwe_ids,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Vulnerability) Reset() { *m = Vulnerability{} }
|
|
func (m *Vulnerability) String() string { return proto.CompactTextString(m) }
|
|
func (*Vulnerability) ProtoMessage() {}
|
|
func (*Vulnerability) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{5}
|
|
}
|
|
|
|
func (m *Vulnerability) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Vulnerability.Unmarshal(m, b)
|
|
}
|
|
func (m *Vulnerability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Vulnerability.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Vulnerability) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Vulnerability.Merge(m, src)
|
|
}
|
|
func (m *Vulnerability) XXX_Size() int {
|
|
return xxx_messageInfo_Vulnerability.Size(m)
|
|
}
|
|
func (m *Vulnerability) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Vulnerability.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Vulnerability proto.InternalMessageInfo
|
|
|
|
func (m *Vulnerability) GetVulnerabilityId() string {
|
|
if m != nil {
|
|
return m.VulnerabilityId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Vulnerability) GetPkgName() string {
|
|
if m != nil {
|
|
return m.PkgName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Vulnerability) GetInstalledVersion() string {
|
|
if m != nil {
|
|
return m.InstalledVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Vulnerability) GetFixedVersion() string {
|
|
if m != nil {
|
|
return m.FixedVersion
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Vulnerability) GetTitle() string {
|
|
if m != nil {
|
|
return m.Title
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Vulnerability) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Vulnerability) GetSeverity() Severity {
|
|
if m != nil {
|
|
return m.Severity
|
|
}
|
|
return Severity_UNKNOWN
|
|
}
|
|
|
|
func (m *Vulnerability) GetReferences() []string {
|
|
if m != nil {
|
|
return m.References
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Vulnerability) GetLayer() *Layer {
|
|
if m != nil {
|
|
return m.Layer
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Vulnerability) GetSeveritySource() string {
|
|
if m != nil {
|
|
return m.SeveritySource
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Vulnerability) GetCvss() map[string]*CVSS {
|
|
if m != nil {
|
|
return m.Cvss
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Vulnerability) GetCweIds() []string {
|
|
if m != nil {
|
|
return m.CweIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Layer struct {
|
|
Digest string `protobuf:"bytes,1,opt,name=digest,proto3" json:"digest,omitempty"`
|
|
DiffId string `protobuf:"bytes,2,opt,name=diff_id,json=diffId,proto3" json:"diff_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Layer) Reset() { *m = Layer{} }
|
|
func (m *Layer) String() string { return proto.CompactTextString(m) }
|
|
func (*Layer) ProtoMessage() {}
|
|
func (*Layer) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{6}
|
|
}
|
|
|
|
func (m *Layer) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Layer.Unmarshal(m, b)
|
|
}
|
|
func (m *Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Layer.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Layer) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Layer.Merge(m, src)
|
|
}
|
|
func (m *Layer) XXX_Size() int {
|
|
return xxx_messageInfo_Layer.Size(m)
|
|
}
|
|
func (m *Layer) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Layer.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Layer proto.InternalMessageInfo
|
|
|
|
func (m *Layer) GetDigest() string {
|
|
if m != nil {
|
|
return m.Digest
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Layer) GetDiffId() string {
|
|
if m != nil {
|
|
return m.DiffId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type CVSS struct {
|
|
V2Vector string `protobuf:"bytes,1,opt,name=v2_vector,json=v2Vector,proto3" json:"v2_vector,omitempty"`
|
|
V3Vector string `protobuf:"bytes,2,opt,name=v3_vector,json=v3Vector,proto3" json:"v3_vector,omitempty"`
|
|
V2Score float64 `protobuf:"fixed64,3,opt,name=v2_score,json=v2Score,proto3" json:"v2_score,omitempty"`
|
|
V3Score float64 `protobuf:"fixed64,4,opt,name=v3_score,json=v3Score,proto3" json:"v3_score,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CVSS) Reset() { *m = CVSS{} }
|
|
func (m *CVSS) String() string { return proto.CompactTextString(m) }
|
|
func (*CVSS) ProtoMessage() {}
|
|
func (*CVSS) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_6e749acacaaabfff, []int{7}
|
|
}
|
|
|
|
func (m *CVSS) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CVSS.Unmarshal(m, b)
|
|
}
|
|
func (m *CVSS) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CVSS.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CVSS) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CVSS.Merge(m, src)
|
|
}
|
|
func (m *CVSS) XXX_Size() int {
|
|
return xxx_messageInfo_CVSS.Size(m)
|
|
}
|
|
func (m *CVSS) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CVSS.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CVSS proto.InternalMessageInfo
|
|
|
|
func (m *CVSS) GetV2Vector() string {
|
|
if m != nil {
|
|
return m.V2Vector
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CVSS) GetV3Vector() string {
|
|
if m != nil {
|
|
return m.V3Vector
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *CVSS) GetV2Score() float64 {
|
|
if m != nil {
|
|
return m.V2Score
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *CVSS) GetV3Score() float64 {
|
|
if m != nil {
|
|
return m.V3Score
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("trivy.common.Severity", Severity_name, Severity_value)
|
|
proto.RegisterType((*OS)(nil), "trivy.common.OS")
|
|
proto.RegisterType((*PackageInfo)(nil), "trivy.common.PackageInfo")
|
|
proto.RegisterType((*Application)(nil), "trivy.common.Application")
|
|
proto.RegisterType((*Package)(nil), "trivy.common.Package")
|
|
proto.RegisterType((*Library)(nil), "trivy.common.Library")
|
|
proto.RegisterType((*Vulnerability)(nil), "trivy.common.Vulnerability")
|
|
proto.RegisterMapType((map[string]*CVSS)(nil), "trivy.common.Vulnerability.CvssEntry")
|
|
proto.RegisterType((*Layer)(nil), "trivy.common.Layer")
|
|
proto.RegisterType((*CVSS)(nil), "trivy.common.CVSS")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("rpc/common/service.proto", fileDescriptor_6e749acacaaabfff) }
|
|
|
|
var fileDescriptor_6e749acacaaabfff = []byte{
|
|
// 748 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xdf, 0x6f, 0xe3, 0x44,
|
|
0x10, 0xc6, 0x89, 0x13, 0x3b, 0xe3, 0xf4, 0xce, 0x2c, 0xc7, 0xe1, 0xe3, 0x24, 0x88, 0x8c, 0x10,
|
|
0x39, 0x90, 0x52, 0x70, 0x1e, 0x28, 0xbc, 0x95, 0xb4, 0xa2, 0x56, 0xdb, 0xb4, 0x72, 0x68, 0x2a,
|
|
0x21, 0x21, 0xcb, 0x5d, 0xaf, 0x93, 0x55, 0x1c, 0xdb, 0xda, 0x75, 0x5d, 0xfc, 0x1f, 0xf1, 0x0f,
|
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