executeNetDomain gets the current domain
(ctx context.Context, client *csclient.Client, beaconID string)
| 9 | |
| 10 | // executeNetDomain gets the current domain |
| 11 | func (e *Executor) executeNetDomain(ctx context.Context, client *csclient.Client, beaconID string) (string, error) { |
| 12 | resp, err := client.NetDomain(ctx, beaconID) |
| 13 | if err != nil { |
| 14 | return "", err |
| 15 | } |
| 16 | return e.waitForOutput(ctx, client, resp.TaskID) |
| 17 | } |
| 18 | |
| 19 | // executeNetView lists domain hosts |
| 20 | func (e *Executor) executeNetView(ctx context.Context, client *csclient.Client, beaconID string, action Action) (string, error) { |
no test coverage detected