MCPcopy Create free account
hub / github.com/Xenov-X/csbot / executeExit

Method executeExit

workflow/executor.go:1360–1367  ·  view source on GitHub ↗

executeExit tells the beacon to exit

(ctx context.Context, client *csclient.Client, beaconID string)

Source from the content-addressed store, hash-verified

1358
1359// executeExit tells the beacon to exit
1360func (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
1370func (e *Executor) executeJobStop(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {

Callers 1

executeActionMethod · 0.95

Calls 1

fireAndForgetMethod · 0.95

Tested by

no test coverage detected