fix: disallow commands to be sent so an oxker container, closes #19

This commit is contained in:
Jack Wills
2022-12-05 03:52:41 +00:00
parent 43fe902bae
commit 160b8021b1
5 changed files with 31 additions and 8 deletions
+6 -3
View File
@@ -370,17 +370,19 @@ pub struct ContainerItem {
pub state: State,
pub status: String,
pub tx: ByteStats,
pub is_oxker: bool
}
impl ContainerItem {
/// Create a new container item
pub fn new(
created: u64,
id: ContainerId,
status: String,
image: String,
state: State,
is_oxker: bool,
name: String,
created: u64,
state: State,
status: String,
) -> Self {
let mut docker_controls = StatefulList::new(DockerControls::gen_vec(state));
docker_controls.start();
@@ -392,6 +394,7 @@ impl ContainerItem {
docker_controls,
id,
image,
is_oxker,
last_updated: 0,
logs,
mem_limit: ByteStats::default(),