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

Method executeGetSystemInfo

workflow/executor_server.go:242–249  ·  view source on GitHub ↗

executeGetSystemInfo retrieves team server system information

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

Source from the content-addressed store, hash-verified

240
241// executeGetSystemInfo retrieves team server system information
242func (e *Executor) executeGetSystemInfo(ctx context.Context, client *csclient.Client) (string, error) {
243 e.logInfo("Getting system information")
244 resp, err := client.GetSystemInformation(ctx)
245 if err != nil {
246 return "", fmt.Errorf("get system information failed: %w", err)
247 }
248 return resp, nil
249}
250
251// executeGetTeamserverIp retrieves the team server IP
252func (e *Executor) executeGetTeamserverIp(ctx context.Context, client *csclient.Client) (string, error) {

Callers 1

executeActionMethod · 0.95

Calls 1

logInfoMethod · 0.95

Tested by

no test coverage detected