File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ import (
4949 "github.com/containerd/containerd/remotes/docker"
5050 "github.com/containerd/containerd/remotes/docker/schema1"
5151 "github.com/containerd/containerd/snapshots"
52+ snproxy "github.com/containerd/containerd/snapshots/proxy"
5253 "github.com/containerd/typeurl"
5354 ptypes "github.com/gogo/protobuf/types"
5455 ocispec "github.com/opencontainers/image-spec/specs-go/v1"
@@ -467,7 +468,7 @@ func (c *Client) SnapshotService(snapshotterName string) snapshots.Snapshotter {
467468 if c .snapshotters != nil {
468469 return c .snapshotters [snapshotterName ]
469470 }
470- return NewSnapshotterFromClient (snapshotsapi .NewSnapshotsClient (c .conn ), snapshotterName )
471+ return snproxy . NewSnapshotter (snapshotsapi .NewSnapshotsClient (c .conn ), snapshotterName )
471472}
472473
473474// TaskService returns the underlying TasksClient
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"
@@ -28,9 +28,9 @@ import (
2828 protobuftypes "github.com/gogo/protobuf/types"
2929)
3030
31- // NewSnapshotterFromClient returns a new Snapshotter which communicates
32- // over a GRPC connection .
33- func NewSnapshotterFromClient (client snapshotsapi.SnapshotsClient , snapshotterName string ) snapshots.Snapshotter {
31+ // NewSnapshotter returns a new Snapshotter which communicates over a GRPC
32+ // connection using the containerd snapshot GRPC API .
33+ func NewSnapshotter (client snapshotsapi.SnapshotsClient , snapshotterName string ) snapshots.Snapshotter {
3434 return & remoteSnapshotter {
3535 client : client ,
3636 snapshotterName : snapshotterName ,
You can’t perform that action at this time.
0 commit comments