krata: api cleanup and improvements

This commit is contained in:
Alex Zenla
2024-03-24 05:25:48 +00:00
parent 7543fccfaf
commit cb6839b0f6
7 changed files with 99 additions and 69 deletions

View File

@ -1,3 +1,4 @@
use std::collections::HashMap;
use std::net::IpAddr;
use std::{fs, net::Ipv4Addr, str::FromStr};
@ -27,7 +28,7 @@ pub struct GuestLaunchRequest<'a> {
pub image: &'a str,
pub vcpus: u32,
pub mem: u64,
pub env: Option<Vec<String>>,
pub env: HashMap<String, String>,
pub run: Option<Vec<String>>,
pub debug: bool,
}