aboutsummaryrefslogtreecommitdiff
path: root/internal/polling/polling.go
Commit message (Collapse)AuthorAgeFilesLines
* Style: How client and server interact during pollGeert Stappers2023-01-231-1/+1
| | | | | | | | | | The iPXE client just repeats the same request, a.k.a. "polling". It is the Shoelaces server that can break the polling loop. Either by handing out automated boot entry point based on IP address or DNS PTR record, hand picked boot entry point from Web UI or due retry maximum reached. Signed-off-by: Geert Stappers <stappers@stappers.it>
* style: add clarifying comments in polling iPXE scriptsGeert Stappers2023-01-091-4/+8
| | | | | | | | | | | | | | | | | | | | | | | | | * String changes in internal/polling/polling.go The most important one, from the point of view of human user, is the addition of telling that a maximum retry has been reached. The poll script got rid of the way too long line. That is done by using "iPXE script continueing line character", \, backslash. Poll interval shorter, from ten seconds to seven seconds, also from 10000 ms to more readable 7000 ms (clearly three zeros (how many zeros are in 10000? (four or five?))). Added information about a loop that only looks like a loop. A minor `s/iPXE/iPXE client/`. In directory test/integ-test/expected-results/ are poll-unknown.txt and poll.txt updated for getting a clean `make test`. * style: build on top of latest contribution In particular, mentioning 'maxRetry' exposes implementation code to the end user, which we should avoid. Co-authored-by: Raul Benencia <raul@thousandeyes.com>
* feat: add human-friendly entry pointGeert Stappers2023-01-041-0/+30
| | | | | | | | | | | | | | | | | * Added /start as entry point, for humans and iPXE The '/poll/1/${netX/mac:hexhyp}' is fairly iPXE internal, not something that invites curious people to look better at shoelaces. Neither it is looking nice in DHCP server configuration. This change adds a HTTP handler for '/start'. And '/start' points to '/poll/1/${netX/mac:hexhyp}'. The benefit of it is that human visible documentation can replace the "voodoo" '/poll/1/${netX/mac:hexhyp}' with "friendly" '/start'. Because it is an addition are the existing HTTP handlers not effected, neither the installed deployments effected. Signed-off-by: Geert Stappers <stappers@stappers.it>
* First public commitRaúl Benencia2018-05-111-0/+257
nihil fit ex nihilo