mirror of
https://github.com/crazy-max/diun.git
synced 2025-12-24 06:28:13 +01:00
Fix package version
This commit is contained in:
@@ -9,10 +9,10 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/alecthomas/kong"
|
"github.com/alecthomas/kong"
|
||||||
"github.com/crazy-max/diun/internal/app"
|
"github.com/crazy-max/diun/v3/internal/app"
|
||||||
"github.com/crazy-max/diun/internal/config"
|
"github.com/crazy-max/diun/v3/internal/config"
|
||||||
"github.com/crazy-max/diun/internal/logging"
|
"github.com/crazy-max/diun/v3/internal/logging"
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/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
|
module github.com/crazy-max/diun/v3
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
|
|||||||
@@ -8,14 +8,14 @@ import (
|
|||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/config"
|
"github.com/crazy-max/diun/v3/internal/config"
|
||||||
"github.com/crazy-max/diun/internal/db"
|
"github.com/crazy-max/diun/v3/internal/db"
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif"
|
"github.com/crazy-max/diun/v3/internal/notif"
|
||||||
dockerPrd "github.com/crazy-max/diun/internal/provider/docker"
|
dockerPrd "github.com/crazy-max/diun/v3/internal/provider/docker"
|
||||||
filePrd "github.com/crazy-max/diun/internal/provider/file"
|
filePrd "github.com/crazy-max/diun/v3/internal/provider/file"
|
||||||
swarmPrd "github.com/crazy-max/diun/internal/provider/swarm"
|
swarmPrd "github.com/crazy-max/diun/v3/internal/provider/swarm"
|
||||||
"github.com/crazy-max/diun/pkg/registry"
|
"github.com/crazy-max/diun/v3/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"
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/pkg/registry"
|
"github.com/crazy-max/diun/v3/pkg/registry"
|
||||||
"github.com/crazy-max/diun/pkg/utl"
|
"github.com/crazy-max/diun/v3/pkg/utl"
|
||||||
"github.com/imdario/mergo"
|
"github.com/imdario/mergo"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/pkg/utl"
|
"github.com/crazy-max/diun/v3/pkg/utl"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
"gopkg.in/yaml.v2"
|
"gopkg.in/yaml.v2"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,9 +3,9 @@ package config_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/config"
|
"github.com/crazy-max/diun/v3/internal/config"
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/pkg/utl"
|
"github.com/crazy-max/diun/v3/pkg/utl"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,8 @@ import (
|
|||||||
"net/mail"
|
"net/mail"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/pkg/utl"
|
"github.com/crazy-max/diun/v3/pkg/utl"
|
||||||
"github.com/imdario/mergo"
|
"github.com/imdario/mergo"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package config
|
|||||||
import (
|
import (
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/pkg/utl"
|
"github.com/crazy-max/diun/v3/pkg/utl"
|
||||||
"github.com/imdario/mergo"
|
"github.com/imdario/mergo"
|
||||||
"github.com/pkg/errors"
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package config
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/imdario/mergo"
|
"github.com/imdario/mergo"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import (
|
|||||||
"reflect"
|
"reflect"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/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/pkg/registry"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/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/pkg/registry"
|
"github.com/crazy-max/diun/v3/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/pkg/registry"
|
"github.com/crazy-max/diun/v3/pkg/registry"
|
||||||
)
|
)
|
||||||
|
|
||||||
// NotifEntry represents a notification entry
|
// NotifEntry represents a notification entry
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
||||||
"github.com/crazy-max/diun/pkg/utl"
|
"github.com/crazy-max/diun/v3/pkg/utl"
|
||||||
"github.com/opencontainers/go-digest"
|
"github.com/opencontainers/go-digest"
|
||||||
"github.com/streadway/amqp"
|
"github.com/streadway/amqp"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
package notif
|
package notif
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/amqp"
|
"github.com/crazy-max/diun/v3/internal/notif/amqp"
|
||||||
"github.com/crazy-max/diun/internal/notif/gotify"
|
"github.com/crazy-max/diun/v3/internal/notif/gotify"
|
||||||
"github.com/crazy-max/diun/internal/notif/mail"
|
"github.com/crazy-max/diun/v3/internal/notif/mail"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
||||||
"github.com/crazy-max/diun/internal/notif/rocketchat"
|
"github.com/crazy-max/diun/v3/internal/notif/rocketchat"
|
||||||
"github.com/crazy-max/diun/internal/notif/script"
|
"github.com/crazy-max/diun/v3/internal/notif/script"
|
||||||
"github.com/crazy-max/diun/internal/notif/slack"
|
"github.com/crazy-max/diun/v3/internal/notif/slack"
|
||||||
"github.com/crazy-max/diun/internal/notif/teams"
|
"github.com/crazy-max/diun/v3/internal/notif/teams"
|
||||||
"github.com/crazy-max/diun/internal/notif/telegram"
|
"github.com/crazy-max/diun/v3/internal/notif/telegram"
|
||||||
"github.com/crazy-max/diun/internal/notif/webhook"
|
"github.com/crazy-max/diun/v3/internal/notif/webhook"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ import (
|
|||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
||||||
"github.com/crazy-max/diun/pkg/utl"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Client represents an active webhook notification object
|
// Client represents an active webhook notification object
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/internal/notif/notifier"
|
||||||
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
|
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api"
|
||||||
"github.com/rs/zerolog/log"
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -6,8 +6,8 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/crazy-max/diun/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/notif/notifier"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/provider"
|
"github.com/crazy-max/diun/v3/internal/provider"
|
||||||
"github.com/crazy-max/diun/pkg/docker"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/provider"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/provider"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/provider/file"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/provider"
|
"github.com/crazy-max/diun/v3/internal/provider"
|
||||||
"github.com/crazy-max/diun/pkg/docker"
|
"github.com/crazy-max/diun/v3/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/internal/model"
|
"github.com/crazy-max/diun/v3/internal/model"
|
||||||
"github.com/crazy-max/diun/internal/provider"
|
"github.com/crazy-max/diun/v3/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/pkg/registry"
|
"github.com/crazy-max/diun/v3/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/pkg/registry"
|
"github.com/crazy-max/diun/v3/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/pkg/utl"
|
"github.com/crazy-max/diun/v3/pkg/utl"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Tags holds information about image tags.
|
// Tags holds information about image tags.
|
||||||
|
|||||||
Reference in New Issue
Block a user