Add concurrency and id flag for daemon
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -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,
|
||||
},
|
||||
|
@@ -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 {
|
||||
|
Reference in New Issue
Block a user