storage: remove current registration process for new storages

This commit is contained in:
Eric Chiang
2016-08-02 20:00:35 -07:00
parent c7af2c4885
commit e716c14718
2 changed files with 0 additions and 44 deletions

View File

@@ -8,10 +8,6 @@ import (
"github.com/coreos/poke/storage"
)
func init() {
storage.Register("memory", new(driver))
}
// New returns an in memory storage.
func New() storage.Storage {
return &memStorage{
@@ -22,15 +18,6 @@ func New() storage.Storage {
}
}
type driver struct{}
func (f *driver) Open(config map[string]string) (storage.Storage, error) {
if len(config) != 0 {
return nil, errors.New("in memory storage does not take any arguments")
}
return New(), nil
}
type memStorage struct {
mu sync.Mutex