use libcgroups::common::CgroupConfig;
use oci_spec::runtime::Spec;
use std::os::unix::prelude::RawFd;
use std::path::PathBuf;
use std::rc::Rc;
use crate::container::Container;
use crate::notify_socket::NotifyListener;
use crate::syscall::syscall::SyscallType;
use crate::user_ns::UserNamespaceConfig;
use crate::workload::Executor;
#[derive(Debug, Copy, Clone)]
pub enum ContainerType {
InitContainer,
TenantContainer { exec_notify_fd: RawFd },
}
#[derive(Clone)]
pub struct ContainerArgs {
pub container_type: ContainerType,
pub syscall: SyscallType,
pub spec: Rc<Spec>,
pub rootfs: PathBuf,
pub console_socket: Option<RawFd>,
pub notify_listener: NotifyListener,
pub preserve_fds: i32,
pub container: Option<Container>,
pub user_ns_config: Option<UserNamespaceConfig>,
pub cgroup_config: CgroupConfig,
pub detached: bool,
pub executor: Box<dyn Executor>,
}