--- Process Management Handlers --- executePs lists processes
(ctx context.Context, client *csclient.Client, beaconID string)
| 1297 | |
| 1298 | // executePs lists processes |
| 1299 | func (e *Executor) executePs(ctx context.Context, client *csclient.Client, beaconID string) (string, error) { |
| 1300 | resp, err := client.Ps(ctx, beaconID) |
| 1301 | if err != nil { |
| 1302 | return "", err |
| 1303 | } |
| 1304 | |
| 1305 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 1306 | } |
| 1307 | |
| 1308 | // executeKill terminates a process by PID |
| 1309 | func (e *Executor) executeKill(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected