Skip to content
This repository has been archived by the owner on Jul 12, 2022. It is now read-only.

implement a command about show container process. #41

Open
guni1192 opened this issue Apr 21, 2019 · 0 comments
Open

implement a command about show container process. #41

guni1192 opened this issue Apr 21, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@guni1192
Copy link
Owner

Now, $ cromwell ps is implemented by super::pids::{Pidfile, show}.
But the state of pids::Pidfile overlaps with process::Process.
I proposal follow.

pub enum State {
  Created
  Running
  Pausing
  Paused
  Stopped
}

pub enum Status {
  state: State
  pid: Pid
}

pub struct Container {
// ...
  status: Status
}

impl Container {
// ...

  // get all container process 
  fn processes() -> [Pid] {}

  // return process state
  fn status(&self) -> Status {}
}
@guni1192 guni1192 added the enhancement New feature or request label Apr 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant