diff --git a/actions/update.go b/actions/update.go index daeba96..6a775e6 100644 --- a/actions/update.go +++ b/actions/update.go @@ -4,12 +4,12 @@ import ( "math/rand" "time" - log "github.com/sirupsen/logrus" "github.com/kopfkrieg/watchtower/container" + log "github.com/sirupsen/logrus" ) var ( - letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") + letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") ) // Update looks at the running Docker containers to see if any of the images diff --git a/container/filters_test.go b/container/filters_test.go index 5db5eeb..7471a4e 100644 --- a/container/filters_test.go +++ b/container/filters_test.go @@ -3,8 +3,8 @@ package container import ( "testing" - "github.com/stretchr/testify/assert" "github.com/kopfkrieg/watchtower/container/mocks" + "github.com/stretchr/testify/assert" ) func TestWatchtowerContainersFilter(t *testing.T) { diff --git a/main.go b/main.go index 0c372c8..a3b2a7d 100644 --- a/main.go +++ b/main.go @@ -8,12 +8,12 @@ import ( "strconv" - "github.com/robfig/cron" - log "github.com/sirupsen/logrus" - "github.com/urfave/cli" "github.com/kopfkrieg/watchtower/actions" "github.com/kopfkrieg/watchtower/container" "github.com/kopfkrieg/watchtower/notifications" + "github.com/robfig/cron" + log "github.com/sirupsen/logrus" + "github.com/urfave/cli" ) // DockerAPIMinVersion is the version of the docker API, which is minimally required by @@ -31,7 +31,7 @@ var ( noRestart bool enableLabel bool notifier *notifications.Notifier - timeout time.Duration + timeout time.Duration ) func init() { @@ -84,10 +84,10 @@ func main() { EnvVar: "DOCKER_TLS_VERIFY", }, cli.DurationFlag{ - Name: "stop-timeout", - Usage: "timeout before container is forcefully stopped", - Value: time.Second * 10, - EnvVar: "WATCHTOWER_TIMEOUT", + Name: "stop-timeout", + Usage: "timeout before container is forcefully stopped", + Value: time.Second * 10, + EnvVar: "WATCHTOWER_TIMEOUT", }, cli.BoolFlag{ Name: "label-enable", diff --git a/notifications/email.go b/notifications/email.go index 5f84ca5..2dbb86a 100644 --- a/notifications/email.go +++ b/notifications/email.go @@ -60,7 +60,7 @@ func (e *emailTypeNotifier) buildMessage(entries []*log.Entry) []byte { } t := time.Now() - + header := make(map[string]string) header["From"] = e.From header["To"] = e.To