Files
trivy/rpc/scanner/service.proto
Yuval Goldberg 3b0b2ed4ce build: Make make protoc be consistent (#1682)
Signed-off-by: Yuval Goldberg <yuvigoldi@gmail.com>
2022-02-10 11:07:30 +02:00

38 lines
1.1 KiB
Protocol Buffer

syntax = "proto3";
package trivy.scanner.v1;
option go_package = "github.com/aquasecurity/trivy/rpc/scanner;scanner";
import "rpc/common/service.proto";
service Scanner {
rpc Scan(ScanRequest) returns (ScanResponse);
}
message ScanRequest {
string target = 1; // image name or tar file path
string artifact_id = 2;
repeated string blob_ids = 3;
ScanOptions options = 4;
}
message ScanOptions {
repeated string vuln_type = 1;
repeated string security_checks = 2;
bool list_all_packages = 3;
}
message ScanResponse {
common.OS os = 1;
repeated Result results = 3;
}
// Result is the same as github.com/aquasecurity/trivy/pkg/report.Result
message Result {
string target = 1;
repeated common.Vulnerability vulnerabilities = 2;
repeated common.DetectedMisconfiguration misconfigurations = 4;
string class = 6;
string type = 3;
repeated common.Package packages = 5;
}