(ctx context.Context, userOptionsRaw []string, reconfigure bool)
| 140 | } |
| 141 | |
| 142 | func (s *proxyClient) RefreshOptions(ctx context.Context, userOptionsRaw []string, reconfigure bool) error { |
| 143 | s.m.Lock() |
| 144 | defer s.m.Unlock() |
| 145 | |
| 146 | userOptions, err := provider.ParseOptions(userOptionsRaw) |
| 147 | if err != nil { |
| 148 | return perrors.Wrap(err, "parse options") |
| 149 | } |
| 150 | |
| 151 | workspace, err := options.ResolveAndSaveOptionsProxy(ctx, s.devPodConfig, s.config, s.workspace, userOptions, s.log) |
| 152 | if err != nil { |
| 153 | return err |
| 154 | } |
| 155 | |
| 156 | if reconfigure { |
| 157 | err := s.updateInstance(ctx) |
| 158 | if err != nil { |
| 159 | return err |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | s.workspace = workspace |
| 164 | return nil |
| 165 | } |
| 166 | |
| 167 | func (s *proxyClient) Up(ctx context.Context, opt client.UpOptions) error { |
| 168 | reader, writer := io.Pipe() |
nothing calls this directly
no test coverage detected