Move storagedriver package to registry/storage/driver

This change is slightly more complex than previous package maves in that the
package name changed. To address this, we simply always reference the package
driver as storagedriver to avoid compatbility issues with existing code. While
unfortunate, this can be cleaned up over time.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day 2015-02-10 18:14:23 -08:00
parent 3468fbd4a8
commit 65b0d73cb7
52 changed files with 65 additions and 65 deletions

View File

@ -7,8 +7,8 @@ import (
"os" "os"
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"github.com/docker/distribution/storagedriver/azure" "github.com/docker/distribution/registry/storage/driver/azure"
"github.com/docker/distribution/storagedriver/ipc" "github.com/docker/distribution/registry/storage/driver/ipc"
) )
// An out-of-process Azure Storage driver, intended to be run by ipc.NewDriverClient // An out-of-process Azure Storage driver, intended to be run by ipc.NewDriverClient

View File

@ -8,8 +8,8 @@ import (
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
"github.com/docker/distribution/storagedriver/filesystem" "github.com/docker/distribution/registry/storage/driver/filesystem"
"github.com/docker/distribution/storagedriver/ipc" "github.com/docker/distribution/registry/storage/driver/ipc"
) )
// An out-of-process filesystem driver, intended to be run by ipc.NewDriverClient // An out-of-process filesystem driver, intended to be run by ipc.NewDriverClient

View File

@ -4,8 +4,8 @@ package main
import ( import (
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
"github.com/docker/distribution/storagedriver/inmemory" "github.com/docker/distribution/registry/storage/driver/inmemory"
"github.com/docker/distribution/storagedriver/ipc" "github.com/docker/distribution/registry/storage/driver/ipc"
) )
// An out-of-process inmemory driver, intended to be run by ipc.NewDriverClient // An out-of-process inmemory driver, intended to be run by ipc.NewDriverClient

View File

@ -8,8 +8,8 @@ import (
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
"github.com/docker/distribution/storagedriver/ipc" "github.com/docker/distribution/registry/storage/driver/ipc"
"github.com/docker/distribution/storagedriver/s3" "github.com/docker/distribution/registry/storage/driver/s3"
) )
// An out-of-process S3 driver, intended to be run by ipc.NewDriverClient // An out-of-process S3 driver, intended to be run by ipc.NewDriverClient

View File

@ -10,14 +10,14 @@ import (
log "github.com/Sirupsen/logrus" log "github.com/Sirupsen/logrus"
"github.com/bugsnag/bugsnag-go" "github.com/bugsnag/bugsnag-go"
_ "github.com/docker/distribution/registry/auth/silly"
_ "github.com/docker/distribution/registry/auth/token"
"github.com/docker/distribution/configuration" "github.com/docker/distribution/configuration"
ctxu "github.com/docker/distribution/context" ctxu "github.com/docker/distribution/context"
_ "github.com/docker/distribution/registry/auth/silly"
_ "github.com/docker/distribution/registry/auth/token"
"github.com/docker/distribution/registry/handlers" "github.com/docker/distribution/registry/handlers"
_ "github.com/docker/distribution/storagedriver/filesystem" _ "github.com/docker/distribution/registry/storage/driver/filesystem"
_ "github.com/docker/distribution/storagedriver/inmemory" _ "github.com/docker/distribution/registry/storage/driver/inmemory"
_ "github.com/docker/distribution/storagedriver/s3" _ "github.com/docker/distribution/registry/storage/driver/s3"
"github.com/docker/distribution/version" "github.com/docker/distribution/version"
gorhandlers "github.com/gorilla/handlers" gorhandlers "github.com/gorilla/handlers"
"github.com/yvasiyarov/gorelic" "github.com/yvasiyarov/gorelic"

View File

@ -14,11 +14,11 @@ import (
"reflect" "reflect"
"testing" "testing"
"github.com/docker/distribution/registry/api/v2"
"github.com/docker/distribution/configuration" "github.com/docker/distribution/configuration"
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/manifest" "github.com/docker/distribution/manifest"
_ "github.com/docker/distribution/storagedriver/inmemory" "github.com/docker/distribution/registry/api/v2"
_ "github.com/docker/distribution/registry/storage/driver/inmemory"
"github.com/docker/distribution/testutil" "github.com/docker/distribution/testutil"
"github.com/docker/libtrust" "github.com/docker/libtrust"
"github.com/gorilla/handlers" "github.com/gorilla/handlers"

View File

@ -7,14 +7,14 @@ import (
"os" "os"
"code.google.com/p/go-uuid/uuid" "code.google.com/p/go-uuid/uuid"
"github.com/docker/distribution/registry/api/v2"
"github.com/docker/distribution/registry/auth"
"github.com/docker/distribution/configuration" "github.com/docker/distribution/configuration"
ctxu "github.com/docker/distribution/context" ctxu "github.com/docker/distribution/context"
"github.com/docker/distribution/registry/api/v2"
"github.com/docker/distribution/registry/auth"
"github.com/docker/distribution/registry/storage" "github.com/docker/distribution/registry/storage"
storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/registry/storage/driver/factory"
"github.com/docker/distribution/registry/storage/notifications" "github.com/docker/distribution/registry/storage/notifications"
"github.com/docker/distribution/storagedriver"
"github.com/docker/distribution/storagedriver/factory"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -7,11 +7,11 @@ import (
"net/url" "net/url"
"testing" "testing"
"github.com/docker/distribution/configuration"
"github.com/docker/distribution/registry/api/v2" "github.com/docker/distribution/registry/api/v2"
_ "github.com/docker/distribution/registry/auth/silly" _ "github.com/docker/distribution/registry/auth/silly"
"github.com/docker/distribution/configuration"
"github.com/docker/distribution/registry/storage" "github.com/docker/distribution/registry/storage"
"github.com/docker/distribution/storagedriver/inmemory" "github.com/docker/distribution/registry/storage/driver/inmemory"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -5,7 +5,7 @@ import (
ctxu "github.com/docker/distribution/context" ctxu "github.com/docker/distribution/context"
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -10,7 +10,7 @@ import (
"time" "time"
"github.com/AdRoll/goamz/cloudfront" "github.com/AdRoll/goamz/cloudfront"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
// cloudFrontLayerHandler provides an simple implementation of layerHandler that // cloudFrontLayerHandler provides an simple implementation of layerHandler that

View File

@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
// delegateLayerHandler provides a simple implementation of layerHandler that // delegateLayerHandler provides a simple implementation of layerHandler that

View File

@ -11,9 +11,9 @@ import (
"strings" "strings"
"time" "time"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/base" "github.com/docker/distribution/registry/storage/driver/base"
"github.com/docker/distribution/storagedriver/factory" "github.com/docker/distribution/registry/storage/driver/factory"
azure "github.com/MSOpenTech/azure-sdk-for-go/clients/storage" azure "github.com/MSOpenTech/azure-sdk-for-go/clients/storage"
) )

View File

@ -6,8 +6,8 @@ import (
"strings" "strings"
"testing" "testing"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/testsuites" "github.com/docker/distribution/registry/storage/driver/testsuites"
. "gopkg.in/check.v1" . "gopkg.in/check.v1"
) )

View File

@ -40,7 +40,7 @@ package base
import ( import (
"io" "io"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
// Base provides a wrapper around a storagedriver implementation that provides // Base provides a wrapper around a storagedriver implementation that provides

View File

@ -3,7 +3,7 @@ package factory
import ( import (
"fmt" "fmt"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
// driverFactories stores an internal mapping between storage driver names and their respective // driverFactories stores an internal mapping between storage driver names and their respective

View File

@ -1,4 +1,4 @@
package storagedriver package driver
import "time" import "time"

View File

@ -9,9 +9,9 @@ import (
"path" "path"
"time" "time"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/base" "github.com/docker/distribution/registry/storage/driver/base"
"github.com/docker/distribution/storagedriver/factory" "github.com/docker/distribution/registry/storage/driver/factory"
) )
const driverName = "filesystem" const driverName = "filesystem"

View File

@ -5,8 +5,8 @@ import (
"os" "os"
"testing" "testing"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/testsuites" "github.com/docker/distribution/registry/storage/driver/testsuites"
. "gopkg.in/check.v1" . "gopkg.in/check.v1"
) )

View File

@ -8,9 +8,9 @@ import (
"sync" "sync"
"time" "time"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/base" "github.com/docker/distribution/registry/storage/driver/base"
"github.com/docker/distribution/storagedriver/factory" "github.com/docker/distribution/registry/storage/driver/factory"
) )
const driverName = "inmemory" const driverName = "inmemory"

View File

@ -3,8 +3,8 @@ package inmemory
import ( import (
"testing" "testing"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/testsuites" "github.com/docker/distribution/registry/storage/driver/testsuites"
"gopkg.in/check.v1" "gopkg.in/check.v1"
) )

View File

@ -13,7 +13,7 @@ import (
"os/exec" "os/exec"
"syscall" "syscall"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/libchan" "github.com/docker/libchan"
"github.com/docker/libchan/spdy" "github.com/docker/libchan/spdy"
) )

View File

@ -7,7 +7,7 @@ import (
"io" "io"
"reflect" "reflect"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/libchan" "github.com/docker/libchan"
) )

View File

@ -10,7 +10,7 @@ import (
"os" "os"
"reflect" "reflect"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/libchan" "github.com/docker/libchan"
"github.com/docker/libchan/spdy" "github.com/docker/libchan/spdy"
) )

View File

@ -26,9 +26,9 @@ import (
"github.com/AdRoll/goamz/aws" "github.com/AdRoll/goamz/aws"
"github.com/AdRoll/goamz/s3" "github.com/AdRoll/goamz/s3"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/base" "github.com/docker/distribution/registry/storage/driver/base"
"github.com/docker/distribution/storagedriver/factory" "github.com/docker/distribution/registry/storage/driver/factory"
) )
const driverName = "s3" const driverName = "s3"

View File

@ -7,8 +7,8 @@ import (
"testing" "testing"
"github.com/AdRoll/goamz/aws" "github.com/AdRoll/goamz/aws"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/testsuites" "github.com/docker/distribution/registry/storage/driver/testsuites"
"gopkg.in/check.v1" "gopkg.in/check.v1"
) )

View File

@ -1,4 +1,4 @@
package storagedriver package driver
import ( import (
"errors" "errors"

View File

@ -14,7 +14,7 @@ import (
"testing" "testing"
"time" "time"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"gopkg.in/check.v1" "gopkg.in/check.v1"
) )

View File

@ -9,7 +9,7 @@ import (
"os" "os"
"time" "time"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
// TODO(stevvooe): Set an optimal buffer size here. We'll have to // TODO(stevvooe): Set an optimal buffer size here. We'll have to

View File

@ -10,7 +10,7 @@ import (
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/storagedriver/inmemory" "github.com/docker/distribution/registry/storage/driver/inmemory"
) )
func TestSimpleRead(t *testing.T) { func TestSimpleRead(t *testing.T) {

View File

@ -6,7 +6,7 @@ import (
"io" "io"
"os" "os"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
// fileWriter implements a remote file writer backed by a storage driver. // fileWriter implements a remote file writer backed by a storage driver.

View File

@ -8,7 +8,7 @@ import (
"testing" "testing"
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/storagedriver/inmemory" "github.com/docker/distribution/registry/storage/driver/inmemory"
) )
// TestSimpleWrite takes the fileWriter through common write operations // TestSimpleWrite takes the fileWriter through common write operations

View File

@ -10,8 +10,8 @@ import (
"testing" "testing"
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/distribution/storagedriver/inmemory" "github.com/docker/distribution/registry/storage/driver/inmemory"
"github.com/docker/distribution/testutil" "github.com/docker/distribution/testutil"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"net/http" "net/http"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
// LayerHandler provides middleware for serving the contents of a Layer. // LayerHandler provides middleware for serving the contents of a Layer.

View File

@ -7,7 +7,7 @@ import (
ctxu "github.com/docker/distribution/context" ctxu "github.com/docker/distribution/context"
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/manifest" "github.com/docker/distribution/manifest"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
type layerStore struct { type layerStore struct {

View File

@ -9,7 +9,7 @@ import (
"github.com/Sirupsen/logrus" "github.com/Sirupsen/logrus"
ctxu "github.com/docker/distribution/context" ctxu "github.com/docker/distribution/context"
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"github.com/docker/docker/pkg/tarsum" "github.com/docker/docker/pkg/tarsum"
) )

View File

@ -8,7 +8,7 @@ import (
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/manifest" "github.com/docker/distribution/manifest"
"github.com/docker/distribution/storagedriver/inmemory" "github.com/docker/distribution/registry/storage/driver/inmemory"
"github.com/docker/distribution/testutil" "github.com/docker/distribution/testutil"
"github.com/docker/libtrust" "github.com/docker/libtrust"
"golang.org/x/net/context" "golang.org/x/net/context"

View File

@ -8,7 +8,7 @@ import (
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/manifest" "github.com/docker/distribution/manifest"
"github.com/docker/distribution/registry/storage" "github.com/docker/distribution/registry/storage"
"github.com/docker/distribution/storagedriver/inmemory" "github.com/docker/distribution/registry/storage/driver/inmemory"
"github.com/docker/distribution/testutil" "github.com/docker/distribution/testutil"
"github.com/docker/libtrust" "github.com/docker/libtrust"
"golang.org/x/net/context" "golang.org/x/net/context"

View File

@ -1,7 +1,7 @@
package storage package storage
import ( import (
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
"golang.org/x/net/context" "golang.org/x/net/context"
) )

View File

@ -4,7 +4,7 @@ import (
"path" "path"
"github.com/docker/distribution/digest" "github.com/docker/distribution/digest"
"github.com/docker/distribution/storagedriver" storagedriver "github.com/docker/distribution/registry/storage/driver"
) )
// tagStore provides methods to manage manifest tags in a backend storage driver. // tagStore provides methods to manage manifest tags in a backend storage driver.