From e3a8c8388f8c6f1f67204cdd16b7b685fadda6c3 Mon Sep 17 00:00:00 2001 From: Aleksa Sarai Date: Sat, 2 Apr 2016 00:43:05 +1100 Subject: [PATCH] pkg: listeners: separate out the listeners package This code will be used in containerd and is quite useful in general to people who want a nice way of creating listeners from proto://address arguments (even supporting socket activation). Separate it out from docker/ so people can use it much more easily. Signed-off-by: Aleksa Sarai --- docker/daemon.go | 2 +- {docker => pkg}/listeners/listeners.go | 0 {docker => pkg}/listeners/listeners_unix.go | 0 {docker => pkg}/listeners/listeners_windows.go | 0 4 files changed, 1 insertion(+), 1 deletion(-) rename {docker => pkg}/listeners/listeners.go (100%) rename {docker => pkg}/listeners/listeners_unix.go (100%) rename {docker => pkg}/listeners/listeners_windows.go (100%) diff --git a/docker/daemon.go b/docker/daemon.go index ae804cde69..804775667c 100644 --- a/docker/daemon.go +++ b/docker/daemon.go @@ -26,11 +26,11 @@ import ( "github.com/docker/docker/cliconfig" "github.com/docker/docker/daemon" "github.com/docker/docker/daemon/logger" - "github.com/docker/docker/docker/listeners" "github.com/docker/docker/dockerversion" "github.com/docker/docker/libcontainerd" "github.com/docker/docker/opts" "github.com/docker/docker/pkg/jsonlog" + "github.com/docker/docker/pkg/listeners" flag "github.com/docker/docker/pkg/mflag" "github.com/docker/docker/pkg/pidfile" "github.com/docker/docker/pkg/signal" diff --git a/docker/listeners/listeners.go b/pkg/listeners/listeners.go similarity index 100% rename from docker/listeners/listeners.go rename to pkg/listeners/listeners.go diff --git a/docker/listeners/listeners_unix.go b/pkg/listeners/listeners_unix.go similarity index 100% rename from docker/listeners/listeners_unix.go rename to pkg/listeners/listeners_unix.go diff --git a/docker/listeners/listeners_windows.go b/pkg/listeners/listeners_windows.go similarity index 100% rename from docker/listeners/listeners_windows.go rename to pkg/listeners/listeners_windows.go