Remove the example

Instead, direct users to the one in the factory package

Signed-off-by: Aaron Schlesinger <aschlesinger@deis.com>
This commit is contained in:
Aaron Schlesinger 2016-03-24 09:35:04 -07:00
parent 204ad474e4
commit f4bdc6287a

View file

@ -37,11 +37,8 @@ const CurrentVersion Version = "0.1"
// filesystem-like key/value object storage. Storage Drivers are automatically // filesystem-like key/value object storage. Storage Drivers are automatically
// registered via an internal registration mechanism, and generally created // registered via an internal registration mechanism, and generally created
// via the StorageDriverFactory interface (https://godoc.org/github.com/docker/distribution/registry/storage/driver/factory). // via the StorageDriverFactory interface (https://godoc.org/github.com/docker/distribution/registry/storage/driver/factory).
// See below for an example of how to get a StorageDriver for S3: // Please see the aforementioned factory package for example code showing how to get an instance
// // of a StorageDriver
// import _ "github.com/docker/distribution/registry/storage/driver/s3-aws"
// s3Driver, err = factory.Create("s3", storageParams)
// // assuming no error, s3Driver is the StorageDriver that communicates with S3 according to storageParams
type StorageDriver interface { type StorageDriver interface {
// Name returns the human-readable "name" of the driver, useful in error // Name returns the human-readable "name" of the driver, useful in error
// messages and logging. By convention, this will just be the registration // messages and logging. By convention, this will just be the registration