Improve process addition and removal
Signed-off-by: Michael Crosby <crosbymichael@gmail.com> implement pause and resume Add godeps Signed-off-by: Michael Crosby <crosbymichael@gmail.com> Add readme Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
17d9c10e2d
commit
f9ad7970d2
397 changed files with 48104 additions and 22 deletions
|
@ -4,10 +4,22 @@ type State struct {
|
|||
Containers []Container `json:"containers"`
|
||||
}
|
||||
|
||||
type Status string
|
||||
|
||||
const (
|
||||
Paused Status = "paused"
|
||||
Running Status = "running"
|
||||
)
|
||||
|
||||
type ContainerState struct {
|
||||
Status Status `json:"status,omitempty"`
|
||||
}
|
||||
|
||||
type Container struct {
|
||||
ID string `json:"id,omitempty"`
|
||||
BundlePath string `json:"bundlePath,omitempty"`
|
||||
Processes []Process `json:"processes,omitempty"`
|
||||
ID string `json:"id,omitempty"`
|
||||
BundlePath string `json:"bundlePath,omitempty"`
|
||||
Processes []Process `json:"processes,omitempty"`
|
||||
State *ContainerState `json:"state,omitempty"`
|
||||
}
|
||||
|
||||
type User struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue