(ctx context.Context, sandboxID string)
| 67 | } |
| 68 | |
| 69 | func (s *remoteSandboxController) Start(ctx context.Context, sandboxID string) (sandbox.ControllerInstance, error) { |
| 70 | resp, err := s.client.Start(ctx, &api.ControllerStartRequest{ |
| 71 | SandboxID: sandboxID, |
| 72 | Sandboxer: s.sandboxerName, |
| 73 | }) |
| 74 | if err != nil { |
| 75 | return sandbox.ControllerInstance{}, errgrpc.ToNative(err) |
| 76 | } |
| 77 | |
| 78 | return sandbox.ControllerInstance{ |
| 79 | SandboxID: sandboxID, |
| 80 | Pid: resp.GetPid(), |
| 81 | CreatedAt: resp.GetCreatedAt().AsTime(), |
| 82 | Labels: resp.GetLabels(), |
| 83 | Address: resp.GetAddress(), |
| 84 | Version: resp.GetVersion(), |
| 85 | Spec: resp.GetSpec(), |
| 86 | }, nil |
| 87 | } |
| 88 | |
| 89 | func (s *remoteSandboxController) Platform(ctx context.Context, sandboxID string) (imagespec.Platform, error) { |
| 90 | resp, err := s.client.Platform(ctx, &api.ControllerPlatformRequest{ |
nothing calls this directly
no test coverage detected