Refactor sandbox controller interface

Update the sandbox controller interface to use local types rather than
using the API types.

Signed-off-by: Derek McGowan <derek@mcg.dev>
This commit is contained in:
Derek McGowan
2023-01-18 21:53:34 -08:00
parent 20de989afc
commit 2717685dad
21 changed files with 378 additions and 355 deletions

View File

@@ -217,11 +217,11 @@ func (c *controllerLocal) Status(ctx context.Context, in *api.ControllerStatusRe
}
return &api.ControllerStatusResponse{
ID: resp.ID,
Pid: resp.Pid,
State: resp.State,
ExitedAt: resp.ExitedAt,
Extra: resp.Extra,
SandboxID: resp.SandboxID,
Pid: resp.Pid,
State: resp.State,
ExitedAt: resp.ExitedAt,
Extra: resp.Extra,
}, nil
}