2014-12-05 22:34:22 +00:00
|
|
|
// +build ignore
|
|
|
|
|
2014-10-21 22:02:20 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
2014-12-02 02:25:10 +00:00
|
|
|
"github.com/Sirupsen/logrus"
|
2015-02-11 02:14:23 +00:00
|
|
|
"github.com/docker/distribution/registry/storage/driver/inmemory"
|
|
|
|
"github.com/docker/distribution/registry/storage/driver/ipc"
|
2014-10-21 22:02:20 +00:00
|
|
|
)
|
|
|
|
|
2014-10-29 01:15:40 +00:00
|
|
|
// An out-of-process inmemory driver, intended to be run by ipc.NewDriverClient
|
|
|
|
// This exists primarily for example and testing purposes
|
2014-10-21 22:02:20 +00:00
|
|
|
func main() {
|
2014-12-02 02:25:10 +00:00
|
|
|
if err := ipc.StorageDriverServer(inmemory.New()); err != nil {
|
|
|
|
logrus.Fatalln(err)
|
|
|
|
}
|
2014-10-21 22:02:20 +00:00
|
|
|
}
|