mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
693 lines
23 KiB
Go
693 lines
23 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"
|
|
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
|
|
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"`
|
|
PrimaryUrl string `protobuf:"bytes,14,opt,name=primary_url,json=primaryUrl,proto3" json:"primary_url,omitempty"`
|
|
PublishedDate *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=published_date,json=publishedDate,proto3" json:"published_date,omitempty"`
|
|
LastModifiedDate *timestamppb.Timestamp `protobuf:"bytes,16,opt,name=last_modified_date,json=lastModifiedDate,proto3" json:"last_modified_date,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
|
|
}
|
|
|
|
func (m *Vulnerability) GetPrimaryUrl() string {
|
|
if m != nil {
|
|
return m.PrimaryUrl
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Vulnerability) GetPublishedDate() *timestamppb.Timestamp {
|
|
if m != nil {
|
|
return m.PublishedDate
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Vulnerability) GetLastModifiedDate() *timestamppb.Timestamp {
|
|
if m != nil {
|
|
return m.LastModifiedDate
|
|
}
|
|
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{
|
|
// 848 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x5b, 0x6f, 0xdb, 0x46,
|
|
0x13, 0xfd, 0x74, 0x25, 0x35, 0xf4, 0x85, 0xdf, 0x36, 0x4d, 0x19, 0x07, 0x68, 0x04, 0x15, 0x45,
|
|
0x95, 0x16, 0x90, 0x5b, 0xea, 0xa1, 0x69, 0xdf, 0x5c, 0xdb, 0xa8, 0x85, 0xf8, 0x12, 0x50, 0xb1,
|
|
0x03, 0x14, 0x28, 0x88, 0xd5, 0x72, 0x29, 0x2d, 0x4c, 0x91, 0xc4, 0xee, 0x8a, 0x29, 0xff, 0x68,
|
|
0xff, 0x49, 0xdf, 0x8b, 0xbd, 0x50, 0x96, 0x82, 0x02, 0x45, 0xdf, 0x76, 0xe6, 0x9c, 0x39, 0x73,
|
|
0xe1, 0x70, 0x20, 0xe0, 0x25, 0x39, 0x25, 0xc5, 0x7a, 0x5d, 0xe4, 0xa7, 0x82, 0xf2, 0x8a, 0x11,
|
|
0x3a, 0x29, 0x79, 0x21, 0x0b, 0x74, 0x20, 0x39, 0xab, 0xea, 0x89, 0xc1, 0x4e, 0x5e, 0x2d, 0x8b,
|
|
0x62, 0x99, 0xd1, 0x53, 0x8d, 0x2d, 0x36, 0xe9, 0xa9, 0x64, 0x6b, 0x2a, 0x24, 0x5e, 0x97, 0x86,
|
|
0x3e, 0xfa, 0x1e, 0xda, 0x77, 0x73, 0xf4, 0x1c, 0xfa, 0x29, 0x5e, 0xb3, 0xac, 0x0e, 0x5a, 0xc3,
|
|
0xd6, 0x78, 0x10, 0x59, 0x0b, 0x21, 0xe8, 0xe6, 0x78, 0x4d, 0x83, 0xb6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