Remove protos from Go client API

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-07-12 14:22:27 -07:00
parent 1a49f5ea79
commit 3b8018d8cf
9 changed files with 82 additions and 52 deletions

View File

@@ -3,8 +3,6 @@ package containerd
import (
"syscall"
"testing"
"github.com/containerd/containerd/linux/runcopts"
)
func TestCheckpointRestore(t *testing.T) {
@@ -61,7 +59,7 @@ func TestCheckpointRestore(t *testing.T) {
return
}
checkpoint, err := task.Checkpoint(ctx, runcopts.WithExit)
checkpoint, err := task.Checkpoint(ctx, WithExit)
if err != nil {
t.Error(err)
return
@@ -151,7 +149,7 @@ func TestCheckpointRestoreNewContainer(t *testing.T) {
return
}
checkpoint, err := task.Checkpoint(ctx, runcopts.WithExit)
checkpoint, err := task.Checkpoint(ctx, WithExit)
if err != nil {
t.Error(err)
return