mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-07-17 17:02:42 +00:00
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:
parent
55c8c7226d
commit
150e8aba6d
11
src/runtime/hack/update-generated-hypervisor-proto.sh
Executable file
11
src/runtime/hack/update-generated-hypervisor-proto.sh
Executable 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
|
1848
src/runtime/protocols/hypervisor/hypervisor.pb.go
Normal file
1848
src/runtime/protocols/hypervisor/hypervisor.pb.go
Normal file
File diff suppressed because it is too large
Load Diff
43
src/runtime/protocols/hypervisor/hypervisor.proto
Normal file
43
src/runtime/protocols/hypervisor/hypervisor.proto
Normal 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 {
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user