chore(go): rename

This commit is contained in:
Jan Rundshagen 2024-07-08 15:18:32 +02:00 committed by Jan O. Rundshagen
parent 95cbb7ff4b
commit 89dba8455b
61 changed files with 126 additions and 126 deletions

View file

@ -1,7 +1,7 @@
package metrics
import (
"github.com/containrrr/watchtower/pkg/metrics"
"github.com/beatkind/watchtower/pkg/metrics"
"net/http"
"github.com/prometheus/client_golang/prometheus/promhttp"

View file

@ -11,9 +11,9 @@ import (
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/containrrr/watchtower/pkg/api"
metricsAPI "github.com/containrrr/watchtower/pkg/api/metrics"
"github.com/containrrr/watchtower/pkg/metrics"
"github.com/beatkind/watchtower/pkg/api"
metricsAPI "github.com/beatkind/watchtower/pkg/api/metrics"
"github.com/beatkind/watchtower/pkg/metrics"
)
const (

View file

@ -5,7 +5,7 @@ import (
"os"
"regexp"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/types"
)
var dockerContainerPattern = regexp.MustCompile(`[0-9]+:.*:/docker/([a-f|0-9]{64})`)

View file

@ -15,9 +15,9 @@ import (
log "github.com/sirupsen/logrus"
"golang.org/x/net/context"
"github.com/containrrr/watchtower/pkg/registry"
"github.com/containrrr/watchtower/pkg/registry/digest"
t "github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/registry"
"github.com/beatkind/watchtower/pkg/registry/digest"
t "github.com/beatkind/watchtower/pkg/types"
)
const defaultStopSignal = "SIGTERM"

View file

@ -4,10 +4,10 @@ import (
"github.com/docker/docker/api/types/network"
"time"
"github.com/containrrr/watchtower/internal/util"
"github.com/containrrr/watchtower/pkg/container/mocks"
"github.com/containrrr/watchtower/pkg/filters"
t "github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/internal/util"
"github.com/beatkind/watchtower/pkg/container/mocks"
"github.com/beatkind/watchtower/pkg/filters"
t "github.com/beatkind/watchtower/pkg/types"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/backend"

View file

@ -7,8 +7,8 @@ import (
"strconv"
"strings"
"github.com/containrrr/watchtower/internal/util"
wt "github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/internal/util"
wt "github.com/beatkind/watchtower/pkg/types"
"github.com/sirupsen/logrus"
"github.com/docker/docker/api/types"

View file

@ -1,7 +1,7 @@
package container
import (
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/types"
dc "github.com/docker/docker/api/types/container"
"github.com/docker/go-connections/nat"
. "github.com/onsi/ginkgo"

View file

@ -10,7 +10,7 @@ import (
"path/filepath"
"strings"
t "github.com/containrrr/watchtower/pkg/types"
t "github.com/beatkind/watchtower/pkg/types"
"github.com/docker/docker/api/types"
"github.com/docker/docker/api/types/filters"

View file

@ -4,7 +4,7 @@ import (
"fmt"
"os"
t "github.com/containrrr/watchtower/pkg/types"
t "github.com/beatkind/watchtower/pkg/types"
)
type imageRef struct {

View file

@ -1,7 +1,7 @@
package container_test
import (
wt "github.com/containrrr/watchtower/pkg/types"
wt "github.com/beatkind/watchtower/pkg/types"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)

View file

@ -4,7 +4,7 @@ import (
"regexp"
"strings"
t "github.com/containrrr/watchtower/pkg/types"
t "github.com/beatkind/watchtower/pkg/types"
)
// WatchtowerContainersFilter filters only watchtower containers

View file

@ -3,7 +3,7 @@ package filters
import (
"testing"
"github.com/containrrr/watchtower/pkg/container/mocks"
"github.com/beatkind/watchtower/pkg/container/mocks"
"github.com/stretchr/testify/assert"
)

View file

@ -1,8 +1,8 @@
package lifecycle
import (
"github.com/containrrr/watchtower/pkg/container"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/container"
"github.com/beatkind/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
)

View file

@ -1,7 +1,7 @@
package metrics
import (
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/types"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)

View file

@ -5,8 +5,8 @@ import (
"github.com/spf13/cobra"
t "github.com/beatkind/watchtower/pkg/types"
shoutrrrSmtp "github.com/containrrr/shoutrrr/pkg/services/smtp"
t "github.com/containrrr/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
)

View file

@ -4,8 +4,8 @@ import (
"net/url"
"strings"
t "github.com/beatkind/watchtower/pkg/types"
shoutrrrGotify "github.com/containrrr/shoutrrr/pkg/services/gotify"
t "github.com/containrrr/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
"github.com/spf13/pflag"

View file

@ -3,7 +3,7 @@ package notifications
import (
"encoding/json"
t "github.com/containrrr/watchtower/pkg/types"
t "github.com/beatkind/watchtower/pkg/types"
)
type jsonMap = map[string]interface{}

View file

@ -1,7 +1,7 @@
package notifications
import (
s "github.com/containrrr/watchtower/pkg/session"
s "github.com/beatkind/watchtower/pkg/session"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)

View file

@ -1,7 +1,7 @@
package notifications
import (
t "github.com/containrrr/watchtower/pkg/types"
t "github.com/beatkind/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
)

View file

@ -3,8 +3,8 @@ package notifications
import (
"net/url"
t "github.com/beatkind/watchtower/pkg/types"
shoutrrrTeams "github.com/containrrr/shoutrrr/pkg/services/teams"
t "github.com/containrrr/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View file

@ -5,7 +5,7 @@ import (
"strings"
"time"
ty "github.com/containrrr/watchtower/pkg/types"
ty "github.com/beatkind/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View file

@ -5,9 +5,9 @@ import (
"net/url"
"time"
"github.com/containrrr/watchtower/cmd"
"github.com/containrrr/watchtower/internal/flags"
"github.com/containrrr/watchtower/pkg/notifications"
"github.com/beatkind/watchtower/cmd"
"github.com/beatkind/watchtower/internal/flags"
"github.com/beatkind/watchtower/pkg/notifications"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
)

View file

@ -7,7 +7,7 @@ import (
"strconv"
"time"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/types"
)
type previewData struct {

View file

@ -3,7 +3,7 @@ package data
import (
"sort"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/types"
)
// State is the outcome of a container in a session report

View file

@ -1,6 +1,6 @@
package data
import wt "github.com/containrrr/watchtower/pkg/types"
import wt "github.com/beatkind/watchtower/pkg/types"
type containerStatus struct {
containerID wt.ContainerID

View file

@ -5,8 +5,8 @@ import (
"strings"
"text/template"
"github.com/containrrr/watchtower/pkg/notifications/preview/data"
"github.com/containrrr/watchtower/pkg/notifications/templates"
"github.com/beatkind/watchtower/pkg/notifications/preview/data"
"github.com/beatkind/watchtower/pkg/notifications/templates"
)
func Render(input string, states []data.State, loglevels []data.LogLevel) (string, error) {

View file

@ -8,10 +8,10 @@ import (
"text/template"
"time"
"github.com/beatkind/watchtower/pkg/notifications/templates"
t "github.com/beatkind/watchtower/pkg/types"
"github.com/containrrr/shoutrrr"
"github.com/containrrr/shoutrrr/pkg/types"
"github.com/containrrr/watchtower/pkg/notifications/templates"
t "github.com/containrrr/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
)

View file

@ -3,10 +3,10 @@ package notifications
import (
"time"
"github.com/beatkind/watchtower/internal/actions/mocks"
"github.com/beatkind/watchtower/internal/flags"
s "github.com/beatkind/watchtower/pkg/session"
"github.com/containrrr/shoutrrr/pkg/types"
"github.com/containrrr/watchtower/internal/actions/mocks"
"github.com/containrrr/watchtower/internal/flags"
s "github.com/containrrr/watchtower/pkg/session"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/gbytes"

View file

@ -3,9 +3,9 @@ package notifications
import (
"strings"
t "github.com/beatkind/watchtower/pkg/types"
shoutrrrDisco "github.com/containrrr/shoutrrr/pkg/services/discord"
shoutrrrSlack "github.com/containrrr/shoutrrr/pkg/services/slack"
t "github.com/containrrr/watchtower/pkg/types"
log "github.com/sirupsen/logrus"
"github.com/spf13/cobra"
)

View file

@ -9,8 +9,8 @@ import (
"net/url"
"strings"
"github.com/containrrr/watchtower/pkg/registry/helpers"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/registry/helpers"
"github.com/beatkind/watchtower/pkg/types"
ref "github.com/distribution/reference"
"github.com/sirupsen/logrus"
)

View file

@ -8,10 +8,10 @@ import (
"testing"
"time"
"github.com/containrrr/watchtower/internal/actions/mocks"
"github.com/containrrr/watchtower/pkg/registry/auth"
"github.com/beatkind/watchtower/internal/actions/mocks"
"github.com/beatkind/watchtower/pkg/registry/auth"
wtTypes "github.com/containrrr/watchtower/pkg/types"
wtTypes "github.com/beatkind/watchtower/pkg/types"
ref "github.com/distribution/reference"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

View file

@ -11,10 +11,10 @@ import (
"strings"
"time"
"github.com/containrrr/watchtower/internal/meta"
"github.com/containrrr/watchtower/pkg/registry/auth"
"github.com/containrrr/watchtower/pkg/registry/manifest"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/internal/meta"
"github.com/beatkind/watchtower/pkg/registry/auth"
"github.com/beatkind/watchtower/pkg/registry/manifest"
"github.com/beatkind/watchtower/pkg/types"
"github.com/sirupsen/logrus"
)

View file

@ -2,9 +2,9 @@ package digest_test
import (
"fmt"
"github.com/containrrr/watchtower/internal/actions/mocks"
"github.com/containrrr/watchtower/pkg/registry/digest"
wtTypes "github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/internal/actions/mocks"
"github.com/beatkind/watchtower/pkg/registry/digest"
wtTypes "github.com/beatkind/watchtower/pkg/types"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
"github.com/onsi/gomega/ghttp"

View file

@ -31,7 +31,7 @@ var _ = Describe("the helpers", func() {
Expect(GetRegistryAddress("localhost/watchtower")).To(Equal("localhost"))
})
It("should return the server address if passed a fully qualified image name", func() {
Expect(GetRegistryAddress("github.com/containrrr/config")).To(Equal("github.com"))
Expect(GetRegistryAddress("github.com/beatkind/config")).To(Equal("github.com"))
})
})
})

View file

@ -5,8 +5,8 @@ import (
"fmt"
url2 "net/url"
"github.com/containrrr/watchtower/pkg/registry/helpers"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/registry/helpers"
"github.com/beatkind/watchtower/pkg/types"
ref "github.com/distribution/reference"
"github.com/sirupsen/logrus"
)

View file

@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/containrrr/watchtower/internal/actions/mocks"
"github.com/containrrr/watchtower/pkg/registry/manifest"
"github.com/beatkind/watchtower/internal/actions/mocks"
"github.com/beatkind/watchtower/pkg/registry/manifest"
apiTypes "github.com/docker/docker/api/types"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

View file

@ -1,8 +1,8 @@
package registry
import (
"github.com/containrrr/watchtower/pkg/registry/helpers"
watchtowerTypes "github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/registry/helpers"
watchtowerTypes "github.com/beatkind/watchtower/pkg/types"
ref "github.com/distribution/reference"
"github.com/docker/docker/api/types"
log "github.com/sirupsen/logrus"

View file

@ -1,8 +1,8 @@
package registry_test
import (
"github.com/containrrr/watchtower/internal/actions/mocks"
unit "github.com/containrrr/watchtower/pkg/registry"
"github.com/beatkind/watchtower/internal/actions/mocks"
unit "github.com/beatkind/watchtower/pkg/registry"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"

View file

@ -6,7 +6,7 @@ import (
"errors"
"os"
"github.com/containrrr/watchtower/pkg/registry/helpers"
"github.com/beatkind/watchtower/pkg/registry/helpers"
cliconfig "github.com/docker/cli/cli/config"
"github.com/docker/cli/cli/config/configfile"
"github.com/docker/cli/cli/config/credentials"
@ -36,7 +36,7 @@ func EncodedEnvAuth() (string, error) {
Username: username,
Password: password,
}
log.Debugf("Loaded auth credentials for registry user %s from environment", auth.Username)
// CREDENTIAL: Uncomment to log REPO_PASS environment variable
// log.Tracef("Using auth password %s", auth.Password)

View file

@ -1,6 +1,6 @@
package session
import wt "github.com/containrrr/watchtower/pkg/types"
import wt "github.com/beatkind/watchtower/pkg/types"
// State indicates what the current state is of the container
type State int

View file

@ -1,7 +1,7 @@
package session
import (
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/types"
)
// Progress contains the current session container status

View file

@ -3,7 +3,7 @@ package session
import (
"sort"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/types"
)
type report struct {

View file

@ -4,7 +4,7 @@ import (
"fmt"
"time"
"github.com/containrrr/watchtower/pkg/types"
"github.com/beatkind/watchtower/pkg/types"
)
// ByCreated allows a list of Container structs to be sorted by the container's