Update windows for plugin interfaces
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
@@ -3,9 +3,10 @@
|
||||
package windows
|
||||
|
||||
import (
|
||||
"github.com/containerd/containerd"
|
||||
"context"
|
||||
|
||||
"github.com/containerd/containerd/plugin"
|
||||
"github.com/containerd/containerd/windows/hcs"
|
||||
"golang.org/x/net/context"
|
||||
)
|
||||
|
||||
// process implements containerd.Process and containerd.State
|
||||
@@ -13,7 +14,7 @@ type process struct {
|
||||
*hcs.Process
|
||||
}
|
||||
|
||||
func (p *process) State(ctx context.Context) (containerd.State, error) {
|
||||
func (p *process) State(ctx context.Context) (plugin.State, error) {
|
||||
return p, nil
|
||||
}
|
||||
|
||||
@@ -21,7 +22,7 @@ func (p *process) Kill(ctx context.Context, sig uint32, all bool) error {
|
||||
return p.Process.Kill()
|
||||
}
|
||||
|
||||
func (p *process) Status() containerd.Status {
|
||||
func (p *process) Status() plugin.Status {
|
||||
return p.Process.Status()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user