Change /containers to /state with machine info
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
3ea5dd79e0
commit
c1eb9ac90b
5 changed files with 56 additions and 10 deletions
|
@ -2,6 +2,7 @@ package v1
|
|||
|
||||
type State struct {
|
||||
Containers []Container `json:"containers"`
|
||||
Machine Machine `json:"machine"`
|
||||
}
|
||||
|
||||
type Status string
|
||||
|
@ -11,6 +12,11 @@ const (
|
|||
Running Status = "running"
|
||||
)
|
||||
|
||||
type Machine struct {
|
||||
Cpus int `json:"cpus"`
|
||||
Memory int64 `json:"memory"`
|
||||
}
|
||||
|
||||
type ContainerState struct {
|
||||
Status Status `json:"status,omitempty"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue