runtime: Add hypervisor proto to support peer pod VMs

This patch adds a protobuf definiton of the remote hypervisor type.

Signed-off-by: Yohei Ueda <yohei@jp.ibm.com>
This commit is contained in:
Yohei Ueda 2022-02-17 10:45:40 +09:00
parent 55c8c7226d
commit 150e8aba6d
No known key found for this signature in database
GPG Key ID: 1C7EADC530DC4597
3 changed files with 1902 additions and 0 deletions

View File

@ -0,0 +1,11 @@
#!/bin/bash
set -o errexit -o pipefail -o nounset
cd "$(dirname "${BASH_SOURCE[0]}")/.."
protoc --gogottrpc_out=protocols/hypervisor \
--gogottrpc_opt=plugins=ttrpc+fieldpath,paths=source_relative \
-Iprotocols/hypervisor \
-I../agent/protocols/protos/gogo/protobuf \
protocols/hypervisor/hypervisor.proto

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,43 @@
syntax = "proto3";
package hypervisor;
service Hypervisor {
rpc CreateVM(CreateVMRequest) returns (CreateVMResponse) {}
rpc StartVM(StartVMRequest) returns (StartVMResponse) {}
rpc StopVM(StopVMRequest) returns (StopVMResponse) {}
rpc Version(VersionRequest) returns (VersionResponse) {}
}
message VersionRequest {
string version = 1;
}
message VersionResponse {
string version = 1;
}
message CreateVMRequest {
string id = 1;
map<string, string> annotations = 2;
string networkNamespacePath = 3;
}
message CreateVMResponse {
string agentSocketPath = 1;
}
message StartVMRequest {
string id = 1;
}
message StartVMResponse {
}
message StopVMRequest {
string id = 1;
}
message StopVMResponse {
}