Lines split output into lines
(output string)
| 472 | |
| 473 | // Lines split output into lines |
| 474 | func Lines(output string) []string { |
| 475 | return strings.Split(strings.TrimSpace(output), "\n") |
| 476 | } |
| 477 | |
| 478 | // HTTPGetWithRetry performs an HTTP GET on an `endpoint`, using retryDelay also as a request timeout. |
| 479 | // In the case of an error or the response status is not the expected one, it retries the same request, |
no outgoing calls