From 7bff860650aa886986a6313703f880c5512669ec Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 7 Jun 2020 22:04:31 +0200 Subject: [PATCH] Bump v4 --- .github/dependabot.yml | 10 +++++++++ .github/labels.yml | 10 ++++++++- cmd/main.go | 8 +++---- go.mod | 2 +- internal/app/diun.go | 18 +++++++-------- internal/app/job.go | 6 ++--- internal/config/config.go | 6 ++--- internal/config/config_test.go | 6 ++--- internal/db/client.go | 2 +- internal/db/manifest.go | 2 +- internal/logging/logger.go | 2 +- internal/model/job.go | 2 +- internal/model/notif.go | 2 +- internal/model/notif_gotify.go | 2 +- internal/model/notif_mail.go | 2 +- internal/model/notif_rocketchat.go | 2 +- internal/model/notif_webhook.go | 2 +- internal/model/provider_docker.go | 2 +- internal/model/provider_swarm.go | 2 +- internal/model/regopts.go | 2 +- internal/model/watch.go | 2 +- internal/notif/amqp/client.go | 6 ++--- internal/notif/client.go | 22 +++++++++---------- internal/notif/gotify/client.go | 4 ++-- internal/notif/mail/client.go | 6 ++--- internal/notif/notifier/notifier.go | 2 +- internal/notif/rocketchat/client.go | 4 ++-- internal/notif/script/client.go | 4 ++-- internal/notif/slack/slack.go | 4 ++-- internal/notif/teams/client.go | 4 ++-- internal/notif/telegram/telegram.go | 4 ++-- internal/notif/webhook/client.go | 4 ++-- internal/provider/common.go | 2 +- internal/provider/docker/container.go | 6 ++--- internal/provider/docker/docker.go | 4 ++-- internal/provider/file/file.go | 4 ++-- internal/provider/file/file_test.go | 4 ++-- internal/provider/file/image.go | 2 +- internal/provider/provider.go | 2 +- internal/provider/swarm/service.go | 6 ++--- internal/provider/swarm/swarm.go | 4 ++-- pkg/registry/manifest_test.go | 2 +- pkg/registry/registry_test.go | 2 +- pkg/registry/tags.go | 2 +- third_party/traefik/config/env/env.go | 2 +- third_party/traefik/config/env/env_test.go | 4 ++-- third_party/traefik/config/env/filter.go | 2 +- third_party/traefik/config/file/file.go | 2 +- third_party/traefik/config/file/file_node.go | 2 +- .../traefik/config/file/file_node_test.go | 2 +- third_party/traefik/config/file/raw_node.go | 2 +- .../traefik/config/file/raw_node_test.go | 2 +- .../traefik/config/generator/generator.go | 2 +- .../config/generator/generator_test.go | 2 +- .../traefik/config/parser/element_fill.go | 2 +- .../config/parser/element_fill_test.go | 2 +- .../traefik/config/parser/flat_encode.go | 2 +- .../traefik/config/parser/flat_encode_test.go | 2 +- 58 files changed, 122 insertions(+), 104 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index d3322503..d8622285 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,6 +4,16 @@ updates: directory: "/" schedule: interval: "daily" + time: "08:00" + timezone: "Europe/Paris" + labels: + - ":game_die: dependencies" + - ":robot: bot" + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" + time: "08:00" timezone: "Europe/Paris" labels: - ":game_die: dependencies" diff --git a/.github/labels.yml b/.github/labels.yml index 9e61bf4f..12b40789 100644 --- a/.github/labels.yml +++ b/.github/labels.yml @@ -1,4 +1,4 @@ -## https://github.com/crazy-max/ghaction-github-labeler +## more info https://github.com/crazy-max/ghaction-github-labeler - # bot name: ":robot: bot" color: "69cde9" @@ -59,10 +59,18 @@ name: ":thinking: needs more info" color: "795548" description: "" +- # pinned + name: ":pushpin: pinned" + color: "28008e" + description: "" - # question name: ":question: question" color: "3f51b5" description: "" +- # stale + name: ":skull: stale" + color: "237da0" + description: "" - # upstream name: ":eyes: upstream" color: "fbca04" diff --git a/cmd/main.go b/cmd/main.go index d389a670..9aeb10fa 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -10,10 +10,10 @@ import ( "time" "github.com/alecthomas/kong" - "github.com/crazy-max/diun/v3/internal/app" - "github.com/crazy-max/diun/v3/internal/config" - "github.com/crazy-max/diun/v3/internal/logging" - "github.com/crazy-max/diun/v3/internal/model" + "github.com/crazy-max/diun/v4/internal/app" + "github.com/crazy-max/diun/v4/internal/config" + "github.com/crazy-max/diun/v4/internal/logging" + "github.com/crazy-max/diun/v4/internal/model" "github.com/rs/zerolog/log" ) diff --git a/go.mod b/go.mod index d4b735bf..3504e0b0 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/crazy-max/diun/v3 +module github.com/crazy-max/diun/v4 go 1.13 diff --git a/internal/app/diun.go b/internal/app/diun.go index fdfa6bc7..68d010d3 100644 --- a/internal/app/diun.go +++ b/internal/app/diun.go @@ -5,15 +5,15 @@ import ( "sync/atomic" "time" - "github.com/crazy-max/diun/v3/internal/config" - "github.com/crazy-max/diun/v3/internal/db" - "github.com/crazy-max/diun/v3/internal/logging" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif" - dockerPrd "github.com/crazy-max/diun/v3/internal/provider/docker" - filePrd "github.com/crazy-max/diun/v3/internal/provider/file" - swarmPrd "github.com/crazy-max/diun/v3/internal/provider/swarm" - "github.com/crazy-max/diun/v3/pkg/registry" + "github.com/crazy-max/diun/v4/internal/config" + "github.com/crazy-max/diun/v4/internal/db" + "github.com/crazy-max/diun/v4/internal/logging" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif" + dockerPrd "github.com/crazy-max/diun/v4/internal/provider/docker" + filePrd "github.com/crazy-max/diun/v4/internal/provider/file" + swarmPrd "github.com/crazy-max/diun/v4/internal/provider/swarm" + "github.com/crazy-max/diun/v4/pkg/registry" "github.com/hako/durafmt" "github.com/panjf2000/ants/v2" "github.com/robfig/cron/v3" diff --git a/internal/app/job.go b/internal/app/job.go index 190c08be..46f2396f 100644 --- a/internal/app/job.go +++ b/internal/app/job.go @@ -4,9 +4,9 @@ import ( "fmt" "regexp" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/pkg/registry" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/pkg/registry" + "github.com/crazy-max/diun/v4/pkg/utl" "github.com/imdario/mergo" "github.com/rs/zerolog/log" ) diff --git a/internal/config/config.go b/internal/config/config.go index 200b07f7..5d3e02b9 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -5,9 +5,9 @@ import ( "fmt" "os" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/third_party/traefik/config/env" - "github.com/crazy-max/diun/v3/third_party/traefik/config/file" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/third_party/traefik/config/env" + "github.com/crazy-max/diun/v4/third_party/traefik/config/file" "github.com/go-playground/validator/v10" "github.com/pkg/errors" ) diff --git a/internal/config/config_test.go b/internal/config/config_test.go index 2964a97a..807b92bf 100644 --- a/internal/config/config_test.go +++ b/internal/config/config_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" - "github.com/crazy-max/diun/v3/internal/config" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/internal/config" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/pkg/utl" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/internal/db/client.go b/internal/db/client.go index fcc1d504..5d5ea5b9 100644 --- a/internal/db/client.go +++ b/internal/db/client.go @@ -5,7 +5,7 @@ import ( "reflect" "time" - "github.com/crazy-max/diun/v3/internal/model" + "github.com/crazy-max/diun/v4/internal/model" "github.com/rs/zerolog/log" bolt "go.etcd.io/bbolt" ) diff --git a/internal/db/manifest.go b/internal/db/manifest.go index 9a6227ea..e11fa951 100644 --- a/internal/db/manifest.go +++ b/internal/db/manifest.go @@ -4,7 +4,7 @@ import ( "bytes" "encoding/json" - "github.com/crazy-max/diun/v3/pkg/registry" + "github.com/crazy-max/diun/v4/pkg/registry" bolt "go.etcd.io/bbolt" ) diff --git a/internal/logging/logger.go b/internal/logging/logger.go index 98d6f663..ec93e65e 100644 --- a/internal/logging/logger.go +++ b/internal/logging/logger.go @@ -6,7 +6,7 @@ import ( "os" "time" - "github.com/crazy-max/diun/v3/internal/model" + "github.com/crazy-max/diun/v4/internal/model" "github.com/rs/zerolog" "github.com/rs/zerolog/log" "github.com/sirupsen/logrus" diff --git a/internal/model/job.go b/internal/model/job.go index 23c152dd..32610d66 100644 --- a/internal/model/job.go +++ b/internal/model/job.go @@ -1,7 +1,7 @@ package model import ( - "github.com/crazy-max/diun/v3/pkg/registry" + "github.com/crazy-max/diun/v4/pkg/registry" ) // Job holds job configuration diff --git a/internal/model/notif.go b/internal/model/notif.go index 3e7fa781..becafce9 100644 --- a/internal/model/notif.go +++ b/internal/model/notif.go @@ -1,7 +1,7 @@ package model import ( - "github.com/crazy-max/diun/v3/pkg/registry" + "github.com/crazy-max/diun/v4/pkg/registry" ) // NotifEntry represents a notification entry diff --git a/internal/model/notif_gotify.go b/internal/model/notif_gotify.go index 87770312..4ea51745 100644 --- a/internal/model/notif_gotify.go +++ b/internal/model/notif_gotify.go @@ -3,7 +3,7 @@ package model import ( "time" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" ) // NotifGotify holds gotify notification configuration details diff --git a/internal/model/notif_mail.go b/internal/model/notif_mail.go index 6563bfa8..648be8f3 100644 --- a/internal/model/notif_mail.go +++ b/internal/model/notif_mail.go @@ -3,7 +3,7 @@ package model import ( "net/mail" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" "github.com/imdario/mergo" "github.com/pkg/errors" ) diff --git a/internal/model/notif_rocketchat.go b/internal/model/notif_rocketchat.go index ea9d5ae2..8bbfbede 100644 --- a/internal/model/notif_rocketchat.go +++ b/internal/model/notif_rocketchat.go @@ -3,7 +3,7 @@ package model import ( "time" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" ) // NotifRocketChat holds Rocket.Chat notification configuration details diff --git a/internal/model/notif_webhook.go b/internal/model/notif_webhook.go index 08a39ae7..57fca452 100644 --- a/internal/model/notif_webhook.go +++ b/internal/model/notif_webhook.go @@ -3,7 +3,7 @@ package model import ( "time" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" ) // NotifWebhook holds webhook notification configuration details diff --git a/internal/model/provider_docker.go b/internal/model/provider_docker.go index 640de832..00f7d8ca 100644 --- a/internal/model/provider_docker.go +++ b/internal/model/provider_docker.go @@ -1,7 +1,7 @@ package model import ( - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" ) // PrdDocker holds docker provider configuration diff --git a/internal/model/provider_swarm.go b/internal/model/provider_swarm.go index f3c04a48..d16e6ef0 100644 --- a/internal/model/provider_swarm.go +++ b/internal/model/provider_swarm.go @@ -1,7 +1,7 @@ package model import ( - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" ) // PrdSwarm holds swarm provider configuration diff --git a/internal/model/regopts.go b/internal/model/regopts.go index 1faf2c73..f83469b4 100644 --- a/internal/model/regopts.go +++ b/internal/model/regopts.go @@ -3,7 +3,7 @@ package model import ( "time" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" ) // RegOpts holds registry options configuration diff --git a/internal/model/watch.go b/internal/model/watch.go index 8e3c7060..9194e687 100644 --- a/internal/model/watch.go +++ b/internal/model/watch.go @@ -1,7 +1,7 @@ package model import ( - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" ) // Watch holds data necessary for watch configuration diff --git a/internal/notif/amqp/client.go b/internal/notif/amqp/client.go index 7c633c8b..80fa445e 100644 --- a/internal/notif/amqp/client.go +++ b/internal/notif/amqp/client.go @@ -5,9 +5,9 @@ import ( "fmt" "time" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" + "github.com/crazy-max/diun/v4/pkg/utl" "github.com/opencontainers/go-digest" "github.com/streadway/amqp" ) diff --git a/internal/notif/client.go b/internal/notif/client.go index 1420bbbb..337ca669 100644 --- a/internal/notif/client.go +++ b/internal/notif/client.go @@ -3,17 +3,17 @@ package notif import ( "strings" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/amqp" - "github.com/crazy-max/diun/v3/internal/notif/gotify" - "github.com/crazy-max/diun/v3/internal/notif/mail" - "github.com/crazy-max/diun/v3/internal/notif/notifier" - "github.com/crazy-max/diun/v3/internal/notif/rocketchat" - "github.com/crazy-max/diun/v3/internal/notif/script" - "github.com/crazy-max/diun/v3/internal/notif/slack" - "github.com/crazy-max/diun/v3/internal/notif/teams" - "github.com/crazy-max/diun/v3/internal/notif/telegram" - "github.com/crazy-max/diun/v3/internal/notif/webhook" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/amqp" + "github.com/crazy-max/diun/v4/internal/notif/gotify" + "github.com/crazy-max/diun/v4/internal/notif/mail" + "github.com/crazy-max/diun/v4/internal/notif/notifier" + "github.com/crazy-max/diun/v4/internal/notif/rocketchat" + "github.com/crazy-max/diun/v4/internal/notif/script" + "github.com/crazy-max/diun/v4/internal/notif/slack" + "github.com/crazy-max/diun/v4/internal/notif/teams" + "github.com/crazy-max/diun/v4/internal/notif/telegram" + "github.com/crazy-max/diun/v4/internal/notif/webhook" "github.com/rs/zerolog/log" ) diff --git a/internal/notif/gotify/client.go b/internal/notif/gotify/client.go index 5b38a438..325ab30f 100644 --- a/internal/notif/gotify/client.go +++ b/internal/notif/gotify/client.go @@ -11,8 +11,8 @@ import ( "strings" "text/template" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" ) // Client represents an active gotify notification object diff --git a/internal/notif/mail/client.go b/internal/notif/mail/client.go index 198de2d9..dc438c1d 100644 --- a/internal/notif/mail/client.go +++ b/internal/notif/mail/client.go @@ -7,9 +7,9 @@ import ( "text/template" "time" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" + "github.com/crazy-max/diun/v4/pkg/utl" "github.com/go-gomail/gomail" "github.com/matcornic/hermes/v2" "github.com/rs/zerolog/log" diff --git a/internal/notif/notifier/notifier.go b/internal/notif/notifier/notifier.go index 10995d30..3761843d 100644 --- a/internal/notif/notifier/notifier.go +++ b/internal/notif/notifier/notifier.go @@ -1,7 +1,7 @@ package notifier import ( - "github.com/crazy-max/diun/v3/internal/model" + "github.com/crazy-max/diun/v4/internal/model" ) // Handler is a notifier interface diff --git a/internal/notif/rocketchat/client.go b/internal/notif/rocketchat/client.go index 63e9b49c..ed21ddd2 100644 --- a/internal/notif/rocketchat/client.go +++ b/internal/notif/rocketchat/client.go @@ -11,8 +11,8 @@ import ( "text/template" "time" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" ) // Client represents an active rocketchat notification object diff --git a/internal/notif/script/client.go b/internal/notif/script/client.go index 6c86071e..ac61d904 100644 --- a/internal/notif/script/client.go +++ b/internal/notif/script/client.go @@ -7,8 +7,8 @@ import ( "os/exec" "strings" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" "github.com/pkg/errors" "github.com/rs/zerolog/log" ) diff --git a/internal/notif/slack/slack.go b/internal/notif/slack/slack.go index cbc239ba..36f5e2cf 100644 --- a/internal/notif/slack/slack.go +++ b/internal/notif/slack/slack.go @@ -8,8 +8,8 @@ import ( "text/template" "time" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" "github.com/nlopes/slack" ) diff --git a/internal/notif/teams/client.go b/internal/notif/teams/client.go index d3e24208..a1028e63 100644 --- a/internal/notif/teams/client.go +++ b/internal/notif/teams/client.go @@ -7,8 +7,8 @@ import ( "text/template" "time" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" ) // Client represents an active webhook notification object diff --git a/internal/notif/telegram/telegram.go b/internal/notif/telegram/telegram.go index 80ed3a08..467e5960 100644 --- a/internal/notif/telegram/telegram.go +++ b/internal/notif/telegram/telegram.go @@ -4,8 +4,8 @@ import ( "bytes" "text/template" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" ) diff --git a/internal/notif/webhook/client.go b/internal/notif/webhook/client.go index b46c8577..157d07a0 100644 --- a/internal/notif/webhook/client.go +++ b/internal/notif/webhook/client.go @@ -6,8 +6,8 @@ import ( "net/http" "time" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/notif/notifier" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/notif/notifier" "github.com/opencontainers/go-digest" ) diff --git a/internal/provider/common.go b/internal/provider/common.go index e1c39374..572b3f5c 100644 --- a/internal/provider/common.go +++ b/internal/provider/common.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - "github.com/crazy-max/diun/v3/internal/model" + "github.com/crazy-max/diun/v4/internal/model" ) // ValidateContainerImage returns a standard image through Docker labels diff --git a/internal/provider/docker/container.go b/internal/provider/docker/container.go index 616773ea..f0e11797 100644 --- a/internal/provider/docker/container.go +++ b/internal/provider/docker/container.go @@ -3,9 +3,9 @@ package docker import ( "reflect" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/provider" - "github.com/crazy-max/diun/v3/pkg/docker" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/provider" + "github.com/crazy-max/diun/v4/pkg/docker" "github.com/docker/docker/api/types/filters" ) diff --git a/internal/provider/docker/docker.go b/internal/provider/docker/docker.go index 8448fa74..90df4c23 100644 --- a/internal/provider/docker/docker.go +++ b/internal/provider/docker/docker.go @@ -1,8 +1,8 @@ package docker import ( - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/provider" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/provider" "github.com/rs/zerolog" "github.com/rs/zerolog/log" ) diff --git a/internal/provider/file/file.go b/internal/provider/file/file.go index 0ce271b3..78a3f06b 100644 --- a/internal/provider/file/file.go +++ b/internal/provider/file/file.go @@ -1,8 +1,8 @@ package file import ( - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/provider" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/provider" "github.com/rs/zerolog" "github.com/rs/zerolog/log" ) diff --git a/internal/provider/file/file_test.go b/internal/provider/file/file_test.go index d93baf20..a462645d 100644 --- a/internal/provider/file/file_test.go +++ b/internal/provider/file/file_test.go @@ -3,8 +3,8 @@ package file_test import ( "testing" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/provider/file" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/provider/file" "github.com/stretchr/testify/assert" ) diff --git a/internal/provider/file/image.go b/internal/provider/file/image.go index a4e41ad4..5368b449 100644 --- a/internal/provider/file/image.go +++ b/internal/provider/file/image.go @@ -5,7 +5,7 @@ import ( "path/filepath" "strings" - "github.com/crazy-max/diun/v3/internal/model" + "github.com/crazy-max/diun/v4/internal/model" "gopkg.in/yaml.v2" ) diff --git a/internal/provider/provider.go b/internal/provider/provider.go index af9e62fa..224ca5c9 100644 --- a/internal/provider/provider.go +++ b/internal/provider/provider.go @@ -1,7 +1,7 @@ package provider import ( - "github.com/crazy-max/diun/v3/internal/model" + "github.com/crazy-max/diun/v4/internal/model" ) // Handler is a provider interface diff --git a/internal/provider/swarm/service.go b/internal/provider/swarm/service.go index 5265456c..09f3f35f 100644 --- a/internal/provider/swarm/service.go +++ b/internal/provider/swarm/service.go @@ -3,9 +3,9 @@ package swarm import ( "reflect" - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/provider" - "github.com/crazy-max/diun/v3/pkg/docker" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/provider" + "github.com/crazy-max/diun/v4/pkg/docker" "github.com/docker/docker/api/types/filters" ) diff --git a/internal/provider/swarm/swarm.go b/internal/provider/swarm/swarm.go index 4526e29d..80de2d08 100644 --- a/internal/provider/swarm/swarm.go +++ b/internal/provider/swarm/swarm.go @@ -1,8 +1,8 @@ package swarm import ( - "github.com/crazy-max/diun/v3/internal/model" - "github.com/crazy-max/diun/v3/internal/provider" + "github.com/crazy-max/diun/v4/internal/model" + "github.com/crazy-max/diun/v4/internal/provider" "github.com/rs/zerolog" "github.com/rs/zerolog/log" ) diff --git a/pkg/registry/manifest_test.go b/pkg/registry/manifest_test.go index 6cb0ebb2..e86e2852 100644 --- a/pkg/registry/manifest_test.go +++ b/pkg/registry/manifest_test.go @@ -5,7 +5,7 @@ import ( "fmt" "testing" - "github.com/crazy-max/diun/v3/pkg/registry" + "github.com/crazy-max/diun/v4/pkg/registry" "github.com/stretchr/testify/assert" ) diff --git a/pkg/registry/registry_test.go b/pkg/registry/registry_test.go index ba664bd4..d75c21b9 100644 --- a/pkg/registry/registry_test.go +++ b/pkg/registry/registry_test.go @@ -4,7 +4,7 @@ import ( "os" "testing" - "github.com/crazy-max/diun/v3/pkg/registry" + "github.com/crazy-max/diun/v4/pkg/registry" "github.com/stretchr/testify/assert" ) diff --git a/pkg/registry/tags.go b/pkg/registry/tags.go index 0f9ef5dc..a6eaef54 100644 --- a/pkg/registry/tags.go +++ b/pkg/registry/tags.go @@ -2,7 +2,7 @@ package registry import ( "github.com/containers/image/v5/docker" - "github.com/crazy-max/diun/v3/pkg/utl" + "github.com/crazy-max/diun/v4/pkg/utl" ) // Tags holds information about image tags. diff --git a/third_party/traefik/config/env/env.go b/third_party/traefik/config/env/env.go index 776a9cd0..96cffee4 100644 --- a/third_party/traefik/config/env/env.go +++ b/third_party/traefik/config/env/env.go @@ -6,7 +6,7 @@ import ( "regexp" "strings" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" ) // DefaultNamePrefix is the default prefix for environment variable names. diff --git a/third_party/traefik/config/env/env_test.go b/third_party/traefik/config/env/env_test.go index bb9c7221..d6d96045 100644 --- a/third_party/traefik/config/env/env_test.go +++ b/third_party/traefik/config/env/env_test.go @@ -3,8 +3,8 @@ package env import ( "testing" - "github.com/crazy-max/diun/v3/third_party/traefik/config/generator" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/generator" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/third_party/traefik/config/env/filter.go b/third_party/traefik/config/env/filter.go index 83d651ce..e7d846be 100644 --- a/third_party/traefik/config/env/filter.go +++ b/third_party/traefik/config/env/filter.go @@ -4,7 +4,7 @@ import ( "reflect" "strings" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" ) // FindPrefixedEnvVars finds prefixed environment variables. diff --git a/third_party/traefik/config/file/file.go b/third_party/traefik/config/file/file.go index 58db0fbf..af5dba66 100644 --- a/third_party/traefik/config/file/file.go +++ b/third_party/traefik/config/file/file.go @@ -2,7 +2,7 @@ package file import ( - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" ) // Decode decodes the given configuration file into the given element. diff --git a/third_party/traefik/config/file/file_node.go b/third_party/traefik/config/file/file_node.go index d841d546..42da7734 100644 --- a/third_party/traefik/config/file/file_node.go +++ b/third_party/traefik/config/file/file_node.go @@ -7,7 +7,7 @@ import ( "reflect" "strings" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" "gopkg.in/yaml.v2" ) diff --git a/third_party/traefik/config/file/file_node_test.go b/third_party/traefik/config/file/file_node_test.go index 22e6b8e1..909de26a 100644 --- a/third_party/traefik/config/file/file_node_test.go +++ b/third_party/traefik/config/file/file_node_test.go @@ -3,7 +3,7 @@ package file import ( "testing" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/third_party/traefik/config/file/raw_node.go b/third_party/traefik/config/file/raw_node.go index 2609cb12..b19c18aa 100644 --- a/third_party/traefik/config/file/raw_node.go +++ b/third_party/traefik/config/file/raw_node.go @@ -7,7 +7,7 @@ import ( "strconv" "strings" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" ) func decodeRawToNode(data map[string]interface{}, rootName string, filters ...string) (*parser.Node, error) { diff --git a/third_party/traefik/config/file/raw_node_test.go b/third_party/traefik/config/file/raw_node_test.go index 3656d526..1ded99be 100644 --- a/third_party/traefik/config/file/raw_node_test.go +++ b/third_party/traefik/config/file/raw_node_test.go @@ -3,7 +3,7 @@ package file import ( "testing" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/third_party/traefik/config/generator/generator.go b/third_party/traefik/config/generator/generator.go index ac483029..900d64a6 100644 --- a/third_party/traefik/config/generator/generator.go +++ b/third_party/traefik/config/generator/generator.go @@ -4,7 +4,7 @@ package generator import ( "reflect" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" ) type initializer interface { diff --git a/third_party/traefik/config/generator/generator_test.go b/third_party/traefik/config/generator/generator_test.go index a09d76ef..16c4f5df 100644 --- a/third_party/traefik/config/generator/generator_test.go +++ b/third_party/traefik/config/generator/generator_test.go @@ -3,7 +3,7 @@ package generator import ( "testing" - "github.com/crazy-max/diun/v3/third_party/traefik/config/parser" + "github.com/crazy-max/diun/v4/third_party/traefik/config/parser" "github.com/stretchr/testify/assert" ) diff --git a/third_party/traefik/config/parser/element_fill.go b/third_party/traefik/config/parser/element_fill.go index 601664b3..38f2e819 100644 --- a/third_party/traefik/config/parser/element_fill.go +++ b/third_party/traefik/config/parser/element_fill.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "github.com/crazy-max/diun/v3/third_party/traefik/types" + "github.com/crazy-max/diun/v4/third_party/traefik/types" ) type initializer interface { diff --git a/third_party/traefik/config/parser/element_fill_test.go b/third_party/traefik/config/parser/element_fill_test.go index d98f1204..5b536426 100644 --- a/third_party/traefik/config/parser/element_fill_test.go +++ b/third_party/traefik/config/parser/element_fill_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/crazy-max/diun/v3/third_party/traefik/types" + "github.com/crazy-max/diun/v4/third_party/traefik/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" ) diff --git a/third_party/traefik/config/parser/flat_encode.go b/third_party/traefik/config/parser/flat_encode.go index d13733f8..bc71ccc7 100644 --- a/third_party/traefik/config/parser/flat_encode.go +++ b/third_party/traefik/config/parser/flat_encode.go @@ -8,7 +8,7 @@ import ( "strings" "time" - "github.com/crazy-max/diun/v3/third_party/traefik/types" + "github.com/crazy-max/diun/v4/third_party/traefik/types" ) const defaultPtrValue = "false" diff --git a/third_party/traefik/config/parser/flat_encode_test.go b/third_party/traefik/config/parser/flat_encode_test.go index bea3bd0e..c82ddaef 100644 --- a/third_party/traefik/config/parser/flat_encode_test.go +++ b/third_party/traefik/config/parser/flat_encode_test.go @@ -5,7 +5,7 @@ import ( "testing" "time" - "github.com/crazy-max/diun/v3/third_party/traefik/types" + "github.com/crazy-max/diun/v4/third_party/traefik/types" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" )