mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
chore(go): rename
This commit is contained in:
parent
95cbb7ff4b
commit
89dba8455b
61 changed files with 126 additions and 126 deletions
2
.github/ISSUE_TEMPLATE/config.yml
vendored
2
.github/ISSUE_TEMPLATE/config.yml
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
blank_issues_enabled: false
|
blank_issues_enabled: false
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: Ask a question
|
- name: Ask a question
|
||||||
url: https://github.com/containrrr/watchtower/discussions
|
url: https://github.com/beatkind/watchtower/discussions
|
||||||
about: Ask questions and discuss with other community members
|
about: Ask questions and discuss with other community members
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,9 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/flags"
|
"github.com/beatkind/watchtower/internal/flags"
|
||||||
"github.com/containrrr/watchtower/pkg/container"
|
"github.com/beatkind/watchtower/pkg/container"
|
||||||
"github.com/containrrr/watchtower/pkg/notifications"
|
"github.com/beatkind/watchtower/pkg/notifications"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
24
cmd/root.go
24
cmd/root.go
|
|
@ -11,17 +11,17 @@ import (
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/actions"
|
"github.com/beatkind/watchtower/internal/actions"
|
||||||
"github.com/containrrr/watchtower/internal/flags"
|
"github.com/beatkind/watchtower/internal/flags"
|
||||||
"github.com/containrrr/watchtower/internal/meta"
|
"github.com/beatkind/watchtower/internal/meta"
|
||||||
"github.com/containrrr/watchtower/pkg/api"
|
"github.com/beatkind/watchtower/pkg/api"
|
||||||
apiMetrics "github.com/containrrr/watchtower/pkg/api/metrics"
|
apiMetrics "github.com/beatkind/watchtower/pkg/api/metrics"
|
||||||
"github.com/containrrr/watchtower/pkg/api/update"
|
"github.com/beatkind/watchtower/pkg/api/update"
|
||||||
"github.com/containrrr/watchtower/pkg/container"
|
"github.com/beatkind/watchtower/pkg/container"
|
||||||
"github.com/containrrr/watchtower/pkg/filters"
|
"github.com/beatkind/watchtower/pkg/filters"
|
||||||
"github.com/containrrr/watchtower/pkg/metrics"
|
"github.com/beatkind/watchtower/pkg/metrics"
|
||||||
"github.com/containrrr/watchtower/pkg/notifications"
|
"github.com/beatkind/watchtower/pkg/notifications"
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
"github.com/robfig/cron"
|
"github.com/robfig/cron"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
||||||
|
|
@ -54,7 +54,7 @@ func NewRootCommand() *cobra.Command {
|
||||||
Short: "Automatically updates running Docker containers",
|
Short: "Automatically updates running Docker containers",
|
||||||
Long: `
|
Long: `
|
||||||
Watchtower automatically updates running Docker containers whenever a new image is released.
|
Watchtower automatically updates running Docker containers whenever a new image is released.
|
||||||
More information available at https://github.com/containrrr/watchtower/.
|
More information available at https://github.com/beatkind/watchtower/.
|
||||||
`,
|
`,
|
||||||
Run: Run,
|
Run: Run,
|
||||||
PreRun: PreRun,
|
PreRun: PreRun,
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
### Containrrr Community Code of Conduct
|
### Containrrr Community Code of Conduct
|
||||||
|
|
||||||
Please refer to out [Containrrr Community Code of Conduct](https://github.com/containrrr/.github/blob/master/CODE_OF_CONDUCT.md)
|
Please refer to out [Containrrr Community Code of Conduct](https://github.com/beatkind/.github/blob/master/CODE_OF_CONDUCT.md)
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ COPY . /watchtower
|
||||||
RUN \
|
RUN \
|
||||||
cd /watchtower && \
|
cd /watchtower && \
|
||||||
\
|
\
|
||||||
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X github.com/containrrr/watchtower/internal/meta.Version=$(git describe --tags)" . && \
|
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X github.com/beatkind/watchtower/internal/meta.Version=$(git describe --tags)" . && \
|
||||||
GO111MODULE=on go test ./... -v
|
GO111MODULE=on go test ./... -v
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -13,12 +13,12 @@ RUN apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
tzdata
|
tzdata
|
||||||
|
|
||||||
RUN git clone --branch "${WATCHTOWER_VERSION}" https://github.com/containrrr/watchtower.git
|
RUN git clone --branch "${WATCHTOWER_VERSION}" https://github.com/beatkind/watchtower.git
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
cd watchtower && \
|
cd watchtower && \
|
||||||
\
|
\
|
||||||
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X github.com/containrrr/watchtower/internal/meta.Version=$(git describe --tags)" . && \
|
GO111MODULE=on CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-extldflags '-static' -X github.com/beatkind/watchtower/internal/meta.Version=$(git describe --tags)" . && \
|
||||||
GO111MODULE=on go test ./... -v
|
GO111MODULE=on go test ./... -v
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -14,13 +14,13 @@
|
||||||
<a href="https://codecov.io/gh/containrrr/watchtower">
|
<a href="https://codecov.io/gh/containrrr/watchtower">
|
||||||
<img alt="Codecov" src="https://codecov.io/gh/containrrr/watchtower/branch/main/graph/badge.svg">
|
<img alt="Codecov" src="https://codecov.io/gh/containrrr/watchtower/branch/main/graph/badge.svg">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://godoc.org/github.com/containrrr/watchtower">
|
<a href="https://godoc.org/github.com/beatkind/watchtower">
|
||||||
<img alt="GoDoc" src="https://godoc.org/github.com/containrrr/watchtower?status.svg" />
|
<img alt="GoDoc" src="https://godoc.org/github.com/beatkind/watchtower?status.svg" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://goreportcard.com/report/github.com/containrrr/watchtower">
|
<a href="https://goreportcard.com/report/github.com/beatkind/watchtower">
|
||||||
<img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/containrrr/watchtower" />
|
<img alt="Go Report Card" src="https://goreportcard.com/badge/github.com/beatkind/watchtower" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/containrrr/watchtower/releases">
|
<a href="https://github.com/beatkind/watchtower/releases">
|
||||||
<img alt="latest version" src="https://img.shields.io/github/tag/containrrr/watchtower.svg" />
|
<img alt="latest version" src="https://img.shields.io/github/tag/containrrr/watchtower.svg" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.apache.org/licenses/LICENSE-2.0">
|
<a href="https://www.apache.org/licenses/LICENSE-2.0">
|
||||||
|
|
@ -29,7 +29,7 @@
|
||||||
<a href="https://www.codacy.com/gh/containrrr/watchtower/dashboard?utm_source=github.com&utm_medium=referral&utm_content=containrrr/watchtower&utm_campaign=Badge_Grade">
|
<a href="https://www.codacy.com/gh/containrrr/watchtower/dashboard?utm_source=github.com&utm_medium=referral&utm_content=containrrr/watchtower&utm_campaign=Badge_Grade">
|
||||||
<img alt="Codacy Badge" src="https://app.codacy.com/project/badge/Grade/1c48cfb7646d4009aa8c6f71287670b8"/>
|
<img alt="Codacy Badge" src="https://app.codacy.com/project/badge/Grade/1c48cfb7646d4009aa8c6f71287670b8"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/containrrr/watchtower/#contributors">
|
<a href="https://github.com/beatkind/watchtower/#contributors">
|
||||||
<img alt="All Contributors" src="https://img.shields.io/github/all-contributors/containrrr/watchtower" />
|
<img alt="All Contributors" src="https://img.shields.io/github/all-contributors/containrrr/watchtower" />
|
||||||
</a>
|
</a>
|
||||||
<a href="https://hub.docker.com/r/containrrr/watchtower">
|
<a href="https://hub.docker.com/r/containrrr/watchtower">
|
||||||
|
|
|
||||||
|
|
@ -6,10 +6,10 @@ import (
|
||||||
|
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/actions"
|
"github.com/beatkind/watchtower/internal/actions"
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
|
|
||||||
. "github.com/containrrr/watchtower/internal/actions/mocks"
|
. "github.com/beatkind/watchtower/internal/actions/mocks"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,10 +5,10 @@ import (
|
||||||
"sort"
|
"sort"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/container"
|
"github.com/beatkind/watchtower/pkg/container"
|
||||||
"github.com/containrrr/watchtower/pkg/filters"
|
"github.com/beatkind/watchtower/pkg/filters"
|
||||||
"github.com/containrrr/watchtower/pkg/sorter"
|
"github.com/beatkind/watchtower/pkg/sorter"
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockClient is a mock that passes as a watchtower Client
|
// MockClient is a mock that passes as a watchtower Client
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/container"
|
"github.com/beatkind/watchtower/pkg/container"
|
||||||
wt "github.com/containrrr/watchtower/pkg/types"
|
wt "github.com/beatkind/watchtower/pkg/types"
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
dockerContainer "github.com/docker/docker/api/types/container"
|
dockerContainer "github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/go-connections/nat"
|
"github.com/docker/go-connections/nat"
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package mocks
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/session"
|
"github.com/beatkind/watchtower/pkg/session"
|
||||||
wt "github.com/containrrr/watchtower/pkg/types"
|
wt "github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CreateMockProgressReport creates a mock report from a given set of container states
|
// CreateMockProgressReport creates a mock report from a given set of container states
|
||||||
|
|
|
||||||
|
|
@ -3,12 +3,12 @@ package actions
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/util"
|
"github.com/beatkind/watchtower/internal/util"
|
||||||
"github.com/containrrr/watchtower/pkg/container"
|
"github.com/beatkind/watchtower/pkg/container"
|
||||||
"github.com/containrrr/watchtower/pkg/lifecycle"
|
"github.com/beatkind/watchtower/pkg/lifecycle"
|
||||||
"github.com/containrrr/watchtower/pkg/session"
|
"github.com/beatkind/watchtower/pkg/session"
|
||||||
"github.com/containrrr/watchtower/pkg/sorter"
|
"github.com/beatkind/watchtower/pkg/sorter"
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,13 +3,13 @@ package actions_test
|
||||||
import (
|
import (
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/actions"
|
"github.com/beatkind/watchtower/internal/actions"
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
dockerTypes "github.com/docker/docker/api/types"
|
dockerTypes "github.com/docker/docker/api/types"
|
||||||
dockerContainer "github.com/docker/docker/api/types/container"
|
dockerContainer "github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/go-connections/nat"
|
"github.com/docker/go-connections/nat"
|
||||||
|
|
||||||
. "github.com/containrrr/watchtower/internal/actions/mocks"
|
. "github.com/beatkind/watchtower/internal/actions/mocks"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
2
main.go
2
main.go
|
|
@ -1,7 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containrrr/watchtower/cmd"
|
"github.com/beatkind/watchtower/cmd"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
site_name: Watchtower
|
site_name: Watchtower
|
||||||
site_url: https://containrrr.dev/watchtower/
|
site_url: https://containrrr.dev/watchtower/
|
||||||
repo_url: https://github.com/containrrr/watchtower/
|
repo_url: https://github.com/beatkind/watchtower/
|
||||||
edit_uri: edit/main/docs/
|
edit_uri: edit/main/docs/
|
||||||
theme:
|
theme:
|
||||||
name: 'material'
|
name: 'material'
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package metrics
|
package metrics
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containrrr/watchtower/pkg/metrics"
|
"github.com/beatkind/watchtower/pkg/metrics"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/prometheus/client_golang/prometheus/promhttp"
|
"github.com/prometheus/client_golang/prometheus/promhttp"
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,9 @@ import (
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/api"
|
"github.com/beatkind/watchtower/pkg/api"
|
||||||
metricsAPI "github.com/containrrr/watchtower/pkg/api/metrics"
|
metricsAPI "github.com/beatkind/watchtower/pkg/api/metrics"
|
||||||
"github.com/containrrr/watchtower/pkg/metrics"
|
"github.com/beatkind/watchtower/pkg/metrics"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
"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})`)
|
var dockerContainerPattern = regexp.MustCompile(`[0-9]+:.*:/docker/([a-f|0-9]{64})`)
|
||||||
|
|
|
||||||
|
|
@ -15,9 +15,9 @@ import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"golang.org/x/net/context"
|
"golang.org/x/net/context"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/registry"
|
"github.com/beatkind/watchtower/pkg/registry"
|
||||||
"github.com/containrrr/watchtower/pkg/registry/digest"
|
"github.com/beatkind/watchtower/pkg/registry/digest"
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const defaultStopSignal = "SIGTERM"
|
const defaultStopSignal = "SIGTERM"
|
||||||
|
|
|
||||||
|
|
@ -4,10 +4,10 @@ import (
|
||||||
"github.com/docker/docker/api/types/network"
|
"github.com/docker/docker/api/types/network"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/util"
|
"github.com/beatkind/watchtower/internal/util"
|
||||||
"github.com/containrrr/watchtower/pkg/container/mocks"
|
"github.com/beatkind/watchtower/pkg/container/mocks"
|
||||||
"github.com/containrrr/watchtower/pkg/filters"
|
"github.com/beatkind/watchtower/pkg/filters"
|
||||||
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"
|
||||||
"github.com/docker/docker/api/types/backend"
|
"github.com/docker/docker/api/types/backend"
|
||||||
|
|
|
||||||
|
|
@ -7,8 +7,8 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/util"
|
"github.com/beatkind/watchtower/internal/util"
|
||||||
wt "github.com/containrrr/watchtower/pkg/types"
|
wt "github.com/beatkind/watchtower/pkg/types"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
|
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package container
|
package container
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
dc "github.com/docker/docker/api/types/container"
|
dc "github.com/docker/docker/api/types/container"
|
||||||
"github.com/docker/go-connections/nat"
|
"github.com/docker/go-connections/nat"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
"strings"
|
"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"
|
||||||
"github.com/docker/docker/api/types/filters"
|
"github.com/docker/docker/api/types/filters"
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type imageRef struct {
|
type imageRef struct {
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package container_test
|
package container_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
wt "github.com/containrrr/watchtower/pkg/types"
|
wt "github.com/beatkind/watchtower/pkg/types"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// WatchtowerContainersFilter filters only watchtower containers
|
// WatchtowerContainersFilter filters only watchtower containers
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package filters
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/container/mocks"
|
"github.com/beatkind/watchtower/pkg/container/mocks"
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package lifecycle
|
package lifecycle
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containrrr/watchtower/pkg/container"
|
"github.com/beatkind/watchtower/pkg/container"
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package metrics
|
package metrics
|
||||||
|
|
||||||
import (
|
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"
|
||||||
"github.com/prometheus/client_golang/prometheus/promauto"
|
"github.com/prometheus/client_golang/prometheus/promauto"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
shoutrrrSmtp "github.com/containrrr/shoutrrr/pkg/services/smtp"
|
shoutrrrSmtp "github.com/containrrr/shoutrrr/pkg/services/smtp"
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
shoutrrrGotify "github.com/containrrr/shoutrrr/pkg/services/gotify"
|
shoutrrrGotify "github.com/containrrr/shoutrrr/pkg/services/gotify"
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"github.com/spf13/pflag"
|
"github.com/spf13/pflag"
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package notifications
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type jsonMap = map[string]interface{}
|
type jsonMap = map[string]interface{}
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package notifications
|
package notifications
|
||||||
|
|
||||||
import (
|
import (
|
||||||
s "github.com/containrrr/watchtower/pkg/session"
|
s "github.com/beatkind/watchtower/pkg/session"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package notifications
|
package notifications
|
||||||
|
|
||||||
import (
|
import (
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,8 +3,8 @@ package notifications
|
||||||
import (
|
import (
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
shoutrrrTeams "github.com/containrrr/shoutrrr/pkg/services/teams"
|
shoutrrrTeams "github.com/containrrr/shoutrrr/pkg/services/teams"
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
ty "github.com/containrrr/watchtower/pkg/types"
|
ty "github.com/beatkind/watchtower/pkg/types"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/cmd"
|
"github.com/beatkind/watchtower/cmd"
|
||||||
"github.com/containrrr/watchtower/internal/flags"
|
"github.com/beatkind/watchtower/internal/flags"
|
||||||
"github.com/containrrr/watchtower/pkg/notifications"
|
"github.com/beatkind/watchtower/pkg/notifications"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type previewData struct {
|
type previewData struct {
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package data
|
||||||
import (
|
import (
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// State is the outcome of a container in a session report
|
// State is the outcome of a container in a session report
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package data
|
package data
|
||||||
|
|
||||||
import wt "github.com/containrrr/watchtower/pkg/types"
|
import wt "github.com/beatkind/watchtower/pkg/types"
|
||||||
|
|
||||||
type containerStatus struct {
|
type containerStatus struct {
|
||||||
containerID wt.ContainerID
|
containerID wt.ContainerID
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"text/template"
|
"text/template"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/notifications/preview/data"
|
"github.com/beatkind/watchtower/pkg/notifications/preview/data"
|
||||||
"github.com/containrrr/watchtower/pkg/notifications/templates"
|
"github.com/beatkind/watchtower/pkg/notifications/templates"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Render(input string, states []data.State, loglevels []data.LogLevel) (string, error) {
|
func Render(input string, states []data.State, loglevels []data.LogLevel) (string, error) {
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"text/template"
|
"text/template"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/beatkind/watchtower/pkg/notifications/templates"
|
||||||
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
"github.com/containrrr/shoutrrr"
|
"github.com/containrrr/shoutrrr"
|
||||||
"github.com/containrrr/shoutrrr/pkg/types"
|
"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"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,10 +3,10 @@ package notifications
|
||||||
import (
|
import (
|
||||||
"time"
|
"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/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/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
"github.com/onsi/gomega/gbytes"
|
"github.com/onsi/gomega/gbytes"
|
||||||
|
|
|
||||||
|
|
@ -3,9 +3,9 @@ package notifications
|
||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
|
t "github.com/beatkind/watchtower/pkg/types"
|
||||||
shoutrrrDisco "github.com/containrrr/shoutrrr/pkg/services/discord"
|
shoutrrrDisco "github.com/containrrr/shoutrrr/pkg/services/discord"
|
||||||
shoutrrrSlack "github.com/containrrr/shoutrrr/pkg/services/slack"
|
shoutrrrSlack "github.com/containrrr/shoutrrr/pkg/services/slack"
|
||||||
t "github.com/containrrr/watchtower/pkg/types"
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,8 @@ import (
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/registry/helpers"
|
"github.com/beatkind/watchtower/pkg/registry/helpers"
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
ref "github.com/distribution/reference"
|
ref "github.com/distribution/reference"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -8,10 +8,10 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/actions/mocks"
|
"github.com/beatkind/watchtower/internal/actions/mocks"
|
||||||
"github.com/containrrr/watchtower/pkg/registry/auth"
|
"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"
|
ref "github.com/distribution/reference"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|
|
||||||
|
|
@ -11,10 +11,10 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/meta"
|
"github.com/beatkind/watchtower/internal/meta"
|
||||||
"github.com/containrrr/watchtower/pkg/registry/auth"
|
"github.com/beatkind/watchtower/pkg/registry/auth"
|
||||||
"github.com/containrrr/watchtower/pkg/registry/manifest"
|
"github.com/beatkind/watchtower/pkg/registry/manifest"
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,9 +2,9 @@ package digest_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/containrrr/watchtower/internal/actions/mocks"
|
"github.com/beatkind/watchtower/internal/actions/mocks"
|
||||||
"github.com/containrrr/watchtower/pkg/registry/digest"
|
"github.com/beatkind/watchtower/pkg/registry/digest"
|
||||||
wtTypes "github.com/containrrr/watchtower/pkg/types"
|
wtTypes "github.com/beatkind/watchtower/pkg/types"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
"github.com/onsi/gomega/ghttp"
|
"github.com/onsi/gomega/ghttp"
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@ var _ = Describe("the helpers", func() {
|
||||||
Expect(GetRegistryAddress("localhost/watchtower")).To(Equal("localhost"))
|
Expect(GetRegistryAddress("localhost/watchtower")).To(Equal("localhost"))
|
||||||
})
|
})
|
||||||
It("should return the server address if passed a fully qualified image name", func() {
|
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"))
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
url2 "net/url"
|
url2 "net/url"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/registry/helpers"
|
"github.com/beatkind/watchtower/pkg/registry/helpers"
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
ref "github.com/distribution/reference"
|
ref "github.com/distribution/reference"
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ import (
|
||||||
"testing"
|
"testing"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/actions/mocks"
|
"github.com/beatkind/watchtower/internal/actions/mocks"
|
||||||
"github.com/containrrr/watchtower/pkg/registry/manifest"
|
"github.com/beatkind/watchtower/pkg/registry/manifest"
|
||||||
apiTypes "github.com/docker/docker/api/types"
|
apiTypes "github.com/docker/docker/api/types"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package registry
|
package registry
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containrrr/watchtower/pkg/registry/helpers"
|
"github.com/beatkind/watchtower/pkg/registry/helpers"
|
||||||
watchtowerTypes "github.com/containrrr/watchtower/pkg/types"
|
watchtowerTypes "github.com/beatkind/watchtower/pkg/types"
|
||||||
ref "github.com/distribution/reference"
|
ref "github.com/distribution/reference"
|
||||||
"github.com/docker/docker/api/types"
|
"github.com/docker/docker/api/types"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
package registry_test
|
package registry_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containrrr/watchtower/internal/actions/mocks"
|
"github.com/beatkind/watchtower/internal/actions/mocks"
|
||||||
unit "github.com/containrrr/watchtower/pkg/registry"
|
unit "github.com/beatkind/watchtower/pkg/registry"
|
||||||
. "github.com/onsi/ginkgo"
|
. "github.com/onsi/ginkgo"
|
||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"errors"
|
"errors"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/registry/helpers"
|
"github.com/beatkind/watchtower/pkg/registry/helpers"
|
||||||
cliconfig "github.com/docker/cli/cli/config"
|
cliconfig "github.com/docker/cli/cli/config"
|
||||||
"github.com/docker/cli/cli/config/configfile"
|
"github.com/docker/cli/cli/config/configfile"
|
||||||
"github.com/docker/cli/cli/config/credentials"
|
"github.com/docker/cli/cli/config/credentials"
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
package session
|
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
|
// State indicates what the current state is of the container
|
||||||
type State int
|
type State int
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
package session
|
package session
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Progress contains the current session container status
|
// Progress contains the current session container status
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package session
|
||||||
import (
|
import (
|
||||||
"sort"
|
"sort"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/pkg/types"
|
"github.com/beatkind/watchtower/pkg/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
type report struct {
|
type report struct {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"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
|
// ByCreated allows a list of Container structs to be sorted by the container's
|
||||||
|
|
|
||||||
|
|
@ -7,9 +7,9 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/meta"
|
"github.com/beatkind/watchtower/internal/meta"
|
||||||
"github.com/containrrr/watchtower/pkg/notifications/preview"
|
"github.com/beatkind/watchtower/pkg/notifications/preview"
|
||||||
"github.com/containrrr/watchtower/pkg/notifications/preview/data"
|
"github.com/beatkind/watchtower/pkg/notifications/preview/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
|
||||||
|
|
@ -5,9 +5,9 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/containrrr/watchtower/internal/meta"
|
"github.com/beatkind/watchtower/internal/meta"
|
||||||
"github.com/containrrr/watchtower/pkg/notifications/preview"
|
"github.com/beatkind/watchtower/pkg/notifications/preview"
|
||||||
"github.com/containrrr/watchtower/pkg/notifications/preview/data"
|
"github.com/beatkind/watchtower/pkg/notifications/preview/data"
|
||||||
|
|
||||||
"syscall/js"
|
"syscall/js"
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue