executeExit tells the beacon to exit
(ctx context.Context, client *csclient.Client, beaconID string)
| 1358 | |
| 1359 | // executeExit tells the beacon to exit |
| 1360 | func (e *Executor) executeExit(ctx context.Context, client *csclient.Client, beaconID string) (string, error) { |
| 1361 | resp, err := client.Exit(ctx, beaconID) |
| 1362 | if err != nil { |
| 1363 | return "", err |
| 1364 | } |
| 1365 | |
| 1366 | return e.fireAndForget(resp.TaskID, "exit") |
| 1367 | } |
| 1368 | |
| 1369 | // executeJobStop stops an active job |
| 1370 | func (e *Executor) executeJobStop(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected