Add concurrency and id flag for daemon

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby 2015-12-07 15:19:56 -08:00
parent 9415a4210c
commit d9e8fe62cb
5 changed files with 40 additions and 10 deletions

View file

@ -198,6 +198,7 @@ func (s *server) writeState(w http.ResponseWriter, e *containerd.Event) error {
state := State{
Containers: []Container{},
Machine: Machine{
ID: m.ID,
Cpus: m.Cpus,
Memory: m.Memory,
},

View file

@ -15,8 +15,9 @@ const (
)
type Machine struct {
Cpus int `json:"cpus"`
Memory int64 `json:"memory"`
ID string `json:"id"`
Cpus int `json:"cpus"`
Memory int64 `json:"memory"`
}
type ContainerState struct {