Move io.go into cio package

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
Daniel Nephin
2017-11-17 14:18:30 -05:00
parent bc063f263c
commit 298dabc6c2
13 changed files with 77 additions and 69 deletions

View File

@@ -7,6 +7,7 @@ import (
"time"
"github.com/containerd/containerd/api/services/tasks/v1"
"github.com/containerd/containerd/cio"
"github.com/containerd/containerd/errdefs"
"github.com/pkg/errors"
)
@@ -28,7 +29,7 @@ type Process interface {
// Resize changes the width and heigh of the process's terminal
Resize(ctx context.Context, w, h uint32) error
// IO returns the io set for the process
IO() IO
IO() cio.IO
// Status returns the executing status of the process
Status(context.Context) (Status, error)
}
@@ -72,7 +73,7 @@ type process struct {
id string
task *task
pid uint32
io IO
io cio.IO
}
func (p *process) ID() string {
@@ -154,7 +155,7 @@ func (p *process) CloseIO(ctx context.Context, opts ...IOCloserOpts) error {
return errdefs.FromGRPC(err)
}
func (p *process) IO() IO {
func (p *process) IO() cio.IO {
return p.io
}