Browse Source

Fix import paths

master
James Mills 7 months ago
parent
commit
4bb116a216
Signed by: prologic GPG Key ID: AC4C014F1440EBD6
  1. 12
      README.md
  2. 2
      client/dockerclient.go
  3. 8
      collector/collector.go
  4. 2
      collector/utils.go
  5. 4
      go.mod
  6. 4
      go.sum
  7. 6
      main.go
  8. 4
      plugin/plugin.go
  9. 10
      server/server.go
  10. 4
      server/utils.go

12
README.md

@ -3,10 +3,10 @@
[![Build Status](https://cloud.drone.io/api/badges/prologic/autodock/status.svg)](https://cloud.drone.io/prologic/autodock)
[![CodeCov](https://codecov.io/gh/prologic/autodock/branch/master/graph/badge.svg)](https://codecov.io/gh/prologic/autodock)
[![Go Report Card](https://goreportcard.com/badge/prologic/autodock)](https://goreportcard.com/report/prologic/autodock)
[![GoDoc](https://godoc.org/github.com/prologic/autodock?status.svg)](https://godoc.org/github.com/prologic/autodock)
[![Sourcegraph](https://sourcegraph.com/github.com/prologic/autodock/-/badge.svg)](https://sourcegraph.com/github.com/prologic/autodock?badge)
[![GoDoc](https://godoc.org/git.mills.io/prologic/autodock?status.svg)](https://godoc.org/git.mills.io/prologic/autodock)
[![Sourcegraph](https://sourcegraph.com/git.mills.io/prologic/autodock/-/badge.svg)](https://sourcegraph.com/git.mills.io/prologic/autodock?badge)
[autodock](https://github.com/prologic/autodock) is a Daemon for
[autodock](https://git.mills.io/prologic/autodock) is a Daemon for
Docker Automation which enables you to maintain and automate your Docker
infrastructure by reacting to Docker or Docker Swarm events.
@ -23,9 +23,9 @@ webhooks to support things like CI/CD.
The following list is a list of the currently available plugins:
- [autodock-cron](https://github.com/prologic/autodock-cron)
- [autodock-cron](https://git.mills.io/prologic/autodock-cron)
Provides a *Cron* like scheduler for Containers/Services
- [autodock-logger](https://github.com/prologic/autodock-logger)
- [autodock-logger](https://git.mills.io/prologic/autodock-logger)
Logs Dockers Events (*Reference Implementation*)
## Installation
@ -39,7 +39,7 @@ $ docker pull prologic/autodock
### Source
```#!bash
$ go install github.com/prologic/autodock
$ go install git.mills.io/prologic/autodock
```
## Usage

2
client/dockerclient.go

@ -10,7 +10,7 @@ import (
"path/filepath"
"github.com/docker/docker/client"
"github.com/prologic/autodock/version"
"git.mills.io/prologic/autodock/version"
log "github.com/sirupsen/logrus"
)

8
collector/collector.go

@ -8,14 +8,14 @@ import (
etypes "github.com/docker/docker/api/types/events"
dockerclient "github.com/docker/docker/client"
msgbusclient "github.com/prologic/msgbus/client"
msgbusclient "git.mills.io/prologic/msgbus/client"
log "github.com/sirupsen/logrus"
"github.com/docker/docker/api/types"
"github.com/prologic/msgbus"
"git.mills.io/prologic/msgbus"
"github.com/prologic/autodock/config"
"github.com/prologic/autodock/events"
"git.mills.io/prologic/autodock/config"
"git.mills.io/prologic/autodock/events"
)
var (

2
collector/utils.go

@ -4,7 +4,7 @@ import (
"strings"
engineClient "github.com/docker/docker/client"
"github.com/prologic/autodock/client"
"git.mills.io/prologic/autodock/client"
)
func (c *Collector) getDockerURL() string {

4
go.mod

@ -1,4 +1,4 @@
module github.com/prologic/autodock
module git.mills.io/prologic/autodock
require (
github.com/docker/distribution v2.7.0+incompatible // indirect
@ -11,7 +11,7 @@ require (
github.com/namsral/flag v1.7.4-pre
github.com/opencontainers/go-digest v1.0.0-rc1 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/prologic/msgbus v0.1.1
git.mills.io/prologic/msgbus v0.1.1
github.com/prometheus/client_golang v0.9.4
github.com/sirupsen/logrus v1.8.1
github.com/spf13/pflag v1.0.5

4
go.sum

@ -121,8 +121,8 @@ github.com/pkg/errors v0.0.0-20161002052512-839d9e913e06/go.mod h1:bwawxfHBFNV+L
github.com/pkg/errors v0.8.0 h1:WdK/asTD0HN+q6hsWO3/vpuAkAr+tw6aNJNDFFf0+qw=
github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/prologic/msgbus v0.1.1 h1:aXfEYW+09k3cwY0z9RhITLM7JDn+b/mm/cxgbZOivS0=
github.com/prologic/msgbus v0.1.1/go.mod h1:B3Qu4/U2FP08x93jUzp9E8bl155+cIgDH2DUGRK6OZk=
git.mills.io/prologic/msgbus v0.1.1 h1:aXfEYW+09k3cwY0z9RhITLM7JDn+b/mm/cxgbZOivS0=
git.mills.io/prologic/msgbus v0.1.1/go.mod h1:B3Qu4/U2FP08x93jUzp9E8bl155+cIgDH2DUGRK6OZk=
github.com/prometheus/client_golang v0.0.0-20160802072246-52437c81da6b/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
github.com/prometheus/client_golang v0.9.2 h1:awm861/B8OKDd2I/6o1dy3ra4BamzKhYOiGItCeZ740=

6
main.go

@ -6,10 +6,10 @@ import (
log "github.com/sirupsen/logrus"
pkgver "github.com/prologic/autodock/version"
pkgver "git.mills.io/prologic/autodock/version"
"github.com/prologic/autodock/config"
"github.com/prologic/autodock/server"
"git.mills.io/prologic/autodock/config"
"git.mills.io/prologic/autodock/server"
flag "github.com/spf13/pflag"
)

4
plugin/plugin.go

@ -7,8 +7,8 @@ import (
"time"
dockerclient "github.com/docker/docker/client"
"github.com/prologic/msgbus"
msgbusclient "github.com/prologic/msgbus/client"
"git.mills.io/prologic/msgbus"
msgbusclient "git.mills.io/prologic/msgbus/client"
log "github.com/sirupsen/logrus"
flag "github.com/spf13/pflag"
)

10
server/server.go

@ -5,14 +5,14 @@ import (
"net/http"
"time"
"github.com/prologic/msgbus"
"git.mills.io/prologic/msgbus"
"github.com/prometheus/client_golang/prometheus"
"github.com/unrolled/logger"
"github.com/prologic/autodock/collector"
"github.com/prologic/autodock/config"
"github.com/prologic/autodock/metrics"
"github.com/prologic/autodock/proxy"
"git.mills.io/prologic/autodock/collector"
"git.mills.io/prologic/autodock/config"
"git.mills.io/prologic/autodock/metrics"
"git.mills.io/prologic/autodock/proxy"
)
// Server ...

4
server/utils.go

@ -1,8 +1,8 @@
package server
import (
"github.com/prologic/autodock/client"
"github.com/prologic/autodock/proxy"
"git.mills.io/prologic/autodock/client"
"git.mills.io/prologic/autodock/proxy"
)
func (s *Server) getDockerURL() string {

Loading…
Cancel
Save