krata: move api proto to /proto and version api

This commit is contained in:
Alex Zenla
2024-03-24 05:52:25 +00:00
parent cb6839b0f6
commit 655b8029cb
26 changed files with 41 additions and 36 deletions

View File

@ -5,7 +5,7 @@ use std::{
};
use anyhow::Result;
use krata::common::{GuestExitInfo, GuestState, GuestStatus};
use krata::v1::common::{GuestExitInfo, GuestState, GuestStatus};
use log::error;
use tokio::{
select,
@ -22,7 +22,7 @@ use kratart::Runtime;
use crate::db::GuestStore;
pub type DaemonEvent = krata::control::watch_events_reply::Event;
pub type DaemonEvent = krata::v1::control::watch_events_reply::Event;
const EVENT_CHANNEL_QUEUE_LEN: usize = 1000;
const EXIT_CODE_CHANNEL_QUEUE_LEN: usize = 1000;