Files
aquasecurity-trivy/rpc/cache/service.proto
Teppei Fukuda 2f2d1a908b feat: support repository and filesystem scan (#503)
* refactor: embed config

* refactor: replace image and layer with artifact and blob

* feat(config): add ArtifactConfig

* fix(scanner): use Artifact

* test(scanner): update mocks

* feat: add repo and fs subcommands

* chore(mod): update

* refactor: fix warn message

* feat(cli): add --no-progress to repo and fs

* mod: Update fanal dependency

Signed-off-by: Simarpreet Singh <simar@linux.com>

Co-authored-by: Simarpreet Singh <simar@linux.com>
2020-05-30 19:46:12 +03:00

60 lines
1.6 KiB
Protocol Buffer

syntax = "proto3";
package trivy.cache.v1;
option go_package = "cache";
import "google/protobuf/timestamp.proto";
import "github.com/aquasecurity/trivy/rpc/common/service.proto";
import "google/protobuf/empty.proto";
service Cache {
rpc PutArtifact(PutArtifactRequest) returns (google.protobuf.Empty);
rpc PutBlob(PutBlobRequest) returns (google.protobuf.Empty);
rpc MissingBlobs(MissingBlobsRequest) returns (MissingBlobsResponse);
}
message ArtifactInfo {
int32 schema_version = 1;
string architecture = 2;
google.protobuf.Timestamp created = 3;
string docker_version = 4;
string os = 5;
repeated common.Package history_packages = 6;
}
message PutArtifactRequest {
string artifact_id = 1;
ArtifactInfo artifact_info = 2;
}
message BlobInfo {
int32 schema_version = 1;
common.OS os = 2;
repeated common.PackageInfo package_infos = 3;
repeated common.Application applications = 4;
repeated string opaque_dirs = 5;
repeated string whiteout_files = 6;
string digest = 7;
string diff_id = 8;
}
message PutBlobRequest {
string diff_id = 1;
BlobInfo blob_info = 3;
}
message PutResponse {
common.OS os = 1;
bool eosl = 2;
}
message MissingBlobsRequest {
string artifact_id = 1;
repeated string blob_ids = 2;
}
message MissingBlobsResponse {
bool missing_artifact = 1;
repeated string missing_blob_ids = 2;
}