(ctx context.Context)
| 347 | } |
| 348 | |
| 349 | func (s *proxyClient) updateInstance(ctx context.Context) error { |
| 350 | err := RunCommandWithBinaries( |
| 351 | ctx, |
| 352 | "updateWorkspace", |
| 353 | s.config.Exec.Proxy.Update.Workspace, |
| 354 | s.workspace.Context, |
| 355 | s.workspace, |
| 356 | nil, |
| 357 | s.devPodConfig.ProviderOptions(s.config.Name), |
| 358 | s.config, |
| 359 | nil, |
| 360 | os.Stdin, |
| 361 | os.Stdout, |
| 362 | os.Stderr, |
| 363 | s.log.ErrorStreamOnly(), |
| 364 | ) |
| 365 | if err != nil { |
| 366 | return err |
| 367 | } |
| 368 | |
| 369 | return nil |
| 370 | } |
| 371 | |
| 372 | func EncodeOptions(options any, name string) map[string]string { |
| 373 | raw, _ := json.Marshal(options) |
no test coverage detected