Add support for whitelist of monitored containers

This commit is contained in:
Brian DeHamer 2015-08-04 16:32:01 +00:00
parent d6321bf8dc
commit b0910ee20b
5 changed files with 60 additions and 9 deletions

View file

@ -116,14 +116,16 @@ func before(c *cli.Context) error {
return nil
}
func start(*cli.Context) {
func start(c *cli.Context) {
names := c.Args()
if err := actions.CheckPrereqs(client, cleanup); err != nil {
log.Fatal(err)
}
for {
wg.Add(1)
if err := actions.Update(client, cleanup); err != nil {
if err := actions.Update(client, names, cleanup); err != nil {
fmt.Println(err)
}
wg.Done()