mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
* Added support for list all packages flag in client This commit is to support --list-all_pkgs argument in client command Example command: trivy -d client --list-all-pkgs --remote http://localhost:8080 ubuntu:18.04. * Updated argument in client.md * Fixed all format issues
303 lines
11 KiB
Go
303 lines
11 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: rpc/scanner/service.proto
|
|
|
|
package scanner
|
|
|
|
import (
|
|
fmt "fmt"
|
|
common "github.com/aquasecurity/trivy/rpc/common"
|
|
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 ScanRequest struct {
|
|
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
|
|
ArtifactId string `protobuf:"bytes,2,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
|
|
BlobIds []string `protobuf:"bytes,3,rep,name=blob_ids,json=blobIds,proto3" json:"blob_ids,omitempty"`
|
|
Options *ScanOptions `protobuf:"bytes,4,opt,name=options,proto3" json:"options,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ScanRequest) Reset() { *m = ScanRequest{} }
|
|
func (m *ScanRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ScanRequest) ProtoMessage() {}
|
|
func (*ScanRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_60d0e837512b18d4, []int{0}
|
|
}
|
|
|
|
func (m *ScanRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ScanRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ScanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ScanRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ScanRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ScanRequest.Merge(m, src)
|
|
}
|
|
func (m *ScanRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ScanRequest.Size(m)
|
|
}
|
|
func (m *ScanRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ScanRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ScanRequest proto.InternalMessageInfo
|
|
|
|
func (m *ScanRequest) GetTarget() string {
|
|
if m != nil {
|
|
return m.Target
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ScanRequest) GetArtifactId() string {
|
|
if m != nil {
|
|
return m.ArtifactId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ScanRequest) GetBlobIds() []string {
|
|
if m != nil {
|
|
return m.BlobIds
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ScanRequest) GetOptions() *ScanOptions {
|
|
if m != nil {
|
|
return m.Options
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ScanOptions struct {
|
|
VulnType []string `protobuf:"bytes,1,rep,name=vuln_type,json=vulnType,proto3" json:"vuln_type,omitempty"`
|
|
SecurityChecks []string `protobuf:"bytes,2,rep,name=security_checks,json=securityChecks,proto3" json:"security_checks,omitempty"`
|
|
ListAllPackages bool `protobuf:"varint,3,opt,name=list_all_packages,json=listAllPackages,proto3" json:"list_all_packages,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ScanOptions) Reset() { *m = ScanOptions{} }
|
|
func (m *ScanOptions) String() string { return proto.CompactTextString(m) }
|
|
func (*ScanOptions) ProtoMessage() {}
|
|
func (*ScanOptions) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_60d0e837512b18d4, []int{1}
|
|
}
|
|
|
|
func (m *ScanOptions) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ScanOptions.Unmarshal(m, b)
|
|
}
|
|
func (m *ScanOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ScanOptions.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ScanOptions) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ScanOptions.Merge(m, src)
|
|
}
|
|
func (m *ScanOptions) XXX_Size() int {
|
|
return xxx_messageInfo_ScanOptions.Size(m)
|
|
}
|
|
func (m *ScanOptions) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ScanOptions.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ScanOptions proto.InternalMessageInfo
|
|
|
|
func (m *ScanOptions) GetVulnType() []string {
|
|
if m != nil {
|
|
return m.VulnType
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ScanOptions) GetSecurityChecks() []string {
|
|
if m != nil {
|
|
return m.SecurityChecks
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ScanOptions) GetListAllPackages() bool {
|
|
if m != nil {
|
|
return m.ListAllPackages
|
|
}
|
|
return false
|
|
}
|
|
|
|
type ScanResponse struct {
|
|
Os *common.OS `protobuf:"bytes,1,opt,name=os,proto3" json:"os,omitempty"`
|
|
Eosl bool `protobuf:"varint,2,opt,name=eosl,proto3" json:"eosl,omitempty"`
|
|
Results []*Result `protobuf:"bytes,3,rep,name=results,proto3" json:"results,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ScanResponse) Reset() { *m = ScanResponse{} }
|
|
func (m *ScanResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ScanResponse) ProtoMessage() {}
|
|
func (*ScanResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_60d0e837512b18d4, []int{2}
|
|
}
|
|
|
|
func (m *ScanResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ScanResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ScanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ScanResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ScanResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ScanResponse.Merge(m, src)
|
|
}
|
|
func (m *ScanResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ScanResponse.Size(m)
|
|
}
|
|
func (m *ScanResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ScanResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ScanResponse proto.InternalMessageInfo
|
|
|
|
func (m *ScanResponse) GetOs() *common.OS {
|
|
if m != nil {
|
|
return m.Os
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ScanResponse) GetEosl() bool {
|
|
if m != nil {
|
|
return m.Eosl
|
|
}
|
|
return false
|
|
}
|
|
|
|
func (m *ScanResponse) GetResults() []*Result {
|
|
if m != nil {
|
|
return m.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Result is the same as github.com/aquasecurity/trivy/pkg/report.Result
|
|
type Result struct {
|
|
Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
|
|
Vulnerabilities []*common.Vulnerability `protobuf:"bytes,2,rep,name=vulnerabilities,proto3" json:"vulnerabilities,omitempty"`
|
|
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
|
|
Packages []*common.Package `protobuf:"bytes,4,rep,name=packages,proto3" json:"packages,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Result) Reset() { *m = Result{} }
|
|
func (m *Result) String() string { return proto.CompactTextString(m) }
|
|
func (*Result) ProtoMessage() {}
|
|
func (*Result) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_60d0e837512b18d4, []int{3}
|
|
}
|
|
|
|
func (m *Result) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Result.Unmarshal(m, b)
|
|
}
|
|
func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Result.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Result) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Result.Merge(m, src)
|
|
}
|
|
func (m *Result) XXX_Size() int {
|
|
return xxx_messageInfo_Result.Size(m)
|
|
}
|
|
func (m *Result) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Result.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Result proto.InternalMessageInfo
|
|
|
|
func (m *Result) GetTarget() string {
|
|
if m != nil {
|
|
return m.Target
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Result) GetVulnerabilities() []*common.Vulnerability {
|
|
if m != nil {
|
|
return m.Vulnerabilities
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Result) GetType() string {
|
|
if m != nil {
|
|
return m.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Result) GetPackages() []*common.Package {
|
|
if m != nil {
|
|
return m.Packages
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*ScanRequest)(nil), "trivy.scanner.v1.ScanRequest")
|
|
proto.RegisterType((*ScanOptions)(nil), "trivy.scanner.v1.ScanOptions")
|
|
proto.RegisterType((*ScanResponse)(nil), "trivy.scanner.v1.ScanResponse")
|
|
proto.RegisterType((*Result)(nil), "trivy.scanner.v1.Result")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("rpc/scanner/service.proto", fileDescriptor_60d0e837512b18d4)
|
|
}
|
|
|
|
var fileDescriptor_60d0e837512b18d4 = []byte{
|
|
// 443 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x52, 0x4f, 0x6f, 0xd3, 0x30,
|
|
0x1c, 0x55, 0xda, 0xaa, 0x49, 0x7f, 0x41, 0x74, 0x58, 0x02, 0x65, 0x9b, 0x80, 0xaa, 0x17, 0x2a,
|
|
0x0e, 0x89, 0x16, 0x24, 0x38, 0x03, 0xda, 0x61, 0xa7, 0x4d, 0x2e, 0xe2, 0xc0, 0x25, 0x72, 0x5c,
|
|
0xd3, 0x59, 0x73, 0xe3, 0xcc, 0x76, 0x2a, 0x72, 0xe2, 0x7b, 0xf0, 0x21, 0xf8, 0x8c, 0xc8, 0x7f,
|
|
0x32, 0xd1, 0x4d, 0xbd, 0xfd, 0xfc, 0x7e, 0x2f, 0x2f, 0xef, 0x3d, 0x1b, 0x4e, 0x55, 0x4b, 0x0b,
|
|
0x4d, 0x49, 0xd3, 0x30, 0x55, 0x68, 0xa6, 0xf6, 0x9c, 0xb2, 0xbc, 0x55, 0xd2, 0x48, 0x74, 0x62,
|
|
0x14, 0xdf, 0xf7, 0x79, 0x58, 0xe6, 0xfb, 0x8b, 0xb3, 0x8f, 0x5b, 0x6e, 0x6e, 0xbb, 0x3a, 0xa7,
|
|
0x72, 0x57, 0x90, 0xfb, 0x8e, 0x68, 0x46, 0x3b, 0xc5, 0x4d, 0x5f, 0x38, 0x66, 0x61, 0xa5, 0xa8,
|
|
0xdc, 0xed, 0x64, 0x73, 0xa8, 0xb4, 0xfc, 0x13, 0x41, 0xba, 0xa6, 0xa4, 0xc1, 0xec, 0xbe, 0x63,
|
|
0xda, 0xa0, 0x57, 0x30, 0x35, 0x44, 0x6d, 0x99, 0xc9, 0xa2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