mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-03 22:44:24 +01:00
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>
37 lines
629 B
Protocol Buffer
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;
|
|
}
|