diff: rename differ to comparer

Remove combined interface and split implementations.

Signed-off-by: Derek McGowan <derek@mcgstyle.net>
This commit is contained in:
Derek McGowan
2017-12-19 15:47:48 -08:00
parent b580441f91
commit b763777288
12 changed files with 217 additions and 151 deletions

View File

@@ -2,7 +2,7 @@ package main
// register containerd builtins here
import (
_ "github.com/containerd/containerd/diff/walking"
_ "github.com/containerd/containerd/diff/walking/plugin"
_ "github.com/containerd/containerd/gc/scheduler"
_ "github.com/containerd/containerd/services/containers"
_ "github.com/containerd/containerd/services/content"

View File

@@ -129,7 +129,7 @@ var diffCommand = cli.Command{
}
if idB == "" {
desc, err = rootfs.Diff(ctx, idA, snapshotter, client.DiffService(), opts...)
desc, err = rootfs.CreateDiff(ctx, idA, snapshotter, client.DiffService(), opts...)
if err != nil {
return err
}
@@ -145,7 +145,7 @@ var diffCommand = cli.Command{
if err != nil {
return err
}
desc, err = ds.DiffMounts(ctx, a, b, opts...)
desc, err = ds.Compare(ctx, a, b, opts...)
if err != nil {
return err
}