File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,6 +38,7 @@ import (
3838 versionservice "github.com/containerd/containerd/api/services/version/v1"
3939 "github.com/containerd/containerd/containers"
4040 "github.com/containerd/containerd/content"
41+ contentproxy "github.com/containerd/containerd/content/proxy"
4142 "github.com/containerd/containerd/defaults"
4243 "github.com/containerd/containerd/dialer"
4344 "github.com/containerd/containerd/errdefs"
@@ -460,7 +461,7 @@ func (c *Client) ContentStore() content.Store {
460461 if c .contentStore != nil {
461462 return c .contentStore
462463 }
463- return NewContentStoreFromClient (contentapi .NewContentClient (c .conn ))
464+ return contentproxy . NewContentStore (contentapi .NewContentClient (c .conn ))
464465}
465466
466467// SnapshotService returns the underlying snapshotter for the provided snapshotter name
Original file line number Diff line number Diff line change 1414 limitations under the License.
1515*/
1616
17- package containerd
17+ package proxy
1818
1919import (
2020 "context"
Original file line number Diff line number Diff line change 1414 limitations under the License.
1515*/
1616
17- package containerd
17+ package proxy
1818
1919import (
2020 "context"
@@ -31,8 +31,9 @@ type remoteContent struct {
3131 client contentapi.ContentClient
3232}
3333
34- // NewContentStoreFromClient returns a new content store
35- func NewContentStoreFromClient (client contentapi.ContentClient ) content.Store {
34+ // NewContentStore returns a new content store which communicates over a GRPC
35+ // connection using the containerd content GRPC API.
36+ func NewContentStore (client contentapi.ContentClient ) content.Store {
3637 return & remoteContent {
3738 client : client ,
3839 }
Original file line number Diff line number Diff line change 1414 limitations under the License.
1515*/
1616
17- package containerd
17+ package proxy
1818
1919import (
2020 "context"
You can’t perform that action at this time.
0 commit comments