(ctx context.Context, sandboxID string)
| 87 | } |
| 88 | |
| 89 | func (s *remoteSandboxController) Platform(ctx context.Context, sandboxID string) (imagespec.Platform, error) { |
| 90 | resp, err := s.client.Platform(ctx, &api.ControllerPlatformRequest{ |
| 91 | SandboxID: sandboxID, |
| 92 | Sandboxer: s.sandboxerName, |
| 93 | }) |
| 94 | if err != nil { |
| 95 | return imagespec.Platform{}, errgrpc.ToNative(err) |
| 96 | } |
| 97 | |
| 98 | platform := resp.GetPlatform() |
| 99 | return imagespec.Platform{ |
| 100 | Architecture: platform.GetArchitecture(), |
| 101 | OS: platform.GetOS(), |
| 102 | Variant: platform.GetVariant(), |
| 103 | }, nil |
| 104 | } |
| 105 | |
| 106 | func (s *remoteSandboxController) Stop(ctx context.Context, sandboxID string, opts ...sandbox.StopOpt) error { |
| 107 | var soptions sandbox.StopOptions |
nothing calls this directly
no test coverage detected