mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-09-16 06:18:58 +00:00
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:
@@ -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.
|
||||
|
1968
src/libs/protocols/protos/cri-api/api.proto
Normal file
1968
src/libs/protocols/protos/cri-api/api.proto
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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::{
|
||||
|
@@ -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" \
|
||||
|
Reference in New Issue
Block a user