(ctx context.Context, builderId string)
| 1151 | } |
| 1152 | |
| 1153 | func (ws *WshServer) StopBuilderCommand(ctx context.Context, builderId string) error { |
| 1154 | if builderId == "" { |
| 1155 | return fmt.Errorf("must provide a builderId to StopBuilderCommand") |
| 1156 | } |
| 1157 | bc := buildercontroller.GetController(builderId) |
| 1158 | if bc == nil { |
| 1159 | return nil |
| 1160 | } |
| 1161 | return bc.Stop() |
| 1162 | } |
| 1163 | |
| 1164 | func (ws *WshServer) RestartBuilderAndWaitCommand(ctx context.Context, data wshrpc.CommandRestartBuilderAndWaitData) (*wshrpc.RestartBuilderAndWaitResult, error) { |
| 1165 | if data.BuilderId == "" { |
nothing calls this directly
no test coverage detected