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

Method executeNetUserDetail

workflow/executor_network.go:40–48  ·  view source on GitHub ↗

executeNetUserDetail gets information about a specific user

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

Source from the content-addressed store, hash-verified

38
39// executeNetUserDetail gets information about a specific user
40func (e *Executor) executeNetUserDetail(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {
41 target, _ := action.Parameters["target"].(string) // optional
42 user, _ := action.Parameters["user"].(string) // optional
43 resp, err := client.NetUserDetail(ctx, beaconID, target, user)
44 if err != nil {
45 return "", err
46 }
47 return e.waitForOutput(ctx, client, resp.TaskID)
48}
49
50// executeNetTime shows time for a target
51func (e *Executor) executeNetTime(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) {

Callers 1

executeActionMethod · 0.95

Calls 1

waitForOutputMethod · 0.95

Tested by

no test coverage detected