From ab4a9f048091efc71d15c07fc72a7a70d37c29a5 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Tue, 6 Jan 2015 10:37:27 -0800 Subject: [PATCH] Move registry package out of repo root Since the repo is no longer just the registry, we are moving the registry web application package out of the repo root into a sub-package. We may break down the registry package further to separate webapp components and bring the client package under it. This change accomplishes the task of freeing up the repo root for a distribution-oriented package. A stub doc.go file is left in place to declare intent. Signed-off-by: Stephen J Day --- cmd/registry/main.go | 2 +- doc.go | 7 +++++++ api_test.go => registry/api_test.go | 0 app.go => registry/app.go | 0 app_test.go => registry/app_test.go | 0 context.go => registry/context.go | 0 helpers.go => registry/helpers.go | 0 images.go => registry/images.go | 0 layer.go => registry/layer.go | 0 layerupload.go => registry/layerupload.go | 0 tags.go => registry/tags.go | 0 tokens.go => registry/tokens.go | 0 tokens_test.go => registry/tokens_test.go | 0 util.go => registry/util.go | 0 14 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 doc.go rename api_test.go => registry/api_test.go (100%) rename app.go => registry/app.go (100%) rename app_test.go => registry/app_test.go (100%) rename context.go => registry/context.go (100%) rename helpers.go => registry/helpers.go (100%) rename images.go => registry/images.go (100%) rename layer.go => registry/layer.go (100%) rename layerupload.go => registry/layerupload.go (100%) rename tags.go => registry/tags.go (100%) rename tokens.go => registry/tokens.go (100%) rename tokens_test.go => registry/tokens_test.go (100%) rename util.go => registry/util.go (100%) diff --git a/cmd/registry/main.go b/cmd/registry/main.go index 1bf635cc..ff4830d2 100644 --- a/cmd/registry/main.go +++ b/cmd/registry/main.go @@ -12,10 +12,10 @@ import ( "github.com/gorilla/handlers" "github.com/yvasiyarov/gorelic" - "github.com/docker/distribution" _ "github.com/docker/distribution/auth/silly" _ "github.com/docker/distribution/auth/token" "github.com/docker/distribution/configuration" + "github.com/docker/distribution/registry" _ "github.com/docker/distribution/storagedriver/filesystem" _ "github.com/docker/distribution/storagedriver/inmemory" ) diff --git a/doc.go b/doc.go new file mode 100644 index 00000000..9b981f7d --- /dev/null +++ b/doc.go @@ -0,0 +1,7 @@ +// Package distribution will define the interfaces for the components of +// docker distribution. The goal is to allow users to reliably package, ship +// and store content related to docker images. +// +// This is currently a work in progress. More details are availalbe in the +// README.md. +package distribution diff --git a/api_test.go b/registry/api_test.go similarity index 100% rename from api_test.go rename to registry/api_test.go diff --git a/app.go b/registry/app.go similarity index 100% rename from app.go rename to registry/app.go diff --git a/app_test.go b/registry/app_test.go similarity index 100% rename from app_test.go rename to registry/app_test.go diff --git a/context.go b/registry/context.go similarity index 100% rename from context.go rename to registry/context.go diff --git a/helpers.go b/registry/helpers.go similarity index 100% rename from helpers.go rename to registry/helpers.go diff --git a/images.go b/registry/images.go similarity index 100% rename from images.go rename to registry/images.go diff --git a/layer.go b/registry/layer.go similarity index 100% rename from layer.go rename to registry/layer.go diff --git a/layerupload.go b/registry/layerupload.go similarity index 100% rename from layerupload.go rename to registry/layerupload.go diff --git a/tags.go b/registry/tags.go similarity index 100% rename from tags.go rename to registry/tags.go diff --git a/tokens.go b/registry/tokens.go similarity index 100% rename from tokens.go rename to registry/tokens.go diff --git a/tokens_test.go b/registry/tokens_test.go similarity index 100% rename from tokens_test.go rename to registry/tokens_test.go diff --git a/util.go b/registry/util.go similarity index 100% rename from util.go rename to registry/util.go