Add concurrency and id flag for daemon
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
9415a4210c
commit
d9e8fe62cb
5 changed files with 40 additions and 10 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue