Add godoc comments

This commit is contained in:
Brian DeHamer 2015-07-31 22:23:17 +00:00
parent 058d6e5507
commit d6321bf8dc
6 changed files with 42 additions and 1 deletions

View file

@ -8,6 +8,10 @@ import (
func watchtowerContainersFilter(c container.Container) bool { return c.IsWatchtower() }
// CheckPrereqs will ensure that there are not multiple instances of the
// watchtower running simultaneously. If multiple watchtower containers are
// detected, this function will stop and remove all but the most recently
// started container.
func CheckPrereqs(client container.Client, cleanup bool) error {
containers, err := client.ListContainers(watchtowerContainersFilter)
if err != nil {