Expand description
A blocking REST client for GitLab and Forgejo, shaped like Client:
tokens tried in order, a 401 moving on to the next source, retries after
a 5xx or a dropped connection, and pages followed through the Link
header.
A host’s tokens come from the environment variables that belong to it
(forge::token_vars: GitLab’s to GITLAB_HOST or
gitlab.com, FORGEJO_TOKEN to codeberg.org, GITEA_TOKEN to gitea.com,
a configured host’s token_env to that host), then from glab’s or tea’s
config.yml, which keep a token per host. No token is ever sent to a
host it does not belong to. With no token at all a request goes without
one, which public projects answer. Messages name a token’s source, never
its value.
Structs§
Constants§
- MAX_
PAGES - Pages of a list read at most.