Files
kata-containers/protocols/cache/cache.proto
Hui Zhu ace81155a4 factory: Make factory status can show status of VMCache server
This commit adds a new gRPC function Status to CacheService.  VMCache
server will reply the status of VMCache server.
Factory destroy will call gRPC Status to get the status of VMCache
server and output it when VMCache is enabled.

Fixes: #1395

Signed-off-by: Hui Zhu <teawater@hyper.sh>
2019-04-10 11:03:14 +08:00

51 lines
862 B
Protocol Buffer

//
// Copyright 2019 HyperHQ Inc.
//
// SPDX-License-Identifier: Apache-2.0
//
syntax = "proto3";
package cache;
import "google/protobuf/empty.proto";
service CacheService {
rpc Config(google.protobuf.Empty) returns (GrpcVMConfig);
rpc GetBaseVM(google.protobuf.Empty) returns (GrpcVM);
rpc Status(google.protobuf.Empty) returns (GrpcStatus);
rpc Quit(google.protobuf.Empty) returns (google.protobuf.Empty);
}
message GrpcVMConfig {
bytes Data = 1;
bytes AgentConfig = 2;
}
message GrpcVM {
string id = 1;
bytes hypervisor = 2;
int64 proxyPid = 3;
string proxyURL = 4;
uint32 cpu = 5;
uint32 memory = 6;
uint32 cpuDelta = 7;
}
message GrpcStatus {
int64 pid = 1;
repeated GrpcVMStatus vmstatus = 2;
}
message GrpcVMStatus {
int64 pid = 1;
uint32 cpu = 2;
uint32 memory = 3;
}