protocols: Add the cri api protos

Add the cri api protos to support the sandbox api.

Signed-off-by: Fupan Li <fupan.lfp@antgroup.com>
This commit is contained in:
Fupan Li
2024-09-12 11:03:02 +08:00
committed by Pavel Mores
parent c9f5966f56
commit 33555037c0
4 changed files with 1972 additions and 0 deletions

View File

@@ -229,6 +229,8 @@ fn real_main() -> Result<(), std::io::Error> {
false,
)?;
codegen("src", &["protos/cri-api/api.proto"], false)?;
// There is a message named 'Box' in oci.proto
// so there is a struct named 'Box', we should replace Box<Self> to ::std::boxed::Box<Self>
// to avoid the conflict.

File diff suppressed because it is too large Load Diff

View File

@@ -25,6 +25,7 @@ pub mod remote;
pub mod remote_ttrpc;
#[cfg(feature = "async")]
pub mod remote_ttrpc_async;
pub mod api;
#[cfg(feature = "with-serde")]
pub use serde_config::{

View File

@@ -472,6 +472,7 @@ static_check_license_headers()
--exclude="tools/packaging/qemu/default-configs/*" \
--exclude="src/libs/protocols/protos/gogo/*.proto" \
--exclude="src/libs/protocols/protos/google/*.proto" \
--exclude="src/libs/protocols/protos/cri-api/api.proto" \
--exclude="src/mem-agent/example/protocols/protos/google/protobuf/*.proto" \
--exclude="src/libs/*/test/texture/*" \
--exclude="*.dic" \