mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-06 14:41:32 +00:00
krata: move api proto to /proto and version api
This commit is contained in:
@ -2,7 +2,7 @@ use std::{io, pin::Pin, str::FromStr};
|
||||
|
||||
use async_stream::try_stream;
|
||||
use futures::Stream;
|
||||
use krata::{
|
||||
use krata::v1::{
|
||||
common::{Guest, GuestState, GuestStatus},
|
||||
control::{
|
||||
control_service_server::ControlService, ConsoleDataReply, ConsoleDataRequest,
|
||||
|
@ -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;
|
||||
|
@ -4,7 +4,7 @@ use anyhow::Result;
|
||||
use control::RuntimeControlService;
|
||||
use db::GuestStore;
|
||||
use event::{DaemonEventContext, DaemonEventGenerator};
|
||||
use krata::{control::control_service_server::ControlServiceServer, dial::ControlDialAddress};
|
||||
use krata::{dial::ControlDialAddress, v1::control::control_service_server::ControlServiceServer};
|
||||
use kratart::Runtime;
|
||||
use log::info;
|
||||
use reconcile::guest::GuestReconciler;
|
||||
|
@ -1,7 +1,7 @@
|
||||
use std::{collections::HashMap, time::Duration};
|
||||
|
||||
use anyhow::{anyhow, Result};
|
||||
use krata::{
|
||||
use krata::v1::{
|
||||
common::{
|
||||
guest_image_spec::Image, Guest, GuestErrorInfo, GuestExitInfo, GuestNetworkState,
|
||||
GuestState, GuestStatus,
|
||||
|
Reference in New Issue
Block a user