Files
kata-containers/protocols/cache/cache.proto
Hui Zhu f639787e02 factory: Make factory destroy can stop VMCache server
VMCache server just can be stopped by ctrl-c without current commit.

This commit adds a new gRPC function Quit to CacheService.  VMCache
server will stop by itself after 1 second when Quit is called.
Factory destroy will call gRPC Quit when VMCache is enabled.

Fixes: #1395

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

37 lines
629 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 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;
}