cmd/dist, cmd/ctr: move image store access to GRPC

With this changeset, image store access is now moved to completely
accessible over GRPC. No clients manipulate the image store database
directly and the GRPC client is fully featured. The metadata database is
now managed by the daemon and access coordinated via services.

Signed-off-by: Stephen J Day <stephen.day@docker.com>
This commit is contained in:
Stephen J Day
2017-04-03 18:40:59 -07:00
parent 1ea809dc2a
commit 8c74da3983
10 changed files with 69 additions and 98 deletions

View File

@@ -38,7 +38,7 @@ func init() {
func NewService(ic *plugin.InitContext) (interface{}, error) {
return &Service{
store: ic.Store,
store: ic.Content,
}, nil
}

View File

@@ -22,7 +22,7 @@ func init() {
plugin.Register("rootfs-grpc", &plugin.Registration{
Type: plugin.GRPCPlugin,
Init: func(ic *plugin.InitContext) (interface{}, error) {
return NewService(ic.Store, ic.Snapshotter)
return NewService(ic.Content, ic.Snapshotter)
},
})
}