mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 06:28:13 +01:00
Bump v4
This commit is contained in:
10
.github/dependabot.yml
vendored
10
.github/dependabot.yml
vendored
@@ -4,6 +4,16 @@ updates:
|
|||||||
directory: "/"
|
directory: "/"
|
||||||
schedule:
|
schedule:
|
||||||
interval: "daily"
|
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"
|
timezone: "Europe/Paris"
|
||||||
labels:
|
labels:
|
||||||
- ":game_die: dependencies"
|
- ":game_die: dependencies"
|
||||||
|
|||||||
10
.github/labels.yml
vendored
10
.github/labels.yml
vendored
@@ -1,4 +1,4 @@
|
|||||||
## https://github.com/crazy-max/ghaction-github-labeler
|
## more info https://github.com/crazy-max/ghaction-github-labeler
|
||||||
- # bot
|
- # bot
|
||||||
name: ":robot: bot"
|
name: ":robot: bot"
|
||||||
color: "69cde9"
|
color: "69cde9"
|
||||||
@@ -59,10 +59,18 @@
|
|||||||
name: ":thinking: needs more info"
|
name: ":thinking: needs more info"
|
||||||
color: "795548"
|
color: "795548"
|
||||||
description: ""
|
description: ""
|
||||||
|
- # pinned
|
||||||
|
name: ":pushpin: pinned"
|
||||||
|
color: "28008e"
|
||||||
|
description: ""
|
||||||
- # question
|
- # question
|
||||||
name: ":question: question"
|
name: ":question: question"
|
||||||
color: "3f51b5"
|
color: "3f51b5"
|
||||||
description: ""
|
description: ""
|
||||||
|
- # stale
|
||||||
|
name: ":skull: stale"
|
||||||
|
color: "237da0"
|
||||||
|
description: ""
|
||||||
- # upstream
|
- # upstream
|
||||||
name: ":eyes: upstream"
|
name: ":eyes: upstream"
|
||||||
color: "fbca04"
|
color: "fbca04"
|
||||||
|
|||||||
@@ -10,10 +10,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/alecthomas/kong"
|
"github.com/alecthomas/kong"
|
||||||
"github.com/crazy-max/diun/v3/internal/app"
|
"github.com/crazy-max/diun/v4/internal/app"
|
||||||
"github.com/crazy-max/diun/v3/internal/config"
|
"github.com/crazy-max/diun/v4/internal/config"
|
||||||
"github.com/crazy-max/diun/v3/internal/logging"
|
"github.com/crazy-max/diun/v4/internal/logging"
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
|||||||
module github.com/crazy-max/diun/v3
|
module github.com/crazy-max/diun/v4
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
|
|||||||
@@ -5,15 +5,15 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/config"
|
"github.com/crazy-max/diun/v4/internal/config"
|
||||||
"github.com/crazy-max/diun/v3/internal/db"
|
"github.com/crazy-max/diun/v4/internal/db"
|
||||||
"github.com/crazy-max/diun/v3/internal/logging"
|
"github.com/crazy-max/diun/v4/internal/logging"
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif"
|
"github.com/crazy-max/diun/v4/internal/notif"
|
||||||
dockerPrd "github.com/crazy-max/diun/v3/internal/provider/docker"
|
dockerPrd "github.com/crazy-max/diun/v4/internal/provider/docker"
|
||||||
filePrd "github.com/crazy-max/diun/v3/internal/provider/file"
|
filePrd "github.com/crazy-max/diun/v4/internal/provider/file"
|
||||||
swarmPrd "github.com/crazy-max/diun/v3/internal/provider/swarm"
|
swarmPrd "github.com/crazy-max/diun/v4/internal/provider/swarm"
|
||||||
"github.com/crazy-max/diun/v3/pkg/registry"
|
"github.com/crazy-max/diun/v4/pkg/registry"
|
||||||
"github.com/hako/durafmt"
|
"github.com/hako/durafmt"
|
||||||
"github.com/panjf2000/ants/v2"
|
"github.com/panjf2000/ants/v2"
|
||||||
"github.com/robfig/cron/v3"
|
"github.com/robfig/cron/v3"
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/pkg/registry"
|
"github.com/crazy-max/diun/v4/pkg/registry"
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
"github.com/imdario/mergo"
|
"github.com/imdario/mergo"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/third_party/traefik/config/env"
|
"github.com/crazy-max/diun/v4/third_party/traefik/config/env"
|
||||||
"github.com/crazy-max/diun/v3/third_party/traefik/config/file"
|
"github.com/crazy-max/diun/v4/third_party/traefik/config/file"
|
||||||
"github.com/go-playground/validator/v10"
|
"github.com/go-playground/validator/v10"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,9 +6,9 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/config"
|
"github.com/crazy-max/diun/v4/internal/config"
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
bolt "go.etcd.io/bbolt"
|
bolt "go.etcd.io/bbolt"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/pkg/registry"
|
"github.com/crazy-max/diun/v4/pkg/registry"
|
||||||
bolt "go.etcd.io/bbolt"
|
bolt "go.etcd.io/bbolt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"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"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/pkg/registry"
|
"github.com/crazy-max/diun/v4/pkg/registry"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Job holds job configuration
|
// Job holds job configuration
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/pkg/registry"
|
"github.com/crazy-max/diun/v4/pkg/registry"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NotifEntry represents a notification entry
|
// NotifEntry represents a notification entry
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package model
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NotifGotify holds gotify notification configuration details
|
// NotifGotify holds gotify notification configuration details
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package model
|
|||||||
import (
|
import (
|
||||||
"net/mail"
|
"net/mail"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
"github.com/imdario/mergo"
|
"github.com/imdario/mergo"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package model
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NotifRocketChat holds Rocket.Chat notification configuration details
|
// NotifRocketChat holds Rocket.Chat notification configuration details
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package model
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NotifWebhook holds webhook notification configuration details
|
// NotifWebhook holds webhook notification configuration details
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PrdDocker holds docker provider configuration
|
// PrdDocker holds docker provider configuration
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// PrdSwarm holds swarm provider configuration
|
// PrdSwarm holds swarm provider configuration
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package model
|
|||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// RegOpts holds registry options configuration
|
// RegOpts holds registry options configuration
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package model
|
package model
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Watch holds data necessary for watch configuration
|
// Watch holds data necessary for watch configuration
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
"github.com/opencontainers/go-digest"
|
"github.com/opencontainers/go-digest"
|
||||||
"github.com/streadway/amqp"
|
"github.com/streadway/amqp"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,17 +3,17 @@ package notif
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/amqp"
|
"github.com/crazy-max/diun/v4/internal/notif/amqp"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/gotify"
|
"github.com/crazy-max/diun/v4/internal/notif/gotify"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/mail"
|
"github.com/crazy-max/diun/v4/internal/notif/mail"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/rocketchat"
|
"github.com/crazy-max/diun/v4/internal/notif/rocketchat"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/script"
|
"github.com/crazy-max/diun/v4/internal/notif/script"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/slack"
|
"github.com/crazy-max/diun/v4/internal/notif/slack"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/teams"
|
"github.com/crazy-max/diun/v4/internal/notif/teams"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/telegram"
|
"github.com/crazy-max/diun/v4/internal/notif/telegram"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/webhook"
|
"github.com/crazy-max/diun/v4/internal/notif/webhook"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents an active gotify notification object
|
// Client represents an active gotify notification object
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
"github.com/crazy-max/diun/v3/pkg/utl"
|
"github.com/crazy-max/diun/v4/pkg/utl"
|
||||||
"github.com/go-gomail/gomail"
|
"github.com/go-gomail/gomail"
|
||||||
"github.com/matcornic/hermes/v2"
|
"github.com/matcornic/hermes/v2"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package notifier
|
package notifier
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Handler is a notifier interface
|
// Handler is a notifier interface
|
||||||
|
|||||||
@@ -11,8 +11,8 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents an active rocketchat notification object
|
// Client represents an active rocketchat notification object
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"os/exec"
|
"os/exec"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,8 +8,8 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
"github.com/nlopes/slack"
|
"github.com/nlopes/slack"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents an active webhook notification object
|
// Client represents an active webhook notification object
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
|
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
"github.com/crazy-max/diun/v4/internal/notif/notifier"
|
||||||
"github.com/opencontainers/go-digest"
|
"github.com/opencontainers/go-digest"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"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
|
// ValidateContainerImage returns a standard image through Docker labels
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package docker
|
|||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/provider"
|
"github.com/crazy-max/diun/v4/internal/provider"
|
||||||
"github.com/crazy-max/diun/v3/pkg/docker"
|
"github.com/crazy-max/diun/v4/pkg/docker"
|
||||||
"github.com/docker/docker/api/types/filters"
|
"github.com/docker/docker/api/types/filters"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package docker
|
package docker
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/provider"
|
"github.com/crazy-max/diun/v4/internal/provider"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package file
|
package file
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/provider"
|
"github.com/crazy-max/diun/v4/internal/provider"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package file_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/provider/file"
|
"github.com/crazy-max/diun/v4/internal/provider/file"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
package provider
|
package provider
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Handler is a provider interface
|
// Handler is a provider interface
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package swarm
|
|||||||
import (
|
import (
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/provider"
|
"github.com/crazy-max/diun/v4/internal/provider"
|
||||||
"github.com/crazy-max/diun/v3/pkg/docker"
|
"github.com/crazy-max/diun/v4/pkg/docker"
|
||||||
"github.com/docker/docker/api/types/filters"
|
"github.com/docker/docker/api/types/filters"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
package swarm
|
package swarm
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/v3/internal/model"
|
"github.com/crazy-max/diun/v4/internal/model"
|
||||||
"github.com/crazy-max/diun/v3/internal/provider"
|
"github.com/crazy-max/diun/v4/internal/provider"
|
||||||
"github.com/rs/zerolog"
|
"github.com/rs/zerolog"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/pkg/registry"
|
"github.com/crazy-max/diun/v4/pkg/registry"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/pkg/registry"
|
"github.com/crazy-max/diun/v4/pkg/registry"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package registry
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containers/image/v5/docker"
|
"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.
|
// Tags holds information about image tags.
|
||||||
|
|||||||
2
third_party/traefik/config/env/env.go
vendored
2
third_party/traefik/config/env/env.go
vendored
@@ -6,7 +6,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"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.
|
// DefaultNamePrefix is the default prefix for environment variable names.
|
||||||
|
|||||||
4
third_party/traefik/config/env/env_test.go
vendored
4
third_party/traefik/config/env/env_test.go
vendored
@@ -3,8 +3,8 @@ package env
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/third_party/traefik/config/generator"
|
"github.com/crazy-max/diun/v4/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/parser"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
2
third_party/traefik/config/env/filter.go
vendored
2
third_party/traefik/config/env/filter.go
vendored
@@ -4,7 +4,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"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.
|
// FindPrefixedEnvVars finds prefixed environment variables.
|
||||||
|
|||||||
2
third_party/traefik/config/file/file.go
vendored
2
third_party/traefik/config/file/file.go
vendored
@@ -2,7 +2,7 @@
|
|||||||
package file
|
package file
|
||||||
|
|
||||||
import (
|
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.
|
// Decode decodes the given configuration file into the given element.
|
||||||
|
|||||||
2
third_party/traefik/config/file/file_node.go
vendored
2
third_party/traefik/config/file/file_node.go
vendored
@@ -7,7 +7,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"strings"
|
"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"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package file
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"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/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
2
third_party/traefik/config/file/raw_node.go
vendored
2
third_party/traefik/config/file/raw_node.go
vendored
@@ -7,7 +7,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"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) {
|
func decodeRawToNode(data map[string]interface{}, rootName string, filters ...string) (*parser.Node, error) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package file
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"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/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ package generator
|
|||||||
import (
|
import (
|
||||||
"reflect"
|
"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 {
|
type initializer interface {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package generator
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"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/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/third_party/traefik/types"
|
"github.com/crazy-max/diun/v4/third_party/traefik/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type initializer interface {
|
type initializer interface {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"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/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/v3/third_party/traefik/types"
|
"github.com/crazy-max/diun/v4/third_party/traefik/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const defaultPtrValue = "false"
|
const defaultPtrValue = "false"
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
"time"
|
"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/assert"
|
||||||
"github.com/stretchr/testify/require"
|
"github.com/stretchr/testify/require"
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user