implement state api command

This commit is contained in:
Michael Crosby
2015-11-10 11:38:26 -08:00
parent cb7ab16427
commit a2ddcc2232
5 changed files with 66 additions and 12 deletions

View File

@@ -87,6 +87,11 @@ func (s *Supervisor) Start(events chan Event) error {
logrus.WithField("error", err).Error("containerd: deleting container")
}
}
case *GetContainersEvent:
for _, c := range s.containers {
e.Containers = append(e.Containers, c)
}
e.Err <- nil
}
}
}()