MCPcopy
hub / github.com/loft-sh/devpod / updateInstance

Method updateInstance

pkg/client/clientimplementation/proxy_client.go:349–370  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

347}
348
349func (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
372func EncodeOptions(options any, name string) map[string]string {
373 raw, _ := json.Marshal(options)

Callers 1

RefreshOptionsMethod · 0.95

Calls 3

RunCommandWithBinariesFunction · 0.85
ProviderOptionsMethod · 0.45
ErrorStreamOnlyMethod · 0.45

Tested by

no test coverage detected