github.com/lusis/distribution@v2.0.1+incompatible/cmd/registry-storagedriver-inmemory/main.go (about)

     1  // +build ignore
     2  
     3  package main
     4  
     5  import (
     6  	"github.com/Sirupsen/logrus"
     7  	"github.com/docker/distribution/registry/storage/driver/inmemory"
     8  	"github.com/docker/distribution/registry/storage/driver/ipc"
     9  )
    10  
    11  // An out-of-process inmemory driver, intended to be run by ipc.NewDriverClient
    12  // This exists primarily for example and testing purposes
    13  func main() {
    14  	if err := ipc.StorageDriverServer(inmemory.New()); err != nil {
    15  		logrus.Fatalln(err)
    16  	}
    17  }